Skip to content

Commit 6cf6b58

Browse files
bqvrycee
authored andcommitted
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 nix-community#1455
1 parent a79d31f commit 6cf6b58

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

.github/CODEOWNERS

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
* @rycee
22

3+
/flake.nix @bqv @kisik21
4+
35
/modules/home-environment.nix @rycee
46

57
/modules/misc/dconf.nix @gnidorah @rycee

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
/flake.lock
12
/result*

flake.nix

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
description = "Home Manager for Nix";
3+
4+
outputs = { self, nixpkgs }: rec {
5+
nixosModules.home-manager = import ./nixos;
6+
7+
lib = {
8+
homeManagerConfiguration = { configuration, system, homeDirectory
9+
, username
10+
, pkgs ? builtins.getAttr system nixpkgs.outputs.legacyPackages
11+
, check ? true }@args:
12+
import ./modules {
13+
inherit pkgs check;
14+
configuration = { ... }: {
15+
imports = [ configuration ];
16+
home = { inherit homeDirectory username; };
17+
};
18+
};
19+
};
20+
};
21+
}

0 commit comments

Comments
 (0)