nix/modules/home-manager/linux.nix

35 lines
681 B
Nix
Raw Normal View History

2024-01-04 22:15:55 -06:00
{pkgs, ...}: {
2023-10-06 20:11:44 -05:00
home = {
sessionVariables = {
MOZ_ENABLE_WAYLAND = "1";
};
};
2023-10-05 13:43:28 -05:00
programs.fish = {
shellAliases = {
# TODO: these aren't working?
2023-10-05 13:43:28 -05:00
sctl = "sudo systemctl";
2023-10-06 12:44:36 -05:00
bt = "bluetoothctl";
2023-10-06 13:05:15 -05:00
pa = "pulsemixer";
2023-10-05 13:43:28 -05:00
sctlu = "systemctl --user";
};
2023-10-06 20:11:44 -05:00
functions = {
pp = ''
if test (count $argv) -gt 0
while true; ping -O -i 1 -w 5 -c 10000000 $argv; sleep 1; end
else
while true; ping -O -i 1 -w 5 -c 10000000 1.1.1.1; sleep 1; end
end
'';
};
2023-10-05 13:43:28 -05:00
};
home.packages = [
(pkgs.buildEnv {
name = "my-linux-scripts";
paths = [./scripts/linux];
})
];
}