FDE on Mistmane
This commit is contained in:
parent
e5b80278c0
commit
0f1ea25d57
|
@ -4,9 +4,16 @@
|
||||||
boot = {
|
boot = {
|
||||||
kernel.sysctl."vm.swappiness" = 5;
|
kernel.sysctl."vm.swappiness" = 5;
|
||||||
kernelPackages = pkgs.linuxPackages_pinebookpro_lts;
|
kernelPackages = pkgs.linuxPackages_pinebookpro_lts;
|
||||||
|
kernelParams = [ "console=tty1" ];
|
||||||
cleanTmpDir = true;
|
cleanTmpDir = true;
|
||||||
loader.grub.enable = false;
|
loader.grub.enable = false;
|
||||||
loader.generic-extlinux-compatible.enable = true;
|
loader.generic-extlinux-compatible.enable = true;
|
||||||
|
initrd.luks.devices."${config.networking.hostName}" = {
|
||||||
|
name = config.networking.hostName;
|
||||||
|
device = "/dev/disk/by-uuid/74b7cded-e9f8-432f-b694-5bea09635168";
|
||||||
|
preLVM = true;
|
||||||
|
allowDiscards = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
|
|
|
@ -11,12 +11,6 @@
|
||||||
|
|
||||||
networking.hostName = "mistmane";
|
networking.hostName = "mistmane";
|
||||||
|
|
||||||
security.pam.enableEcryptfs = true;
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
ecryptfs
|
|
||||||
ecryptfs-helper
|
|
||||||
];
|
|
||||||
|
|
||||||
home-manager.users.artemis = {
|
home-manager.users.artemis = {
|
||||||
programs.foot = {
|
programs.foot = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -55,11 +49,6 @@
|
||||||
extraConfig = lib.mkForce "HandlePowerKey=lock";
|
extraConfig = lib.mkForce "HandlePowerKey=lock";
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [{
|
|
||||||
device = "/dev/disk/by-partuuid/3f4fb4d3-1e13-f64a-a435-8f866833c2b1";
|
|
||||||
randomEncryption = true;
|
|
||||||
}];
|
|
||||||
|
|
||||||
# rockchip/dptx.bin isn't in the initrd. Instead of fix nixpkgs let's do something incredibly cursed
|
# rockchip/dptx.bin isn't in the initrd. Instead of fix nixpkgs let's do something incredibly cursed
|
||||||
boot.extraModulePackages = [ (pkgs.callPackage ../../externals/packages/dptx-dummy { kernel = config.boot.kernelPackages.kernel; }) ];
|
boot.extraModulePackages = [ (pkgs.callPackage ../../externals/packages/dptx-dummy { kernel = config.boot.kernelPackages.kernel; }) ];
|
||||||
boot.initrd.availableKernelModules = [ "dptx-dummy" ];
|
boot.initrd.availableKernelModules = [ "dptx-dummy" ];
|
||||||
|
|
|
@ -5,28 +5,28 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "usbhid" "usb_storage" ];
|
boot.initrd.availableKernelModules = [ "usbhid" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||||
boot.kernelModules = [ ];
|
boot.kernelModules = [ ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{
|
{ device = "/dev/disk/by-uuid/8b204d52-62c1-48e9-b487-e7138f49903a";
|
||||||
device = "/dev/disk/by-uuid/ee6d20e7-03ec-462b-a28a-3e970acc5f0a";
|
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{
|
{ device = "/dev/disk/by-uuid/375e4660-be08-40ba-8961-0a9cc3a96187";
|
||||||
device = "/dev/disk/by-uuid/ef0ee32a-8ee0-4c4a-af21-d033ac2bb774";
|
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices =
|
||||||
|
[
|
||||||
|
{ device = "/dev/disk/by-uuid/1114039c-3329-4551-a56d-fccde77a31a7"; }
|
||||||
|
];
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue