-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
150 lines (139 loc) · 4.9 KB
/
flake.nix
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{
description = "My NixOS dotfiles";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence = {
url = "github:nix-community/impermanence";
};
nur.url = "github:nix-community/NUR/251d756a74e67bda25d89327b01a3da19dddabae";
pre-commit-hooks-nix = {
url = "github:cachix/pre-commit-hooks.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
systems.url = "github:nix-systems/x86_64-linux";
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs-stable.follows = "nixpkgs";
};
nvfetcher = {
url = "github:berberman/nvfetcher";
inputs.nixpkgs.follows = "nixpkgs";
};
deadnix.url = "github:astro/deadnix";
jovian.url = "github:Jovian-Experiments/Jovian-NixOS";
nix-gaming.url = "github:fufexan/nix-gaming";
json2steamshortcut.url = "github:ChrisOboe/json2steamshortcut";
};
outputs = inputs:
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
imports = [
inputs.pre-commit-hooks-nix.flakeModule
./home-manager
./lib
./nixos
./parts
./users
];
flake = {config, ...}: {
packages.x86_64-linux = import ./pkgs {
inherit (inputs) self;
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
flake-inputs = inputs;
};
apps.x86_64-linux.commit-nvfetcher = {
type = "app";
program = toString (
inputs.nixpkgs.legacyPackages.x86_64-linux.writeShellScript "commit-nvfetcher" ''
${inputs.self.packages.x86_64-linux.commit-nvfetcher}/bin/commit-nvfetcher -k /tmp/github-key.toml
''
);
};
# NixOS home configuration setup lives in
# ./home-manager/modules` as individual `homeModules`
homeConfigurations = {
imports = [inputs.sops-nix.homeManagerModules.sops];
};
nixosConfigurations = {
desktop = inputs.self.lib.mkLinuxSystem [
./systems/desktop
./users/profiles/user0
config.nixosModules.shared
config.nixosModules.desktop
inputs.sops-nix.nixosModules.sops
inputs.home-manager.nixosModules.home-manager
inputs.impermanence.nixosModules.impermanence
inputs.nur.nixosModules.nur
];
work = inputs.self.lib.mkLinuxSystem [
./systems/work
./users/profiles/user0
config.nixosModules.shared
config.nixosModules.work
inputs.sops-nix.nixosModules.sops
inputs.home-manager.nixosModules.home-manager
inputs.impermanence.nixosModules.impermanence
inputs.nur.nixosModules.nur
];
deck = inputs.self.lib.mkLinuxSystem [
./systems/deck
./users/profiles/user0
./users/profiles/user1
config.nixosModules.deck
inputs.sops-nix.nixosModules.sops
inputs.home-manager.nixosModules.home-manager
inputs.jovian.nixosModules.jovian
];
node = inputs.self.lib.mkLinuxSystem [
./systems/node
./users/profiles/user0
config.nixosModules.shared
config.nixosModules.node
inputs.sops-nix.nixosModules.sops
inputs.home-manager.nixosModules.home-manager
inputs.impermanence.nixosModules.impermanence
inputs.nur.nixosModules.nur
];
dell = inputs.self.lib.mkLinuxSystem [
./systems/dell
./users/profiles/user0
config.nixosModules.dell
inputs.sops-nix.nixosModules.sops
inputs.home-manager.nixosModules.home-manager
];
thinkpad = inputs.self.lib.mkLinuxSystem [
./systems/thinkpad
./users/profiles/user0
config.nixosModules.thinkpad
inputs.sops-nix.nixosModules.sops
inputs.home-manager.nixosModules.home-manager
];
server = inputs.self.lib.mkLinuxSystem [
./systems/server
./users/profiles/user0
config.nixosModules.server
inputs.sops-nix.nixosModules.sops
inputs.home-manager.nixosModules.home-manager
inputs.nur.nixosModules.nur
];
nas = inputs.self.lib.mkLinuxSystem [
./systems/nas
./users/profiles/user0
config.nixosModules.nas
inputs.sops-nix.nixosModules.sops
inputs.home-manager.nixosModules.home-manager
inputs.nur.nixosModules.nur
];
};
};
systems = import inputs.systems;
};
}