tangled
alpha
login
or
join now
dunkirk.sh
/
dots
3
fork
atom
Kieran's opinionated (and probably slightly dumb) nix config
3
fork
atom
overview
issues
pulls
pipelines
chore: make home manager a module
Kieran Klukas
2 years ago
9d5630ac
a43b662c
+17
-12
3 changed files
expand all
collapse all
unified
split
flake.nix
moonlark
configuration.nix
home-manager.nix
-12
flake.nix
···
31
31
modules = [./moonlark/configuration.nix];
32
32
};
33
33
};
34
34
-
35
35
-
# Standalone home-manager configuration entrypoint
36
36
-
# Available through 'home-manager --flake .#your-username@your-hostname'
37
37
-
homeConfigurations = {
38
38
-
# FIXME replace with your username@hostname
39
39
-
"kierank@moonlark" = home-manager.lib.homeManagerConfiguration {
40
40
-
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
41
41
-
extraSpecialArgs = {inherit inputs outputs;};
42
42
-
# > Our main home-manager configuration file <
43
43
-
modules = [./home-manager/home.nix];
44
44
-
};
45
45
-
};
46
34
};
47
35
}
+3
moonlark/configuration.nix
···
14
14
15
15
# Import your generated (nixos-generate-config) hardware configuration
16
16
./hardware-configuration.nix
17
17
+
18
18
+
# Import home-manager's configuration
19
19
+
./home-manager.nix
17
20
];
18
21
19
22
nixpkgs = {
+14
moonlark/home-manager.nix
···
1
1
+
{ inputs, outputs, ... }: {
2
2
+
imports = [
3
3
+
# Import home-manager's NixOS module
4
4
+
inputs.home-manager.nixosModules.home-manager
5
5
+
];
6
6
+
7
7
+
home-manager = {
8
8
+
extraSpecialArgs = { inherit inputs outputs; };
9
9
+
users = {
10
10
+
# Import your home-manager configuration
11
11
+
kierank = import ../home-manager/home.nix;
12
12
+
};
13
13
+
};
14
14
+
}