61 lines
1,019 B
Nix
61 lines
1,019 B
Nix
{
|
|
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
|
|
|
|
(with tree.profiles.nixos; [
|
|
sshd
|
|
|
|
tor
|
|
wifiHardware
|
|
|
|
nixGC
|
|
serverExtras
|
|
])
|
|
|
|
(with tree.presets.nixos; [
|
|
serverBase
|
|
|
|
desktopGui
|
|
])
|
|
|
|
(with presets.home-manager.by-user; [
|
|
root.base
|
|
root.minimalServer
|
|
|
|
chaos.base
|
|
chaos.minimalServer
|
|
chaos.guiDesktop
|
|
])
|
|
|
|
./hardware.nix
|
|
]);
|
|
|
|
networking.firewall = {
|
|
enable = true;
|
|
allowPing = true;
|
|
checkReversePath = "loose";
|
|
allowedTCPPorts = [22];
|
|
};
|
|
|
|
networking.hostName = "raspberry-pi5";
|
|
time.timeZone = "Europe/London";
|
|
|
|
system.stateVersion = "24.05";
|
|
home-manager.users.root.home.stateVersion = "24.05";
|
|
home-manager.users.chaos.home.stateVersion = "24.05";
|
|
}
|