Commit 4d97b32
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
+ ];
+ };
}