Code refactor

This commit is contained in:
2026-01-31 21:19:32 +01:00
parent c26d9bf209
commit 26f641b191
13 changed files with 84 additions and 75 deletions

View File

@@ -8,18 +8,7 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.networkmanager.enable = true;
time.timeZone = "Europe/Rome";
nixpkgs.config.allowUnfree = true;
services = {
openssh.enable = true;
udisks2.enable = true;
};
networking.firewall.allowedTCPPorts = [ 22 ];
networking.firewall.allowedUDPPorts = [ ];
networking.firewall.enable = true;
}

View File

@@ -3,6 +3,8 @@
imports = [
./configuration.nix
./hardware.nix
./networking.nix
./services.nix
./virtualisation.nix
];

View File

@@ -0,0 +1,11 @@
{ ... }:
{
networking = {
networkmanager.enable = true;
firewall = {
allowedTCPPorts = [ 22 ];
allowedUDPPorts = [ ];
enable = true;
};
};
}

View File

@@ -0,0 +1,6 @@
{ ... }:
{
services = {
openssh.enable = true;
};
}