From 1cceb9916f365b8a4ed157481c8542f6dad83025 Mon Sep 17 00:00:00 2001 From: Miran Bastaja Date: Wed, 6 Dec 2023 13:47:10 +0100 Subject: Create client-common module Create a module that contains common configuration shared across all my client (i.e. not server) machines. --- hosts/underworld/default.nix | 3 +-- hosts/wonderland/default.nix | 3 +-- share/system/client-common.nix | 9 +++++++++ 3 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 share/system/client-common.nix diff --git a/hosts/underworld/default.nix b/hosts/underworld/default.nix index d900560..f303675 100644 --- a/hosts/underworld/default.nix +++ b/hosts/underworld/default.nix @@ -5,8 +5,7 @@ ./disko.nix ./home.nix - (flakeRoot + /share/system/steam.nix) - (flakeRoot + /share/system/hyprland.nix) + (flakeRoot + /share/system/client-common.nix) #(flakeRoot + /share/system/spotifyd.nix) { _module.args = { inherit inputs; }; } ]; diff --git a/hosts/wonderland/default.nix b/hosts/wonderland/default.nix index 03e91a3..e6487eb 100644 --- a/hosts/wonderland/default.nix +++ b/hosts/wonderland/default.nix @@ -4,10 +4,9 @@ ./hardware.nix ./home.nix ./sops.nix - (flakeRoot + /share/system/steam.nix) - (flakeRoot + /share/system/hyprland.nix) (import (flakeRoot + /share/system/virt.nix) { inherit pkgs; virt-users = [ "alice" ]; }) + (flakeRoot + /share/system/client-common.nix) #(flakeRoot + /share/system/spotifyd.nix) { _module.args = { inherit inputs; }; } ]; diff --git a/share/system/client-common.nix b/share/system/client-common.nix new file mode 100644 index 0000000..c6ae988 --- /dev/null +++ b/share/system/client-common.nix @@ -0,0 +1,9 @@ +# Common configuration options for client machines (i.e. not servers) +{ ... }: +{ + boot.supportedFilesystems = [ "ntfs" "bcachefs" ]; + imports = [ + ./hyprland.nix + ./steam.nix + ]; +} -- cgit v1.3.1