generated from john/nix-docker
moved script
This commit is contained in:
10
flake.nix
10
flake.nix
@@ -38,11 +38,11 @@
|
|||||||
nixpkgs.hostPlatform = "${system}";
|
nixpkgs.hostPlatform = "${system}";
|
||||||
system.stateVersion = "${stateVersion}";
|
system.stateVersion = "${stateVersion}";
|
||||||
time.timeZone = "${timeZone}";
|
time.timeZone = "${timeZone}";
|
||||||
environment.systemPackages = [
|
# environment.systemPackages = [
|
||||||
(pkgs.writeShellScriptBin "nfs" ''
|
# (pkgs.writeShellScriptBin "nfs" ''
|
||||||
sudo nixos-rebuild switch --flake git+file:///etc/nixos#${hostname}
|
# sudo nixos-rebuild switch --flake git+file:///etc/nixos#${hostname}
|
||||||
'')
|
# '')
|
||||||
];
|
# ];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -20,5 +20,11 @@ in
|
|||||||
homeDirectory = "${homePath}";
|
homeDirectory = "${homePath}";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
packages = [
|
||||||
|
(pkgs.writeShellScriptBin "nfs" ''
|
||||||
|
sudo nixos-rebuild switch --flake git+file://${homePath}#${hostname}
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
|
||||||
systemd.user.startServices = "sd-switch";
|
systemd.user.startServices = "sd-switch";
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user