Tmpfs root for T490s-Laptop

This commit is contained in:
Alexander Bantyev 2021-10-22 17:03:41 +03:00
parent 451bf29096
commit a7bafe6299
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
3 changed files with 32 additions and 11 deletions

View File

@ -13,6 +13,12 @@
};
ram = 16;
};
persist = {
enable = true;
cache.clean.enable = true;
};
services.throttled = {
enable = true;
extraConfig = ''

View File

@ -7,22 +7,25 @@
imports =
[ "${inputs.nixpkgs}/nixos/modules/installer/scan/not-detected.nix" ];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.availableKernelModules =
[ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/7c16955c-8414-4971-bf37-6492e8c0cb61";
fsType = "ext4";
};
fileSystems."/persist" = {
device = "/dev/disk/by-uuid/7c16955c-8414-4971-bf37-6492e8c0cb61";
fsType = "ext4";
neededForBoot = true;
};
boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/234de44d-b2d4-44d0-a4e3-b3ef6b159424";
boot.initrd.luks.devices."root".device =
"/dev/disk/by-uuid/234de44d-b2d4-44d0-a4e3-b3ef6b159424";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/66D2-DC8B";
fsType = "vfat";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/66D2-DC8B";
fsType = "vfat";
};
swapDevices = [ ];

View File

@ -8,3 +8,15 @@ DocumentsEnabled=true
FilesEnabled=true
Uri=https://nextcloud.balsoft.ru/
AcceptSslErrors=false
[Account account_1634567009_0]
Provider=google
Identity=balsoft75@gmail.com
PresentationIdentity=balsoft75@gmail.com
MailEnabled=false
CalendarEnabled=true
ContactsEnabled=true
DocumentsEnabled=true
PhotosEnabled=true
FilesEnabled=true
PrintersEnabled=true