summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-01 05:20:55 -0700
committerFuwn <[email protected]>2024-10-01 05:21:07 -0700
commit68a99373f88f2b428f0d697ba7eca6aeacd2274f (patch)
treed0b927f419702126a8b7df1bce4f845d4ad638fd /flake.nix
parentflake: move single-use library expressions (diff)
downloadnixos-config-68a99373f88f2b428f0d697ba7eca6aeacd2274f.tar.xz
nixos-config-68a99373f88f2b428f0d697ba7eca6aeacd2274f.zip
flake: adaptive flake root
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index e4f0f08..d8b9199 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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";