diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5aa1f6c4e..dccdc8f8e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,5 +1,7 @@ * @rycee +/flake.nix @bqv @kisik21 + /modules/home-environment.nix @rycee /modules/misc/dconf.nix @gnidorah @rycee diff --git a/.gitignore b/.gitignore index d6944e3dd..3526db718 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +/flake.lock /result* diff --git a/flake.nix b/flake.nix new file mode 100644 index 000000000..697f66ac8 --- /dev/null +++ b/flake.nix @@ -0,0 +1,21 @@ +{ + description = "Home Manager for Nix"; + + outputs = { self, nixpkgs }: rec { + nixosModules.home-manager = import ./nixos; + + lib = { + homeManagerConfiguration = { configuration, system, homeDirectory + , username + , pkgs ? builtins.getAttr system nixpkgs.outputs.legacyPackages + , check ? true }@args: + import ./modules { + inherit pkgs check; + configuration = { ... }: { + imports = [ configuration ]; + home = { inherit homeDirectory username; }; + }; + }; + }; + }; +}