diff options
| author | Preston Pan <ret2pop@gmail.com> | 2026-01-30 20:50:09 -0800 |
|---|---|---|
| committer | Preston Pan <ret2pop@gmail.com> | 2026-01-30 20:50:09 -0800 |
| commit | 6de29052077fa51ccaa452ad7432dd64dc806bd2 (patch) | |
| tree | 5650c92cc82262941c183d782e517c13d1c488d2 /nix/modules/configuration.nix | |
| parent | d43c1e768c0102387a7c1167b476bb0af2d21987 (diff) | |
add more stuff to my monorepo
Diffstat (limited to 'nix/modules/configuration.nix')
| -rw-r--r-- | nix/modules/configuration.nix | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/nix/modules/configuration.nix b/nix/modules/configuration.nix index 7b862f9..c906529 100644 --- a/nix/modules/configuration.nix +++ b/nix/modules/configuration.nix @@ -99,17 +99,17 @@ kernelParams = [ "usbcore.autosuspend=-1" - "debugfs=off" + # "debugfs=off" "page_alloc.shuffle=1" "slab_nomerge" - "page_poison=1" + # "page_poison=1" # madaidan "pti=on" "randomize_kstack_offset=on" "vsyscall=none" "module.sig_enforce=1" - "lockdown=confidentiality" + # "lockdown=confidentiality" # cpu "spectre_v2=on" @@ -122,14 +122,10 @@ "extra_latent_entropy" # mineral - "init_on_alloc=1" + # "init_on_alloc=1" "random.trust_cpu=off" "random.trust_bootloader=off" - "intel_iommu=on" - "amd_iommu=force_isolation" - "iommu=force" - "iommu.strict=1" - "init_on_free=1" + # "init_on_free=1" "quiet" "loglevel=0" ]; @@ -240,8 +236,8 @@ graphics.enable = ! config.monorepo.profiles.ttyonly.enable; bluetooth = { - enable = true; - powerOnBoot = true; + enable = lib.mkDefault (! config.monorepo.profiles.ttyonly.enable); + powerOnBoot = lib.mkDefault (! config.monorepo.profiles.ttyonly.enable); }; }; @@ -264,15 +260,15 @@ # Misc. udev = { extraRules = ''''; - packages = with pkgs; [ + packages = if config.monorepo.profiles.workstation.enable then with pkgs; [ platformio-core platformio-core.udev openocd - ]; + ] else []; }; - printing.enable = true; - udisks2.enable = true; + printing.enable = lib.mkDefault config.monorepo.profiles.workstation.enable; + udisks2.enable = (! config.monorepo.profiles.ttyonly.enable); }; programs = { @@ -421,11 +417,20 @@ }; nixpkgs.config.permittedInsecurePackages = [ + "python3.13-ecdsa-0.19.1" "olm-3.2.16" ]; nix = { settings = { + max-jobs = 4; + cores = 0; + substituters = [ + "https://cache.nixos-cuda.org" + ]; + trusted-public-keys = [ + "cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M=" + ]; experimental-features = "nix-command flakes ca-derivations"; trusted-users = [ "@wheel" ]; }; |
