-
Notifications
You must be signed in to change notification settings - Fork 1
/
framework.nix
52 lines (47 loc) · 1.21 KB
/
framework.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
{
config,
lib,
inputs,
...
}: {
flake.nixosConfigurations.framework = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs.inputs = inputs;
modules = [
./common.nix
./users.nix
./home.nix
./hardware/framework.nix
./cachix.nix
# ./kmonad.nix
inputs.home-manager.nixosModules.home-manager
inputs.fps.nixosModules.programs-sqlite
inputs.nixos-hardware.nixosModules.framework-11th-gen-intel
({...}: {
nixpkgs = {
inherit (config) overlays;
};
boot.initrd.luks.devices = {
cryptlvm = {
device = "/dev/nvme0n1p1";
allowDiscards = true;
preLVM = true;
};
};
machine = "framework";
networking.hostName = "Alex_fm"; # Define your hostname.
hardware = {
cpu.intel.updateMicrocode = true;
};
services = {
upower.enable = true;
fprintd.enable = false;
tlp.enable = true;
logind.lidSwitch = "ignore";
};
system.configurationRevision = lib.mkIf (inputs.self ? rev) inputs.self.rev;
services.ratbagd.enable = true;
})
];
};
}