aboutsummaryrefslogtreecommitdiff
path: root/nixos/configurations/ridcully.nix
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2025-11-14 11:57:46 +0100
committerKarel Kočí <cynerd@email.cz>2025-11-14 11:57:46 +0100
commit65a10ee991c35bd2e2613deee45c2eeeb14d04fb (patch)
tree3171d71b3449c5d57af22bb799cf1738ad4140e3 /nixos/configurations/ridcully.nix
parente44c078ebcea9d81da6d61a0ae596a3e46e9a12d (diff)
downloadnixos-personal-65a10ee991c35bd2e2613deee45c2eeeb14d04fb.tar.gz
nixos-personal-65a10ee991c35bd2e2613deee45c2eeeb14d04fb.tar.bz2
nixos-personal-65a10ee991c35bd2e2613deee45c2eeeb14d04fb.zip
Enable zramswap on desktops
Diffstat (limited to 'nixos/configurations/ridcully.nix')
-rw-r--r--nixos/configurations/ridcully.nix23
1 files changed, 11 insertions, 12 deletions
diff --git a/nixos/configurations/ridcully.nix b/nixos/configurations/ridcully.nix
index 03b615b..97a0456 100644
--- a/nixos/configurations/ridcully.nix
+++ b/nixos/configurations/ridcully.nix
@@ -1,6 +1,6 @@
{pkgs, ...}: {
system.stateVersion = "24.05";
- nixpkgs.hostPlatform.config = "x86_64-linux";
+ nixpkgs.hostPlatform.system = "x86_64-linux";
deploy.enable = true;
cynerd = {
@@ -18,6 +18,10 @@
hardware.cpu.amd.updateMicrocode = true;
services.hardware.openrgb.motherboard = "amd";
+ zramSwap = {
+ enable = true;
+ memoryPercent = 50;
+ };
cynerd.autounlock = {
"encroot" = "/dev/disk/by-uuid/bc7d2ba4-6e04-4c49-b40c-3aecd1a86c71";
@@ -64,22 +68,17 @@
wait-online.enable = false;
};
- environment.systemPackages = with pkgs; [
- nvtopPackages.amd
- sbctl
+ environment.systemPackages = [
+ pkgs.nvtopPackages.amd
+ #sbctl
];
- services.syncthing = {
- enable = true;
- dataDir = "/home/cynerd";
- };
-
# Force nix to use less jobs
nix.settings.max-jobs = 4;
- # Cover case when we are running out of memory
- zramSwap = {
+ ##############################################################################
+ services.syncthing = {
enable = true;
- memoryPercent = 50;
+ dataDir = "/home/cynerd";
};
}