-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathasahi.nix
55 lines (43 loc) · 1.1 KB
/
asahi.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
{ pkgs, ... }:
{
imports = [ ./linux.nix ];
# Hardware configuration
hardware.enableRedistributableFirmware = true;
boot.initrd.availableKernelModules = [
"usb_storage"
"sdhci_pci"
];
fileSystems."/" = {
device = "/dev/disk/by-uuid/0a4e816e-ae88-407c-8c9d-cecf3a4e2f3f";
fsType = "btrfs";
options = [ "subvol=@" ];
};
fileSystems."/home" = {
device = "/dev/disk/by-uuid/0a4e816e-ae88-407c-8c9d-cecf3a4e2f3f";
fsType = "btrfs";
options = [ "subvol=@home" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/863D-1D15";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
swapDevices = [
{
device = "/var/lib/swapfile";
size = 16 * 1024;
}
];
# Other configuration
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = false;
networking.hostName = "liam-asahi";
hardware.asahi.useExperimentalGPUDriver = true;
environment.systemPackages = [ pkgs.zed-editor ];
# TODO: get working w/ FEX.
programs.steam.enable = false;
system.stateVersion = "24.05";
}