cleanup thinky

This commit is contained in:
Cyryl Płotnicki 2021-09-18 11:31:15 +02:00
parent 728dda6714
commit 90c1c13580
3 changed files with 17 additions and 36 deletions

View file

@ -19,6 +19,11 @@
time.timeZone = "Europe/Warsaw"; time.timeZone = "Europe/Warsaw";
services.thermald.enable = true; services.thermald.enable = true;
zramSwap = {
enable = true;
algorithm = "zstd";
memoryPercent = 50;
};
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;
home-manager.users.cyryl = {...}: { home-manager.users.cyryl = {...}: {
imports = [ imports = [

View file

@ -13,20 +13,20 @@
loader.grub.device = "/dev/sda"; loader.grub.device = "/dev/sda";
}; };
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/87ea2035-a966-4a06-8b66-e4ac366c3cb9"; device = "/dev/disk/by-uuid/87ea2035-a966-4a06-8b66-e4ac366c3cb9";
fsType = "btrfs"; fsType = "btrfs";
}; };
boot.initrd.luks.devices."crypt".device = "/dev/disk/by-uuid/8d51b38a-5d90-4a7a-a86a-0d57648fd82d"; boot.initrd.luks.devices."crypt".device = "/dev/disk/by-uuid/8d51b38a-5d90-4a7a-a86a-0d57648fd82d";
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/195b3f15-885e-4123-879f-6e4591a58317"; device = "/dev/disk/by-uuid/195b3f15-885e-4123-879f-6e4591a58317";
fsType = "ext2"; fsType = "ext2";
}; };
swapDevices = [ ]; swapDevices = [ ];
nix.maxJobs = 2; nix.maxJobs = 2;
nix.buildCores = 6; nix.buildCores = 2;
} }

View file

@ -1,24 +0,0 @@
{ config, pkgs, ... }:
{
networking.hostName = "thinky";
boot = {
kernelPackages = pkgs.linuxPackages_latest_hardened;
initrd.luks.devices."crypt"=
{
device = "/dev/disk/by-uuid/962caed1-9dd5-4771-9a8f-3d3f5854af2e";
preLVM = true;
allowDiscards = true;
};
loader.grub = {
device = "/dev/sda";
};
};
time.timeZone = "Europe/Warsaw";
imports = [
/etc/nixos/hardware-configuration.nix
../../boot.nix
../../common.nix
../../gfx-intel.nix
];
}