diff options
| author | Fuwn <[email protected]> | 2024-09-11 19:45:44 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-11 19:45:44 -0700 |
| commit | 36919d7d06f6878d9d59daf42660e175be9daafd (patch) | |
| tree | aaf406d0ce1e51c6949677c06c24ece7ea440ea5 /home | |
| parent | flake-parts: hosts (diff) | |
| download | nixos-config-36919d7d06f6878d9d59daf42660e175be9daafd.tar.xz nixos-config-36919d7d06f6878d9d59daf42660e175be9daafd.zip | |
flake-parts: home
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 + ; + }; + }; +} |