generated from john/nix-docker
30 lines
506 B
Nix
30 lines
506 B
Nix
{
|
|
inputs,
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
homePath = "/srv/panoptes";
|
|
in
|
|
{
|
|
imports = [ ./git.nix ];
|
|
|
|
programs.git.extraConfig.safe.directory = "${homePath}";
|
|
|
|
programs.home-manager.enable = true;
|
|
home = {
|
|
stateVersion = "24.05";
|
|
username = "${user}";
|
|
homeDirectory = "${homePath}";
|
|
};
|
|
|
|
packages = [
|
|
(pkgs.writeShellScriptBin "nfs" ''
|
|
sudo nixos-rebuild switch --flake git+file://${homePath}#${hostname}
|
|
'')
|
|
];
|
|
|
|
systemd.user.startServices = "sd-switch";
|
|
} |