Commit 4d97b32

HPCesia <me@hpcesia.com>
2025-09-30 10:27:46
feat: basic home-manager module
1 parent 421cf6f
Changed files (3)
modules
core
hosts
chaser-kevin
chaser-pardofelis
modules/core/home.nix
@@ -0,0 +1,14 @@
+{inputs, ...}: {
+  flake.modules.nixos.core = _: {
+    imports = [
+      inputs.home-manager.nixosModules.home-manager
+    ];
+    home-manager.useGlobalPkgs = true;
+    home-manager.useUserPackages = true;
+    home-manager.backupFileExtension = "home-manager.backup";
+  };
+
+  flake.modules.homeManager.core = _: {
+    manual.manpages.enable = false;
+  };
+}
modules/hosts/chaser-kevin/default.nix
@@ -1,6 +1,20 @@
-{
+{config, ...}: {
   flake.meta.host.hosts.kevin = {
     system = "x86_64-linux";
   };
-  flake.modules.nixos."hosts/kevin" = {};
+  flake.modules.nixos."hosts/kevin" = {
+    imports =
+      (with config.flake.modules.nixos; [
+        core
+      ])
+      ++ [
+        {
+          home-manager.users.hpcesia = {
+            imports = with config.flake.modules.homeManager; [
+              core
+            ];
+          };
+        }
+      ];
+  };
 }
modules/hosts/chaser-pardofelis/default.nix
@@ -1,6 +1,10 @@
-{
+{config, ...}: {
   flake.meta.host.hosts.pardofelis = {
     system = "x86_64-linux";
   };
-  flake.modules.nixos."hosts/pardofelis" = {};
+  flake.modules.nixos."hosts/pardofelis" = {
+    imports = with config.flake.modules.nixos; [
+      core
+    ];
+  };
 }