2024-08-31 14:05:17 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
tree,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (lib.lists) flatten;
|
|
|
|
in {
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
(_final: super: {
|
|
|
|
makeModulesClosure = x:
|
|
|
|
super.makeModulesClosure (x // {allowMissing = true;});
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
imports = flatten (with tree; [
|
|
|
|
users.root
|
|
|
|
users.chaos
|
|
|
|
|
2024-08-31 14:13:39 +01:00
|
|
|
(with tree.profiles.nixos; [
|
|
|
|
sshd
|
|
|
|
|
2024-08-31 14:24:08 +01:00
|
|
|
connectivity.networkManager
|
|
|
|
wifiHardware
|
|
|
|
|
2024-08-31 14:13:39 +01:00
|
|
|
nixGC
|
|
|
|
serverExtras
|
2024-08-31 14:05:17 +01:00
|
|
|
])
|
|
|
|
|
|
|
|
(with presets.home-manager.by-user; [
|
|
|
|
root.base
|
2024-08-31 14:13:39 +01:00
|
|
|
root.minimalServer
|
2024-08-31 14:05:17 +01:00
|
|
|
])
|
|
|
|
|
|
|
|
./hardware.nix
|
|
|
|
]);
|
|
|
|
|
|
|
|
networking.firewall = {
|
|
|
|
enable = true;
|
|
|
|
allowPing = true;
|
2024-08-31 14:13:39 +01:00
|
|
|
checkReversePath = "loose";
|
|
|
|
allowedTCPPorts = [22];
|
2024-08-31 14:05:17 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
networking.hostName = "raspberry";
|
|
|
|
time.timeZone = "Europe/London";
|
|
|
|
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
home-manager.users.root.home.stateVersion = "24.05";
|
|
|
|
home-manager.users.chaos.home.stateVersion = "24.05";
|
|
|
|
}
|