summaryrefslogtreecommitdiff
path: root/hosts/sif/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/sif/default.nix')
-rw-r--r--hosts/sif/default.nix31
1 files changed, 30 insertions, 1 deletions
diff --git a/hosts/sif/default.nix b/hosts/sif/default.nix
index 3525015d..5ed4e05e 100644
--- a/hosts/sif/default.nix
+++ b/hosts/sif/default.nix
@@ -16,6 +16,7 @@ in {
16 tmpfs-root bcachefs initrd-all-crypto-modules default-locale openssh rebuild-machines 16 tmpfs-root bcachefs initrd-all-crypto-modules default-locale openssh rebuild-machines
17 networkmanager 17 networkmanager
18 flakeInputs.nixos-hardware.nixosModules.lenovo-thinkpad-p1 18 flakeInputs.nixos-hardware.nixosModules.lenovo-thinkpad-p1
19 flakeInputs.impermanence.nixosModules.impermanence
19 ]; 20 ];
20 21
21 config = { 22 config = {
@@ -555,7 +556,10 @@ in {
555 # sound.enable = true; 556 # sound.enable = true;
556 557
557 nix = { 558 nix = {
558 settings.auto-optimise-store = true; 559 settings = {
560 auto-optimise-store = true;
561 max-jobs = 4;
562 };
559 daemonCPUSchedPolicy = "idle"; 563 daemonCPUSchedPolicy = "idle";
560 daemonIOSchedClass = "idle"; 564 daemonIOSchedClass = "idle";
561 565
@@ -569,6 +573,11 @@ in {
569 speedFactor = 4; 573 speedFactor = 4;
570 }; 574 };
571 }; 575 };
576 systemd.services."nix-daemon" = {
577 serviceConfig = {
578 CPUQuota = "400%";
579 };
580 };
572 581
573 environment.etc."X11/xorg.conf.d/50-wacom.conf".source = lib.mkForce ./wacom.conf; 582 environment.etc."X11/xorg.conf.d/50-wacom.conf".source = lib.mkForce ./wacom.conf;
574 583
@@ -661,6 +670,26 @@ in {
661 in [ gtk-portal ]; 670 in [ gtk-portal ];
662 }; 671 };
663 672
673 environment.persistence."/.bcachefs" = {
674 hideMounts = true;
675 directories = [
676 "/nix"
677 "/root"
678 "/var/log"
679 "/var/lib/sops-nix"
680 "/var/lib/nixos"
681 "/var/lib/systemd"
682 "/home"
683 "/var/lib/chrony"
684 "/var/lib/fprint"
685 "/var/lib/bluetooth"
686 "/etc/NetworkManager/system-connections"
687 ];
688 files = [
689 "/etc/localtime"
690 ];
691 };
692
664 system.stateVersion = "24.11"; 693 system.stateVersion = "24.11";
665 }; 694 };
666} 695}