diff options
Diffstat (limited to 'home')
| -rw-r--r-- | home/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/home/default.nix b/home/default.nix new file mode 100644 index 0000000..4b52d13 --- /dev/null +++ b/home/default.nix @@ -0,0 +1,38 @@ +{ + lib, + inputs, + outputs, + self, + ... +}: +let + forAllSystems = lib.genAttrs (import inputs.systems); + nixpkgsFor = forAllSystems (system: import inputs.nixpkgs { inherit system; }); + secrets = builtins.fromTOML (builtins.readFile "${self}/secrets/secrets.toml"); +in +{ + flake.homeConfigurations.ebisu = + let + username = "ebisu"; + flakeDirectory = ".nixos-config"; + in + inputs.home-manager.lib.homeManagerConfiguration { + pkgs = nixpkgsFor."${builtins.currentSystem}"; + + modules = [ + ./${username} + inputs.chaotic.homeManagerModules.default + ]; + + extraSpecialArgs = { + inherit + inputs + outputs + self + secrets + username + flakeDirectory + ; + }; + }; +} |