-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
108 lines (106 loc) · 2.88 KB
/
flake.nix
File metadata and controls
108 lines (106 loc) · 2.88 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
description = "tanOS";
inputs = {
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nvf.url = "github:notashelf/nvf";
stylix.url = "github:danth/stylix";
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.2";
};
zen-browser = {
url = "github:0xc000022070/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-ld = {
url = "github:Mic92/nix-ld";
inputs.nixpkgs.follows = "nixpkgs";
};
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.93.0.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-xivlauncher-rb = {
url = "github:drakon64/nixos-xivlauncher-rb";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {nixpkgs, lanzaboote, nix-ld, lix-module, nixos-xivlauncher-rb, ...} @ inputs: let
system = "x86_64-linux";
host = "tandesk";
profile = "nvidia";
username = "tan";
in {
nixosConfigurations = {
amd = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit inputs;
inherit username;
inherit host;
inherit profile;
lanzaboote = lanzaboote;
};
modules = [
./profiles/amd
lix-module.nixosModules.default
lanzaboote.nixosModules.lanzaboote
nix-ld.nixosModules.nix-ld
{ programs.nix-ld.dev.enable = true; }
nixos-xivlauncher-rb.nixosModules.default
];
};
nvidia = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit inputs;
inherit username;
inherit host;
inherit profile;
lanzaboote = lanzaboote;
};
modules = [
./profiles/nvidia
lix-module.nixosModules.default
lanzaboote.nixosModules.lanzaboote
nix-ld.nixosModules.nix-ld
{ programs.nix-ld.dev.enable = true; }
nixos-xivlauncher-rb.nixosModules.default
];
};
nvidia-laptop = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit inputs;
inherit username;
inherit host;
inherit profile;
};
modules = [./profiles/nvidia-laptop];
};
intel = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit inputs;
inherit username;
inherit host;
inherit profile;
};
modules = [./profiles/intel];
};
vm = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit inputs;
inherit username;
inherit host;
inherit profile;
};
modules = [./profiles/vm];
};
};
};
}