Restructure home module

This commit is contained in:
aloslider
2026-04-17 16:00:29 +03:00
parent 4a21cb9a9d
commit 91a36ec0c6
6 changed files with 28 additions and 18 deletions
+7
View File
@@ -0,0 +1,7 @@
{ config, ... }:
{
imports = [
./git.nix
./zsh.nix
];
}
+7
View File
@@ -0,0 +1,7 @@
{ config, ... }:
{
programs.zsh = {
enable = true;
envExtra = "";
};
}
+12 -4
View File
@@ -17,12 +17,20 @@
{ pkgs, ... }:
{
imports = lib.flatten [
./packages.nix
(map (f: lib.custom.relativeToRoot "home/common/optional/${f}") [
"git.nix"
])
(map lib.custom.relativeToRoot (
[
"home/benq/core"
]
++ (map (f: "home/benq/optional/${f}") [
])
))
];
home.packages = with pkgs; [
chezmoi
lazygit
lazydocker
];
home.stateVersion = "25.05";
};
};
-12
View File
@@ -1,12 +0,0 @@
{
config,
pkgs,
...
}:
{
home.packages = with pkgs; [
chezmoi
lazygit
lazydocker
];
}
+2 -2
View File
@@ -11,7 +11,7 @@
(map lib.custom.relativeToRoot (
[
"hosts/common/core"
"hosts/common/users/benq.nix"
"hosts/common/users/benq.nix"
"home/benq/homelab.nix"
]
++ (map (f: "hosts/common/optional/${f}") [
@@ -25,5 +25,5 @@
];
disko.cfg.mainDevice = "/dev/disk/by-id/ata-AMD_R5M120G8_07092225C0040";
system.stateVersion = "26.05";
system.stateVersion = "26.05";
}