net
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
}:
|
||||
let
|
||||
cfg = config.${namespace}.shell-aliases;
|
||||
net = lib.${namespace}.network;
|
||||
in
|
||||
{
|
||||
options.${namespace}.shell-aliases = {
|
||||
@@ -13,7 +14,7 @@ in
|
||||
|
||||
buildHost = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "admin@10.0.1.3";
|
||||
default = "admin@${net.hosts.nas.lan}";
|
||||
description = "Build host for nixos-rebuild commands";
|
||||
};
|
||||
|
||||
@@ -50,8 +51,8 @@ in
|
||||
) "nix flake update ${lib.concatStringsSep " " cfg.flakeInputs} --flake /etc/nixos";
|
||||
|
||||
# NAS management
|
||||
update-nas = "nixos-rebuild switch --use-remote-sudo --target-host admin@10.0.1.3 --build-host admin@10.0.1.3 --flake ~/nix-config#jallen-nas";
|
||||
nas-ssh = "kitten ssh admin@10.0.1.3";
|
||||
update-nas = "nixos-rebuild switch --use-remote-sudo --target-host admin@${net.hosts.nas.lan} --build-host admin@${net.hosts.nas.lan} --flake ~/nix-config#jallen-nas";
|
||||
nas-ssh = "kitten ssh admin@${net.hosts.nas.lan}";
|
||||
}
|
||||
// cfg.extraAliases;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user