Refactor Nix configurations for improved readability and organization; update package declarations to use 'with pkgs;' syntax and remove unnecessary builtins.attrValues.

This commit is contained in:
2025-07-23 14:18:20 -03:00
parent 5c62858c37
commit 6268fe3b00
29 changed files with 256 additions and 233 deletions

View File

@@ -3,8 +3,7 @@
lib,
pkgs,
...
}:
{
}: {
imports = lib.flatten [
(lib.custom.scanPaths ./.)
(map lib.custom.relativeToRoot [
@@ -16,17 +15,14 @@
username = lib.mkDefault "exampleSecondUser";
homeDirectory = lib.mkDefault "/home/${config.home.username}";
stateVersion = lib.mkDefault "24.11";
sessionPath = [ "$HOME/.local/bin" ];
};
home.packages = builtins.attrValues {
inherit (pkgs)
# Packages that don't have custom configs go here
nix-tree
;
sessionPath = ["$HOME/.local/bin"];
};
home.packages = with pkgs; [
# Packages that don't have custom configs go here
nix-tree
];
nix = {
package = lib.mkDefault pkgs.nix;
settings = {