From 0c0e2932a0743f1c2cf3e32900ceb4f44d2e4e54 Mon Sep 17 00:00:00 2001 From: joy Date: Sun, 15 Sep 2024 19:36:11 +0200 Subject: [PATCH] cleaner host config --- hosts/desktop/default.nix | 2 -- hosts/laptop/default.nix | 2 -- modules/system/boot/default.nix | 3 +++ modules/system/default.nix | 4 +++- modules/system/networking/default.nix | 3 +++ 5 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 modules/system/boot/default.nix create mode 100644 modules/system/networking/default.nix diff --git a/hosts/desktop/default.nix b/hosts/desktop/default.nix index d2ab9ce..7191d50 100644 --- a/hosts/desktop/default.nix +++ b/hosts/desktop/default.nix @@ -1,7 +1,5 @@ {...}: { networking.hostName = "desktop"; - networking.networkmanager.enable = true; - boot.loader.systemd-boot.enable = true; services.hardware.openrgb.enable = true; games.enable = true; diff --git a/hosts/laptop/default.nix b/hosts/laptop/default.nix index 1be6ab5..9691b4b 100644 --- a/hosts/laptop/default.nix +++ b/hosts/laptop/default.nix @@ -1,7 +1,5 @@ {...}: { networking.hostName = "laptop"; - networking.networkmanager.enable = true; - boot.loader.systemd-boot.enable = true; services.xserver.desktopManager.gnome.enable = true; hypridle.enable = true; diff --git a/modules/system/boot/default.nix b/modules/system/boot/default.nix new file mode 100644 index 0000000..2e57790 --- /dev/null +++ b/modules/system/boot/default.nix @@ -0,0 +1,3 @@ +{...}: { + boot.loader.systemd-boot.enable = true; +} diff --git a/modules/system/default.nix b/modules/system/default.nix index f2c2f08..d345e0c 100644 --- a/modules/system/default.nix +++ b/modules/system/default.nix @@ -2,8 +2,10 @@ imports = [ ./user ./homemanger - ./misc ./xdg ./appimage + ./networking + ./boot + ./misc ]; } diff --git a/modules/system/networking/default.nix b/modules/system/networking/default.nix new file mode 100644 index 0000000..e1e9450 --- /dev/null +++ b/modules/system/networking/default.nix @@ -0,0 +1,3 @@ +{...}: { + networking.networkmanager.enable = true; +}