2024-11-21 00:52:37 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
2024-12-03 02:25:34 +01:00
|
|
|
pkgs,
|
2024-11-21 00:52:37 +01:00
|
|
|
flakes,
|
2024-12-03 02:25:34 +01:00
|
|
|
modulesPath,
|
2024-11-21 00:52:37 +01:00
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; {
|
|
|
|
imports = [
|
|
|
|
flakes.vpsadminos.nixosConfigurations.container
|
|
|
|
flakes.home-manager.nixosModules.home-manager
|
|
|
|
flakes.impermanence.nixosModule
|
2024-12-03 02:25:34 +01:00
|
|
|
./hardware-configuration.nix
|
2024-11-21 00:52:37 +01:00
|
|
|
./srv
|
|
|
|
];
|
|
|
|
|
2024-12-02 21:04:55 +01:00
|
|
|
local.sys = {
|
|
|
|
baseline.enable = true;
|
2024-11-21 00:52:37 +01:00
|
|
|
|
2024-12-02 21:57:33 +01:00
|
|
|
users.fabian = {
|
2024-12-03 02:25:34 +01:00
|
|
|
enable = true;
|
2024-12-03 04:07:06 +01:00
|
|
|
sshKeyPublicFile = [public_files/pki/fabian.ssh];
|
2024-12-02 21:57:33 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-12-03 02:25:34 +01:00
|
|
|
networking.hostName = "vps";
|
|
|
|
|
2024-11-21 00:52:37 +01:00
|
|
|
services.openssh = {
|
|
|
|
settings.PasswordAuthentication = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
|
|
|
|
|
|
|
extraSpecialArgs = {inherit flakes;};
|
|
|
|
|
|
|
|
users.fabian = {
|
|
|
|
imports = [
|
|
|
|
flakes.impermanence.nixosModules.home-manager.impermanence
|
|
|
|
"${flakes.self}/home/platforms/fabian@vps"
|
|
|
|
"${flakes.self}/home"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.extraConfig = ''
|
|
|
|
DefaultTimeoutStartSec=900s
|
|
|
|
'';
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Amsterdam";
|
|
|
|
}
|