16 lines
458 B
Nix
16 lines
458 B
Nix
{ config, pkgs, ... }:
|
|
let
|
|
hostName = config.networking.hostName;
|
|
in
|
|
{
|
|
environment.systemPackages = with pkgs; [
|
|
(pkgs.writeShellScriptBin "nfs" ''
|
|
sudo nixos-rebuild switch --flake $(readlink -f /etc/nixos)#${hostName} --impure
|
|
'')
|
|
(pkgs.writeShellScriptBin "nfsu" ''
|
|
FLAKE=$(readlink -f /etc/nixos)
|
|
nix flake update --flake $FLAKE --impure
|
|
sudo nixos-rebuild switch --flake $FLAKE#${hostName} --impure
|
|
'')
|
|
];
|
|
} |