added nfs and nfsu scripts
This commit is contained in:
11
flake.nix
11
flake.nix
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user