From a7bafe62997ab6c8665ce5658eb2f150d3ad94b0 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Fri, 22 Oct 2021 17:03:41 +0300 Subject: [PATCH] Tmpfs root for T490s-Laptop --- machines/T490s-Laptop/default.nix | 6 +++++ .../T490s-Laptop/hardware-configuration.nix | 23 +++++++++++-------- profiles/workspace/gnome3/accounts.conf | 14 ++++++++++- 3 files changed, 32 insertions(+), 11 deletions(-) diff --git a/machines/T490s-Laptop/default.nix b/machines/T490s-Laptop/default.nix index 4ba8b95..73fc682 100644 --- a/machines/T490s-Laptop/default.nix +++ b/machines/T490s-Laptop/default.nix @@ -13,6 +13,12 @@ }; ram = 16; }; + + persist = { + enable = true; + cache.clean.enable = true; + }; + services.throttled = { enable = true; extraConfig = '' diff --git a/machines/T490s-Laptop/hardware-configuration.nix b/machines/T490s-Laptop/hardware-configuration.nix index 803bbfd..4e584f1 100755 --- a/machines/T490s-Laptop/hardware-configuration.nix +++ b/machines/T490s-Laptop/hardware-configuration.nix @@ -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 = [ ]; diff --git a/profiles/workspace/gnome3/accounts.conf b/profiles/workspace/gnome3/accounts.conf index fae39c1..c4288e1 100644 --- a/profiles/workspace/gnome3/accounts.conf +++ b/profiles/workspace/gnome3/accounts.conf @@ -7,4 +7,16 @@ ContactsEnabled=true DocumentsEnabled=true FilesEnabled=true Uri=https://nextcloud.balsoft.ru/ -AcceptSslErrors=false \ No newline at end of file +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