new file: common/aliases.nix modified: common/home.nix modified: hosts/nixos/home.nix
25 lines
548 B
Nix
25 lines
548 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
mySwitchCmd = ''
|
|
sudo nixos-rebuild switch \
|
|
--no-write-lock-file \
|
|
--refresh \
|
|
--flake git+https://gitea.lan.ddnsgeek.com/beatzaplenty/nixos.git#$(hostname)
|
|
'';
|
|
myTestCmd = ''
|
|
sudo nixos-rebuild test \
|
|
--no-write-lock-file \
|
|
--refresh \
|
|
--flake git+https://gitea.lan.ddnsgeek.com/beatzaplenty/nixos.git#$(hostname)
|
|
'';
|
|
in {
|
|
programs.bash = {
|
|
enable = true;
|
|
shellAliases = {
|
|
"Switch-nix" = mySwitchCmd;
|
|
"Test-nix" = myTestCmd;
|
|
};
|
|
};
|
|
}
|