added nfs and nfsu scripts

This commit is contained in:
John Lancaster
2025-06-03 04:48:13 +00:00
parent 6a1eaf8500
commit f0aa65cc24
2 changed files with 16 additions and 7 deletions

View File

@@ -22,7 +22,7 @@
modules = [
(args.nixpkgs + "/nixos/modules/virtualisation/proxmox-lxc.nix")
args.vscode-server.nixosModules.default
({ pkgs, ... }: {
({ config, pkgs, ... }: {
system.stateVersion = "24.11";
nix.settings.experimental-features = [ "nix-command" "flakes" ];
services.vscode-server.enable = true;
@@ -30,6 +30,15 @@
environment.systemPackages = with pkgs; [
git
devenv
(pkgs.writeShellScriptBin "nfs" ''
sudo nixos-rebuild switch --flake $(readlink -f /etc/nixos)#lxc --impure
'')
(pkgs.writeShellScriptBin "nfsu" ''
FLAKE=$(readlink -f /etc/nixos)
nix flake update --flake $FLAKE --impure
git -C /etc/nixos add $FLAKE/flake.lock > /dev/null 2>&1
sudo nixos-rebuild switch --flake $FLAKE#lxc --impure
'')
];
})
args.home-manager.nixosModules.home-manager