mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 05:44:25 +01:00
Modularize the shell config
This commit is contained in:
parent
cbebff390c
commit
30faa1f2bf
10 changed files with 104 additions and 74 deletions
16
modules/home/shell/nixAliases.nix
Normal file
16
modules/home/shell/nixAliases.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options.myConfig.shell.nixAliases.enable = lib.mkEnableOption "";
|
||||
|
||||
config.home.shellAliases = lib.mkIf config.myConfig.shell.nixAliases.enable {
|
||||
nr = "sudo -v && nixos-rebuild --flake $FLAKE --use-remote-sudo";
|
||||
nrs = "nr switch";
|
||||
nrt = "nr test";
|
||||
nrb = "nr boot";
|
||||
nrrb = "nrb && reboot";
|
||||
nu = "nix flake update";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue