From 04c82801d2cbfe0635a6154bbba851113565dc98 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sun, 25 Aug 2024 12:53:47 +0200 Subject: [PATCH] add new home-manager modules structure & add to configs --- flake.nix | 7 +++++++ nix/hmModules/default.nix | 6 ++++++ nix/hmModules/extends/default.nix | 5 +++++ 3 files changed, 18 insertions(+) create mode 100644 nix/hmModules/default.nix create mode 100644 nix/hmModules/extends/default.nix diff --git a/flake.nix b/flake.nix index c87a9d1..97528e0 100644 --- a/flake.nix +++ b/flake.nix @@ -56,6 +56,12 @@ # shortcut to fully configured secrix apps.x86_64-linux.secrix = inputs.secrix.secrix self; + homeManagerModules = { + # combination of all my custom modules + # these should not change anything until you enable their custom options + default.imports = [ ./nix/hmModules ]; + }; + nixosConfigurations = let nixpkgs = inputs.nixpkgs; @@ -65,6 +71,7 @@ modsExtended = [ outputs.nixosModules.myOptions outputs.nixosModules.withDepends + { home-manager.sharedModules = [ outputs.homeManagerModules.default ]; } ] ++ modules; in nixpkgs.lib.nixosSystem { diff --git a/nix/hmModules/default.nix b/nix/hmModules/default.nix new file mode 100644 index 0000000..3a8ff53 --- /dev/null +++ b/nix/hmModules/default.nix @@ -0,0 +1,6 @@ +{ + imports = [ + # directories + ./extends + ]; +} diff --git a/nix/hmModules/extends/default.nix b/nix/hmModules/extends/default.nix new file mode 100644 index 0000000..21c286b --- /dev/null +++ b/nix/hmModules/extends/default.nix @@ -0,0 +1,5 @@ +{ + imports = [ + # files + ]; +}