diff options
| author | Fuwn <[email protected]> | 2024-09-11 20:08:45 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-11 20:08:45 -0700 |
| commit | f7ceb50994b9ad08a38361af168c98792a3fb398 (patch) | |
| tree | 0cc335d0496424af9336c267503d26355d0d7952 /home | |
| parent | lib: secrets (diff) | |
| download | nixos-config-f7ceb50994b9ad08a38361af168c98792a3fb398.tar.xz nixos-config-f7ceb50994b9ad08a38361af168c98792a3fb398.zip | |
lib: systems
Diffstat (limited to 'home')
| -rw-r--r-- | home/default.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/home/default.nix b/home/default.nix index 0580ac8..1475f01 100644 --- a/home/default.nix +++ b/home/default.nix @@ -6,8 +6,6 @@ ... }: let - forAllSystems = lib.genAttrs (import inputs.systems); - nixpkgsFor = forAllSystems (system: import inputs.nixpkgs { inherit system; }); secrets = import ../lib/secrets.nix { inherit self; }; in { @@ -15,9 +13,13 @@ in let username = "ebisu"; flakeDirectory = ".nixos-config"; + systems = import inputs.systems; in inputs.home-manager.lib.homeManagerConfiguration { - pkgs = nixpkgsFor."${builtins.currentSystem}"; + pkgs = + ((import ../lib/systems.nix { inherit lib systems; }) ( + system: import inputs.nixpkgs { inherit system; } + ))."${builtins.currentSystem}"; modules = [ ./${username} |