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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user