mirror of
https://github.com/Superredstone/nixos.git
synced 2026-03-07 20:28:08 +01:00
Code refactor
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
imports = [
|
||||
./configuration.nix
|
||||
./hardware.nix
|
||||
./networking.nix
|
||||
./services.nix
|
||||
./virtualisation.nix
|
||||
];
|
||||
|
||||
|
||||
11
machines/bomba/networking.nix
Normal file
11
machines/bomba/networking.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ ... }:
|
||||
{
|
||||
networking = {
|
||||
networkmanager.enable = true;
|
||||
firewall = {
|
||||
allowedTCPPorts = [ 22 ];
|
||||
allowedUDPPorts = [ ];
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
6
machines/bomba/services.nix
Normal file
6
machines/bomba/services.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ ... }:
|
||||
{
|
||||
services = {
|
||||
openssh.enable = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user