-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
81 lines (67 loc) · 2.12 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
{
description = "NixOS System";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixos-hardware.url = "github:nixos/nixos-hardware";
# nixpkgs-rvu = {
# url = "github:uswitch/nixpkgs/cleanup";
# inputs.nixpkgs.follows = "nixpkgs";
# };
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.1";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
self,
nixpkgs,
nixpkgs-unstable,
home-manager,
...
}@inputs:
let
mkHome = import ./lib/mkhome.nix;
mkHost = import ./lib/mkhost.nix;
in
{
# nixosConfigurations.dv-rvu-x1c10 = mkHost "dv-rvu-x1c10" rec {
# inherit nixpkgs nixpkgs-unstable home-manager;
# system = "x86_64-linux";
# user = "dewaldv";
# extraModules = [
# inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-10th-gen
# inputs.nixpkgs-rvu.nixosModule
# inputs.lanzaboote.nixosModules.lanzaboote
# ];
# overlays = [ ];
# };
homeConfigurations.dewaldv = mkHome "dv-rvu-x1c10" rec {
inherit nixpkgs nixpkgs-unstable home-manager;
system = "x86_64-linux";
};
nixosConfigurations.dv-desktop = mkHost "dv-desktop" rec {
inherit nixpkgs nixpkgs-unstable home-manager;
system = "x86_64-linux";
user = "dewaldv";
extraModules = [
inputs.nixos-hardware.nixosModules.common-cpu-amd-pstate
inputs.nixos-hardware.nixosModules.common-gpu-amd
inputs.nixos-hardware.nixosModules.common-pc-ssd
];
overlays = [ ];
};
nixosConfigurations.dv-fw = mkHost "dv-fw" rec {
inherit nixpkgs nixpkgs-unstable home-manager;
system = "x86_64-linux";
user = "dewaldv";
extraModules = [ inputs.nixos-hardware.nixosModules.framework-13-7040-amd ];
overlays = [ ];
};
};
}