NixOS-Config/home-manager/jimbo_server.nix
2024-09-08 21:45:54 -04:00

21 lines
514 B
Nix

{config, ...}: {
imports = [
# Common modules
./home.nix
./users/jimbo.nix
./tuiapps/git.nix
];
# ZSH rebuild commands
programs.zsh = {
shellAliases = let
auth = import ./common/auth.nix;
hostname = "JimServer";
in {
sysdate = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#${hostname}";
homedate = "home-manager switch --flake /etc/nixos/.#jimbo@${hostname}";
nixdate = "sysdate; homedate; notify-send 'NixOS switch done.'";
};
};
}