-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
93 lines (82 loc) · 2.65 KB
/
flake.nix
File metadata and controls
93 lines (82 loc) · 2.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
description = "Home Manager configuration of chloe";
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:nixos/nixpkgs/release-24.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
home-manager.url = "github:nix-community/home-manager/release-24.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nix-index-database.url = "github:nix-community/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
nixgl.url = "github:nix-community/nixGL";
};
outputs = {
self,
home-manager,
nixgl,
nixpkgs,
nixpkgs-unstable,
nix-index-database,
...
} @ inputs: {
homeConfigurations = let
system = "x86_64-linux";
pkgs = import nixpkgs {
system = "${system}";
overlays = [
# when installing packages it’s then possible to use pkgs.unstable.foobar-some-package
(final: prev: {
unstable = import nixpkgs-unstable {
system = prev.system;
};
})
# nixGL overlay is required for opengl programs from nixpkgs to run on non-nixos linux
nixgl.overlay
];
};
in {
inherit inputs pkgs;
# TODO: reduce repeated code by recursing over each user of each hostname and user.
# Available through 'home-manager --flake .#your-username@your-hostname'
"chloe@qweenkpad" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {inherit inputs;}; # Pass flake inputs to our config
modules = [
./home.nix
./path.nix
./shell.nix
./user.nix
./aliases.nix
./programs.nix
./packages.nix
nix-index-database.hmModules.nix-index
# optional to also wrap and install comma
{programs.nix-index-database.comma.enable = true;}
# Host Specific configs
./hosts/qweenkpad/chloe.nix
./hosts/qweenkpad/custom.nix
{home.packages = [];}
{nixpkgs.overlays = pkgs.overlays;}
];
};
"chloe@ombre" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {inherit inputs;}; # Pass flake inputs to our config
modules = [
./home.nix
./path.nix
./shell.nix
./user.nix
./aliases.nix
./programs.nix
./packages.nix
# Host Specific configs
./hosts/ombre/chloe.nix
./hosts/ombre/custom.nix
{home.packages = [];}
{nixpkgs.overlays = pkgs.overlays;}
];
};
};
};
}