-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathframework.nix
More file actions
45 lines (42 loc) · 1.11 KB
/
framework.nix
File metadata and controls
45 lines (42 loc) · 1.11 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
{
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
inputs.home-manager.nixosModules.home-manager
inputs.fps.nixosModules.programs-sqlite
inputs.nixos-hardware.nixosModules.framework-13-7040-amd
({...}: {
nixpkgs = {
inherit (config) overlays;
};
nix.registry.nixpkgs.flake = inputs.nixpkgs;
boot.initrd.luks.devices = {
cryptlvm = {
device = "/dev/nvme0n1p1";
allowDiscards = true;
preLVM = true;
};
};
machine = "framework";
networking.hostName = "Alex_fm"; # Define your hostname.
services = {
fwupd.enable = true;
upower.enable = true;
logind.settings.Login.HandleLidSwitch = "ignore";
};
system.configurationRevision = lib.mkIf (inputs.self ? rev) inputs.self.rev;
})
];
};
}