host
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
{ host, ... }:
|
||||
|
||||
{
|
||||
networking.hostName = "poslop-nixvm2";
|
||||
networking.hostName = host;
|
||||
networking.networkmanager.enable = true;
|
||||
}
|
||||
|
||||
@@ -10,3 +10,9 @@ zstyle :compinstall filename '/home/poslop/.zshrc'
|
||||
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
|
||||
reflake() {
|
||||
local flake_dir="/etc/rice-flakes"
|
||||
host="${1:-$(hostname -s)}"
|
||||
sudo nixos-rebuild switch --flake "${flake_dir}#${host}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user