Homogonize the system switch aliases
This commit is contained in:
parent
cbefbefc15
commit
c1b6c7a255
6 changed files with 13 additions and 62 deletions
|
@ -39,19 +39,6 @@
|
|||
./services/udiskie.nix
|
||||
];
|
||||
|
||||
# ZSH rebuild commands
|
||||
programs.zsh = {
|
||||
shellAliases = let
|
||||
auth = import ./common/auth.nix;
|
||||
hostname = "JimDesktop";
|
||||
in {
|
||||
flakedate = "${auth.method} nix flake update /etc/nixos";
|
||||
sysswitch = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#${hostname}";
|
||||
homeswitch = "home-manager switch --flake /etc/nixos/.#jimbo@${hostname}";
|
||||
nixdate = "flakedate; sysswitch; homeswitch; notify-send 'NixOS switch done.'";
|
||||
};
|
||||
};
|
||||
|
||||
# Symlinks
|
||||
home.file = {
|
||||
"VMs".source = config.lib.file.mkOutOfStoreSymlink "/etc/libvirt/VMs";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue