tangled
alpha
login
or
join now
bwc9876.dev
/
nixos-config
1
fork
atom
Flake for my NixOS devices
1
fork
atom
overview
issues
pulls
pipelines
Switch Aperture to Imperm + LUKS
bwc9876.dev
1 year ago
8cab442a
021ec41a
verified
This commit was signed with the committer's
known signature
.
bwc9876.dev
SSH Key Fingerprint:
SHA256:DanMEP/RNlSC7pAVbnXO6wzQV00rqyKj053tz4uH5gQ=
+32
-14
2 changed files
expand all
collapse all
unified
split
roles
imperm.nix
systems
aperture.nix
+6
-3
roles/imperm.nix
···
109
"newsboat"
110
"zoxide"
111
"nvim"
0
0
0
0
0
0
112
"user-places.xbel"
113
]);
114
-
files = [
115
-
".config/nushell/history.txt"
116
-
];
117
};
118
};
119
}
···
109
"newsboat"
110
"zoxide"
111
"nvim"
112
+
]);
113
+
files =
114
+
(preConf [
115
+
"nushell/history.txt"
116
+
])
117
+
++ (preShare [
118
"user-places.xbel"
119
]);
0
0
0
120
};
121
};
122
}
+26
-11
systems/aperture.nix
···
9
10
includeBaseMods = true;
11
12
-
roles = ["latest-linux" "dev" "graphics" "games" "fun" "social" "secureboot" "wireless" "hypervisor"];
13
extraModules = [
14
inputs.nixos-hardware.nixosModules.framework-13th-gen-intel
15
(
···
28
boot.extraModulePackages = [];
29
boot.binfmt.emulatedSystems = ["aarch64-linux"];
30
0
0
31
fileSystems."/" = {
32
-
device = "/dev/disk/by-uuid/2c002966-4572-4094-8d3f-18d455b611ca";
33
-
fsType = "ext4";
0
0
0
0
0
0
0
34
};
35
36
fileSystems."/boot" = {
37
-
device = "/dev/disk/by-uuid/A57C-E5FF";
38
fsType = "vfat";
0
39
};
40
41
-
hardware.framework.enableKmod = false;
0
0
0
0
42
43
-
swapDevices = [{device = "/dev/disk/by-uuid/fde5784f-93e8-4e3b-8ca2-74bf44b00479";}];
0
44
45
-
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
46
-
# (the default) this is the recommended approach. When using systemd-networkd it's
47
-
# still possible to use this option, but it's recommended to use it in conjunction
48
-
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
49
networking.useDHCP = lib.mkDefault true;
50
-
# networking.interfaces.wlp170s0.useDHCP = lib.mkDefault true;
51
52
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
53
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
···
58
];
59
};
60
}
0
···
9
10
includeBaseMods = true;
11
12
+
roles = ["latest-linux" "dev" "graphics" "games" "fun" "social" "imperm" "secureboot" "wireless" "hypervisor" "black-mesa-cache"];
13
extraModules = [
14
inputs.nixos-hardware.nixosModules.framework-13th-gen-intel
15
(
···
28
boot.extraModulePackages = [];
29
boot.binfmt.emulatedSystems = ["aarch64-linux"];
30
31
+
hardware.framework.enableKmod = false;
32
+
33
fileSystems."/" = {
34
+
fsType = "tmpfs";
35
+
options = ["size=512M" "mode=755"];
36
+
neededForBoot = true;
37
+
};
38
+
39
+
fileSystems."/home" = {
40
+
fsType = "tmpfs";
41
+
options = ["size=2G"];
42
+
neededForBoot = true;
43
};
44
45
fileSystems."/boot" = {
46
+
device = "/dev/disk/by-uuid/88E4-A64F";
47
fsType = "vfat";
48
+
options = ["fmask=0022" "dmask=0022" "nosuid" "nodev" "noexec" "noatime"];
49
};
50
51
+
fileSystems."/nix" = {
52
+
device = "/dev/disk/by-uuid/fd9f484a-a5ef-4378-b054-d292b0204afb";
53
+
fsType = "ext4";
54
+
neededForBoot = true;
55
+
};
56
57
+
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/330c8e83-23cd-46bf-99b3-75a7f5d7c5dc";
58
+
boot.initrd.luks.devices."cryptswap".device = "/dev/disk/by-uuid/c599ad48-750b-458d-8361-601bee3eb066";
59
60
+
swapDevices = [
61
+
{device = "/dev/disk/by-uuid/834d0d23-6a06-416f-853f-36c6ce81f355";}
62
+
];
63
+
64
networking.useDHCP = lib.mkDefault true;
0
65
66
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
67
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
···
72
];
73
};
74
}
75
+