flake: add flake.nix
No flake.lock is added because the only input (nixpkgs) will almost always be overridden, and currently Home Manager's testing and verification is not flake based. PR #1455
This commit is contained in:
parent
a79d31fcfd
commit
6cf6b587b5
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
|
@ -1,5 +1,7 @@
|
||||||
* @rycee
|
* @rycee
|
||||||
|
|
||||||
|
/flake.nix @bqv @kisik21
|
||||||
|
|
||||||
/modules/home-environment.nix @rycee
|
/modules/home-environment.nix @rycee
|
||||||
|
|
||||||
/modules/misc/dconf.nix @gnidorah @rycee
|
/modules/misc/dconf.nix @gnidorah @rycee
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
|
/flake.lock
|
||||||
/result*
|
/result*
|
||||||
|
|
21
flake.nix
Normal file
21
flake.nix
Normal file
|
@ -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; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue