nix/modules/home-manager/linux.nix

42 lines
726 B
Nix
Raw Normal View History

2023-10-05 13:43:28 -05:00
{
outputs,
pkgs,
...
}: {
imports = with outputs.homeManagerModules; [
common
];
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 = {
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];
})
];
}