From 3ccb9b3df72b08eec5030f0ed9e1c76104e2a24a Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Fri, 30 Jun 2023 10:38:15 +0100 Subject: [PATCH] Split network module. --- hosts/common/compute-node.nix | 6 ------ hosts/common/global/default.nix | 1 + hosts/common/global/network.nix | 3 +++ 3 files changed, 4 insertions(+), 6 deletions(-) create mode 100644 hosts/common/global/network.nix diff --git a/hosts/common/compute-node.nix b/hosts/common/compute-node.nix index 0930432..c352301 100644 --- a/hosts/common/compute-node.nix +++ b/hosts/common/compute-node.nix @@ -6,10 +6,4 @@ ./user-ppetru.nix ./unattended-encryption.nix ]; - - # Use the systemd-boot EFI boot loader. - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - - networking.networkmanager.enable = true; } diff --git a/hosts/common/global/default.nix b/hosts/common/global/default.nix index f496f50..35c363a 100644 --- a/hosts/common/global/default.nix +++ b/hosts/common/global/default.nix @@ -2,6 +2,7 @@ imports = [ ./boot.nix ./locale.nix + ./network.nix ./packages.nix ./sudo.nix ]; diff --git a/hosts/common/global/network.nix b/hosts/common/global/network.nix new file mode 100644 index 0000000..f29d881 --- /dev/null +++ b/hosts/common/global/network.nix @@ -0,0 +1,3 @@ +{ + networking.networkmanager.enable = true; +}