diff options
| author | Fuwn <[email protected]> | 2024-10-01 05:20:55 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-01 05:21:07 -0700 |
| commit | 68a99373f88f2b428f0d697ba7eca6aeacd2274f (patch) | |
| tree | d0b927f419702126a8b7df1bce4f845d4ad638fd /flake.nix | |
| parent | flake: move single-use library expressions (diff) | |
| download | nixos-config-68a99373f88f2b428f0d697ba7eca6aeacd2274f.tar.xz nixos-config-68a99373f88f2b428f0d697ba7eca6aeacd2274f.zip | |
flake: adaptive flake root
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,6 +1,7 @@ { outputs = { + flake-root, flake-parts, home-manager, nixpkgs, @@ -46,6 +47,8 @@ systems = builtins.attrNames (systemsAttributes (system: system)); imports = [ + flake-root.flakeModule + (import ./home { inherit kansaiPkgs @@ -72,7 +75,7 @@ ]; perSystem = - { system, ... }: + { system, config, ... }: let pkgs = (kansaiPkgs { })."${system}"; in @@ -95,12 +98,14 @@ inherit (self.checks.${system}.pre-commit-check) shellHook; buildInputs = self.checks.${system}.pre-commit-check.enabledPackages; + inputsFrom = [ config.flake-root.devShell ]; }; }; }; inputs = { chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable"; + flake-root.url = "github:srid/flake-root"; nur.url = "github:nix-community/NUR"; nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; nixpkgs-stable.url = "github:NixOS/nixpkgs/24.05"; |