diff options
| author | Fuwn <[email protected]> | 2024-09-21 15:59:25 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-21 15:59:25 -0700 |
| commit | c6a2401067558c24d90ed2e27e48d96fdadbef5b (patch) | |
| tree | b61d14e285fae82b858d28a312e5603b1ef4131e | |
| parent | networking: configure glance (diff) | |
| download | nixos-config-c6a2401067558c24d90ed2e27e48d96fdadbef5b.tar.xz nixos-config-c6a2401067558c24d90ed2e27e48d96fdadbef5b.zip | |
rui: use new flags
| -rw-r--r-- | flake.lock | 6 | ||||
| -rw-r--r-- | home/ebisu/default.nix | 33 | ||||
| -rw-r--r-- | justfile | 10 |
3 files changed, 35 insertions, 14 deletions
@@ -1080,11 +1080,11 @@ ] }, "locked": { - "lastModified": 1726797660, - "narHash": "sha256-4jmq7DS8NmNSrBc42loMlh6me7f2ZNiVZulkvTxWuEc=", + "lastModified": 1726959240, + "narHash": "sha256-Nky5h9eDR5yEigZfpMhHj4J+UIK6xLIKS2XOczD9aEk=", "owner": "Fuwn", "repo": "rui", - "rev": "b871077822a5a01c99b66caaa10c6411eb5b9b70", + "rev": "267683280287223d0ea018de007dbb17d52e8b6d", "type": "github" }, "original": { diff --git a/home/ebisu/default.nix b/home/ebisu/default.nix index 820b67c..53332b6 100644 --- a/home/ebisu/default.nix +++ b/home/ebisu/default.nix @@ -3,6 +3,7 @@ config, inputs, username, + lib, ... }: { @@ -32,10 +33,34 @@ overlays = [ inputs.nur.overlay ]; config = { - allowUnfree = true; - # allowInsecure = true; - # allowBroken = true; - # allowUnfreePredicate = _: true; + allowUnfreePredicate = + pkg: + builtins.elem (lib.getName pkg) [ + "cuda-merged" + "cuda_cccl" + "cuda_cudart" + "cuda_cuobjdump" + "cuda_cupti" + "cuda_cuxxfilt" + "cuda_gdb" + "cuda_nvcc" + "cuda_nvdisasm" + "cuda_nvml_dev" + "cuda_nvprune" + "cuda_nvrtc" + "cuda_nvtx" + "cuda_profiler_api" + "cuda_sanitizer_api" + "httpie-desktop" + "libcublas" + "libcufft" + "libcurand" + "libcusolver" + "libcusparse" + "libnvjitlink" + "libnpp" + "spotify" + ]; }; }; } @@ -1,18 +1,14 @@ -set export - -NIXPKGS_ALLOW_UNFREE := "1" - default: @just --list os hostname='kansai': - git add . && rui os switch --hostname {{hostname}} -- --impure + git add . && rui --allow-unfree os switch --hostname {{hostname}} -- --impure home user='ebisu': - git add . && rui home switch --user {{user}} -- --impure + git add . && rui --allow-unfree home switch --user {{user}} -- --impure news user='ebisu': - rui home news --user {{user}} + rui home news --user {{user}} -- --impure push message: git add . && git commit -m "{{message}}" && git push origin main |