21 lines
514 B
Nix
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.'";
|
|
};
|
|
};
|
|
}
|