mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-25 02:41:26 +01:00
refactor: Use haumea for filesystem-based module system for flake outputs
refactor: Use hyphen(`-`) for variable names & folder names(except Python), replace all unserscore(`_`) with hyphen(`-`).
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
{
|
||||
nixpkgs,
|
||||
nix-darwin,
|
||||
home-manager,
|
||||
system,
|
||||
specialArgs,
|
||||
inputs,
|
||||
darwin-modules,
|
||||
home-module,
|
||||
home-module ? null,
|
||||
myvars,
|
||||
system,
|
||||
genSpecialArgs,
|
||||
...
|
||||
}: let
|
||||
inherit (specialArgs) username;
|
||||
inherit (inputs) nixpkgs home-manager nix-darwin;
|
||||
specialArgs = genSpecialArgs system;
|
||||
in
|
||||
nix-darwin.lib.darwinSystem {
|
||||
inherit system specialArgs;
|
||||
@@ -31,7 +32,7 @@ in
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
home-manager.extraSpecialArgs = specialArgs;
|
||||
home-manager.users."${username}" = home-module;
|
||||
home-manager.users."${myvars.username}" = home-module;
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user