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; ram = 16;
}; };
persist = {
enable = true;
cache.clean.enable = true;
};
services.throttled = { services.throttled = {
enable = true; enable = true;
extraConfig = '' extraConfig = ''

View File

@ -7,22 +7,25 @@
imports = imports =
[ "${inputs.nixpkgs}/nixos/modules/installer/scan/not-detected.nix" ]; [ "${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.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/persist" = {
{ device = "/dev/disk/by-uuid/7c16955c-8414-4971-bf37-6492e8c0cb61"; device = "/dev/disk/by-uuid/7c16955c-8414-4971-bf37-6492e8c0cb61";
fsType = "ext4"; 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" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/66D2-DC8B"; device = "/dev/disk/by-uuid/66D2-DC8B";
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = [ ]; swapDevices = [ ];

View File

@ -7,4 +7,16 @@ ContactsEnabled=true
DocumentsEnabled=true DocumentsEnabled=true
FilesEnabled=true FilesEnabled=true
Uri=https://nextcloud.balsoft.ru/ Uri=https://nextcloud.balsoft.ru/
AcceptSslErrors=false 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