{ config, pkgs, ... }: let hostName = config.networking.hostName; in { environment.systemPackages = with pkgs; [ (writeShellScriptBin "nhmu" '' nix flake update --flake ~/.config/home-manager nix run home-manager -- switch --flake ~/.config/home-manager '') (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 '') ]; }