-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
72 lines (67 loc) · 2.16 KB
/
flake.nix
File metadata and controls
72 lines (67 loc) · 2.16 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
{
description = "My NixOS configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
home-manager = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:nix-community/home-manager/release-25.11";
};
emacs-overlay = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:nix-community/emacs-overlay";
};
};
outputs =
{
nixpkgs,
home-manager,
...
}@inputs:
{
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake /path/to/this/dir#your-hostname'
nixosConfigurations = {
# personal desktop
osmium = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
./hosts/osmium
];
};
# personal laptop
scandium = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
./hosts/scandium
];
};
};
# Standalone home-manager configuration entrypoint
# Available through 'home-manager --flake /path/to/this/dir#your-username@your-hostname'
homeConfigurations = {
# personal desktop
"eric@osmium" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs; };
modules = [ ./home/eric/osmium.nix ];
};
"ejberqu@s1096537" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-darwin;
extraSpecialArgs = { inherit inputs; };
modules = [ ./home/ejberqu/s1096537.nix ];
};
# personal laptop
"eric@scandium" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs; };
modules = [ ./home/eric/scandium.nix ];
};
# personal laptop
"eric@sodium" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-darwin;
extraSpecialArgs = { inherit inputs; };
modules = [ ./home/eric/sodium.nix ];
};
};
};
}