Compare commits
No commits in common. "48e9ae18ef8f160ec0fff3888daf318456cc1676" and "47d716c2de2bc54e5409239d097b94d32c9c0378" have entirely different histories.
48e9ae18ef
...
47d716c2de
224
flake.lock
generated
224
flake.lock
generated
@ -2,11 +2,11 @@
|
|||||||
"nodes": {
|
"nodes": {
|
||||||
"crane": {
|
"crane": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754269165,
|
"lastModified": 1731098351,
|
||||||
"narHash": "sha256-0tcS8FHd4QjbCVoxN9jI+PjHgA4vc/IjkUSp+N3zy0U=",
|
"narHash": "sha256-HQkYvKvaLQqNa10KEFGgWHfMAbWBfFp+4cAgkut+NNE=",
|
||||||
"owner": "ipetkov",
|
"owner": "ipetkov",
|
||||||
"repo": "crane",
|
"repo": "crane",
|
||||||
"rev": "444e81206df3f7d92780680e45858e31d2f07a08",
|
"rev": "ef80ead953c1b28316cc3f8613904edc2eb90c28",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -18,11 +18,11 @@
|
|||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1747046372,
|
"lastModified": 1696426674,
|
||||||
"narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=",
|
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
|
||||||
"owner": "edolstra",
|
"owner": "edolstra",
|
||||||
"repo": "flake-compat",
|
"repo": "flake-compat",
|
||||||
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
|
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -34,11 +34,27 @@
|
|||||||
"flake-compat_2": {
|
"flake-compat_2": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1761588595,
|
"lastModified": 1746162366,
|
||||||
"narHash": "sha256-XKUZz9zewJNUj46b4AJdiRZJAvSZ0Dqj2BNfXvFlJC4=",
|
"narHash": "sha256-5SSSZ/oQkwfcAz/o/6TlejlVGqeK08wyREBQ5qFFPhM=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"rev": "0f158086a2ecdbb138cd0429410e44994f1b7e4b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-compat_3": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1733328505,
|
||||||
|
"narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=",
|
||||||
"owner": "edolstra",
|
"owner": "edolstra",
|
||||||
"repo": "flake-compat",
|
"repo": "flake-compat",
|
||||||
"rev": "f387cd2afec9419c8ee37694406ca490c3f34ee5",
|
"rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -47,7 +63,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-compat_3": {
|
"flake-compat_4": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1650374568,
|
"lastModified": 1650374568,
|
||||||
@ -71,11 +87,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754091436,
|
"lastModified": 1730504689,
|
||||||
"narHash": "sha256-XKqDMN1/Qj1DKivQvscI4vmHfDfvYR2pfuFOJiCeewM=",
|
"narHash": "sha256-hgmguH29K2fvs9szpq2r3pz2/8cJd2LPS+b4tfNFCwE=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "67df8c627c2c39c41dbec76a1f201929929ab0bd",
|
"rev": "506278e768c2a08bec68eb62932193e341f55c90",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -168,11 +184,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764361670,
|
"lastModified": 1749160002,
|
||||||
"narHash": "sha256-jgWzgpIaHbL3USIq0gihZeuy1lLf2YSfwvWEwnfAJUw=",
|
"narHash": "sha256-IM3xKjsKxhu7Y1WdgTltrLKiOJS8nW7D4SUDEMNr7CI=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "780be8ef503a28939cf9dc7996b48ffb1a3e04c6",
|
"rev": "68cc9eeb3875ae9682c04629f20738e1e79d72aa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -189,11 +205,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1762964643,
|
"lastModified": 1743604125,
|
||||||
"narHash": "sha256-RYHN8O/Aja59XDji6WSJZPkJpYVUfpSkyH+PEupBJqM=",
|
"narHash": "sha256-ZD61DNbsBt1mQbinAaaEqKaJk2RFo9R/j+eYWeGMx7A=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "827f2a23373a774a8805f84ca5344654c31f354b",
|
"rev": "180fd43eea296e62ae68e079fcf56aba268b9a1a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -210,11 +226,11 @@
|
|||||||
"utils": "utils"
|
"utils": "utils"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1755098995,
|
"lastModified": 1745057346,
|
||||||
"narHash": "sha256-6FN7XEf27DenQHDIKjrjOW3tGIaJlyqRlXarmt1v+M0=",
|
"narHash": "sha256-71cyYKUul9owRzbcObXkzhTBcmnXJsvmk1gq0RbP5PQ=",
|
||||||
"owner": "taj-ny",
|
"owner": "taj-ny",
|
||||||
"repo": "kwin-effects-forceblur",
|
"repo": "kwin-effects-forceblur",
|
||||||
"rev": "51a1d49d7fd7df3ce40ccf6ba4c4410cf6f510e1",
|
"rev": "fea9f80f27389aa8a62befb5babf40b28fed328d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -235,31 +251,52 @@
|
|||||||
"rust-overlay": "rust-overlay"
|
"rust-overlay": "rust-overlay"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1762205063,
|
"lastModified": 1737639419,
|
||||||
"narHash": "sha256-If6vQ+KvtKs3ARBO9G3l+4wFSCYtRBrwX1z+I+B61wQ=",
|
"narHash": "sha256-AEEDktApTEZ5PZXNDkry2YV2k6t0dTgLPEmAZbnigXU=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "lanzaboote",
|
"repo": "lanzaboote",
|
||||||
"rev": "88b8a563ff5704f4e8d8e5118fb911fa2110ca05",
|
"rev": "a65905a09e2c43ff63be8c0e86a93712361f871e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"ref": "v0.4.3",
|
"ref": "v0.4.2",
|
||||||
"repo": "lanzaboote",
|
"repo": "lanzaboote",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixos-cosmic": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat_2",
|
||||||
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
"nixpkgs-stable": "nixpkgs-stable_2",
|
||||||
|
"rust-overlay": "rust-overlay_2"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1749121763,
|
||||||
|
"narHash": "sha256-TVFiyMBs+3KEzZVwf/n1zedUWzPrMPzud/2Jiho8dcE=",
|
||||||
|
"owner": "lilyinstarlight",
|
||||||
|
"repo": "nixos-cosmic",
|
||||||
|
"rev": "c89df80b72b4e1802fd91a35f4857868c953c1c0",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "lilyinstarlight",
|
||||||
|
"repo": "nixos-cosmic",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixos-wsl": {
|
"nixos-wsl": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_2",
|
"flake-compat": "flake-compat_3",
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764072830,
|
"lastModified": 1746453552,
|
||||||
"narHash": "sha256-ezkjlUCohD9o9c47Ey0/I4CamSS0QEORTqGvyGqMud0=",
|
"narHash": "sha256-r66UGha+7KVHkI7ksrcMjnw/mm9Sg4l5bQlylxHwdGU=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NixOS-WSL",
|
"repo": "NixOS-WSL",
|
||||||
"rev": "c7832dd786175e20f2697179e0e03efadffe4201",
|
"rev": "be618645aa0adf461f778500172b6896d5ab2d01",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -285,13 +322,45 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763678758,
|
"lastModified": 1730741070,
|
||||||
"narHash": "sha256-+hBiJ+kG5IoffUOdlANKFflTT5nO3FrrR2CA3178Y5s=",
|
"narHash": "sha256-edm8WG19kWozJ/GqyYx2VjW99EdhjKwbY3ZwdlPAAlo=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "117cc7f94e8072499b0a7aa4c52084fa4e11cc9b",
|
"rev": "d063c1dd113c91ab27959ba540c0d9753409edf3",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-24.05",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs-stable_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1748995628,
|
||||||
|
"narHash": "sha256-bFufQGSAEYQgjtc4wMrobS5HWN0hDP+ZX+zthYcml9U=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "8eb3b6a2366a7095939cd22f0dc0e9991313294b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-24.11",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1748929857,
|
||||||
|
"narHash": "sha256-lcZQ8RhsmhsK8u7LIFsJhsLh/pzR9yZ8yqpTzyGdj+Q=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "c2a03962b8e24e669fb37b7df10e7c79531ff1a4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -303,11 +372,27 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764242076,
|
"lastModified": 1742937945,
|
||||||
"narHash": "sha256-sKoIWfnijJ0+9e4wRvIgm/HgE27bzwQxcEmo2J/gNpI=",
|
"narHash": "sha256-lWc+79eZRyvHp/SqMhHTMzZVhpxkRvthsP1Qx6UCq0E=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "2fad6eac6077f03fe109c4d4eb171cf96791faa4",
|
"rev": "d02d88f8de5b882ccdde0465d8fa2db3aa1169f7",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-24.11",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_4": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1748929857,
|
||||||
|
"narHash": "sha256-lcZQ8RhsmhsK8u7LIFsJhsLh/pzR9yZ8yqpTzyGdj+Q=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "c2a03962b8e24e669fb37b7df10e7c79531ff1a4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -317,13 +402,13 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_4": {
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1762977756,
|
"lastModified": 1743448293,
|
||||||
"narHash": "sha256-4PqRErxfe+2toFJFgcRKZ0UI9NSIOJa+7RXVtBhy4KE=",
|
"narHash": "sha256-bmEPmSjJakAp/JojZRrUvNcDX2R5/nuX6bm+seVaGhs=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "c5ae371f1a6a7fd27823bc500d9390b38c05fa55",
|
"rev": "77b584d61ff80b4cef9245829a6f1dfad5afdfa3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -343,14 +428,15 @@
|
|||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"lanzaboote",
|
"lanzaboote",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
],
|
||||||
|
"nixpkgs-stable": "nixpkgs-stable"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1750779888,
|
"lastModified": 1731363552,
|
||||||
"narHash": "sha256-wibppH3g/E2lxU43ZQHC5yA/7kIKLGxVEnsnVK1BtRg=",
|
"narHash": "sha256-vFta1uHnD29VUY4HJOO/D6p6rxyObnf+InnSMT4jlMU=",
|
||||||
"owner": "cachix",
|
"owner": "cachix",
|
||||||
"repo": "pre-commit-hooks.nix",
|
"repo": "pre-commit-hooks.nix",
|
||||||
"rev": "16ec914f6fb6f599ce988427d9d94efddf25fe6d",
|
"rev": "cd1af27aa85026ac759d5d3fccf650abe7e1bbf0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -365,8 +451,9 @@
|
|||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"kwin-effects-forceblur": "kwin-effects-forceblur",
|
"kwin-effects-forceblur": "kwin-effects-forceblur",
|
||||||
"lanzaboote": "lanzaboote",
|
"lanzaboote": "lanzaboote",
|
||||||
|
"nixos-cosmic": "nixos-cosmic",
|
||||||
"nixos-wsl": "nixos-wsl",
|
"nixos-wsl": "nixos-wsl",
|
||||||
"nixpkgs": "nixpkgs_3",
|
"nixpkgs": "nixpkgs_4",
|
||||||
"snowfall-lib": "snowfall-lib",
|
"snowfall-lib": "snowfall-lib",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
"trilium-next-pr": "trilium-next-pr",
|
"trilium-next-pr": "trilium-next-pr",
|
||||||
@ -382,11 +469,32 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1761791894,
|
"lastModified": 1731897198,
|
||||||
"narHash": "sha256-myRIDh+PxaREz+z9LzbqBJF+SnTFJwkthKDX9zMyddY=",
|
"narHash": "sha256-Ou7vLETSKwmE/HRQz4cImXXJBr/k9gp4J4z/PF8LzTE=",
|
||||||
"owner": "oxalica",
|
"owner": "oxalica",
|
||||||
"repo": "rust-overlay",
|
"repo": "rust-overlay",
|
||||||
"rev": "59c45eb69d9222a4362673141e00ff77842cd219",
|
"rev": "0be641045af6d8666c11c2c40e45ffc9667839b5",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "oxalica",
|
||||||
|
"repo": "rust-overlay",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rust-overlay_2": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixos-cosmic",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1749091064,
|
||||||
|
"narHash": "sha256-TGtYjzRX0sueFhwYsnNNFF5TTKnpnloznpIghLzxeXo=",
|
||||||
|
"owner": "oxalica",
|
||||||
|
"repo": "rust-overlay",
|
||||||
|
"rev": "12419593ce78f2e8e1e89a373c6515885e218acb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -397,7 +505,7 @@
|
|||||||
},
|
},
|
||||||
"snowfall-lib": {
|
"snowfall-lib": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_3",
|
"flake-compat": "flake-compat_4",
|
||||||
"flake-utils-plus": "flake-utils-plus",
|
"flake-utils-plus": "flake-utils-plus",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
@ -424,11 +532,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764021963,
|
"lastModified": 1747603214,
|
||||||
"narHash": "sha256-1m84V2ROwNEbqeS9t37/mkry23GBhfMt8qb6aHHmjuc=",
|
"narHash": "sha256-lAblXm0VwifYCJ/ILPXJwlz0qNY07DDYdLD+9H+Wc8o=",
|
||||||
"owner": "mic92",
|
"owner": "mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "c482a1c1bbe030be6688ed7dc84f7213f304f1ec",
|
"rev": "8d215e1c981be3aa37e47aeabd4e61bb069548fd",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -521,14 +629,14 @@
|
|||||||
"zen-browser": {
|
"zen-browser": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"nixpkgs": "nixpkgs_4"
|
"nixpkgs": "nixpkgs_5"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764414951,
|
"lastModified": 1749093358,
|
||||||
"narHash": "sha256-pZ2m2JmTTMyqiKB8WSigsSvAeoShI6OSRhzBuRO9SVY=",
|
"narHash": "sha256-Clx1BzHsSSzIXbnCW9KM3m5gW3SFgemcW9/4XH4epeM=",
|
||||||
"owner": "0xc000022070",
|
"owner": "0xc000022070",
|
||||||
"repo": "zen-browser-flake",
|
"repo": "zen-browser-flake",
|
||||||
"rev": "10d2aa53ada9b14f6df2f9877d6a057f0a2b262f",
|
"rev": "d4cf0ac2e860be17036a376ae99b233a115826bc",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@ -11,6 +11,7 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
game-of-life.url = "github:local-interloper/game-of-life";
|
game-of-life.url = "github:local-interloper/game-of-life";
|
||||||
|
nixos-cosmic.url = "github:lilyinstarlight/nixos-cosmic";
|
||||||
# Add sops-nix for secrets management
|
# Add sops-nix for secrets management
|
||||||
sops-nix = {
|
sops-nix = {
|
||||||
url = "github:mic92/sops-nix";
|
url = "github:mic92/sops-nix";
|
||||||
@ -23,7 +24,7 @@
|
|||||||
};
|
};
|
||||||
trilium-next-pr.url = "github:FliegendeWurst/nixpkgs/trilium-next";
|
trilium-next-pr.url = "github:FliegendeWurst/nixpkgs/trilium-next";
|
||||||
lanzaboote = {
|
lanzaboote = {
|
||||||
url = "github:nix-community/lanzaboote/v0.4.3";
|
url = "github:nix-community/lanzaboote/v0.4.2";
|
||||||
|
|
||||||
# Optional but recommended to limit the size of your system closure.
|
# Optional but recommended to limit the size of your system closure.
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@ -118,9 +119,7 @@
|
|||||||
channels-config = {
|
channels-config = {
|
||||||
# Allow unfree packages.
|
# Allow unfree packages.
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
permittedInsecurePackages = [
|
|
||||||
"mbedtls-2.28.10" # needed for haxe 4.3.6
|
|
||||||
];
|
|
||||||
# # Allow certain insecure packages
|
# # Allow certain insecure packages
|
||||||
# permittedInsecurePackages = [
|
# permittedInsecurePackages = [
|
||||||
# "firefox-100.0.0"
|
# "firefox-100.0.0"
|
||||||
|
|||||||
32
modules/nixos/cosmic-desktop/default.nix
Normal file
32
modules/nixos/cosmic-desktop/default.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{ config
|
||||||
|
, lib
|
||||||
|
, inputs
|
||||||
|
, pkgs
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
inherit (lib) mkEnableOption mkIf;
|
||||||
|
inherit (lib.my-namespace) disabled enabled;
|
||||||
|
|
||||||
|
cfg = config.my-namespace.cosmic-desktop;
|
||||||
|
# moduleImports = {
|
||||||
|
# "enabled" = [inputs.nixos-cosmic.nixosModules.default];
|
||||||
|
# "disabled" = [];
|
||||||
|
# };
|
||||||
|
# optionalImports = { imports = []; };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.my-namespace.cosmic-desktop = {
|
||||||
|
enable = mkEnableOption "Enable cosmic";
|
||||||
|
};
|
||||||
|
imports = [ inputs.nixos-cosmic.nixosModules.default ];
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
nix.settings = {
|
||||||
|
substituters = [ "https://cosmic.cachix.org/" ];
|
||||||
|
trusted-public-keys = [ "cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE=" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.desktopManager.cosmic.enable = true;
|
||||||
|
services.displayManager.cosmic-greeter.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
57
modules/nixos/hardware/graphics-amd-igpu-only/default.nix
Normal file
57
modules/nixos/hardware/graphics-amd-igpu-only/default.nix
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
{ config
|
||||||
|
, lib
|
||||||
|
, pkgs
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
inherit (lib) mkEnableOption mkIf;
|
||||||
|
inherit (lib.my-namespace) disabled enabled;
|
||||||
|
|
||||||
|
cfg = config.my-namespace.hardware.graphics-amd-igpu-only;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.my-namespace.hardware.graphics-amd-igpu-only = {
|
||||||
|
enable = mkEnableOption "Enable nvidia";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
|
# Enable NVIDIA driver for X11 and Wayland
|
||||||
|
# without modesetting, x server will be run by nvidia
|
||||||
|
services.xserver.videoDrivers = [
|
||||||
|
"amdgpu"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Enable OpenGL
|
||||||
|
hardware.graphics = {
|
||||||
|
enable = true;
|
||||||
|
# extraPackages = with pkgs; [ nvidia-vaapi-driver ];
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.graphics.enable32Bit = true; # For 32 bit applications
|
||||||
|
|
||||||
|
boot.loader.systemd-boot.consoleMode = "max";
|
||||||
|
|
||||||
|
# Enable required Kernel Modules
|
||||||
|
boot.initrd.kernelModules = [
|
||||||
|
"amdgpu"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
boot.kernelParams = [
|
||||||
|
"amdgpu.modeset=1"
|
||||||
|
"amd_iommu=on"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
# Blacklist intel and nouveau
|
||||||
|
boot.blacklistedKernelModules = [
|
||||||
|
"nouveau"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Modesetting is required.
|
||||||
|
# Add user to extra groups
|
||||||
|
users.users.andreas = {
|
||||||
|
extraGroups = [ "video" "render" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -0,0 +1,176 @@
|
|||||||
|
{ config
|
||||||
|
, lib
|
||||||
|
, pkgs
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
inherit (lib) mkEnableOption mkIf;
|
||||||
|
inherit (lib.my-namespace) disabled enabled;
|
||||||
|
|
||||||
|
cfg = config.my-namespace.hardware.graphics-nvidia-prime-amd-testing;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.my-namespace.hardware.graphics-nvidia-prime-amd-testing = {
|
||||||
|
enable = mkEnableOption "Enable nvidia";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
|
# Enable NVIDIA driver for X11 and Wayland
|
||||||
|
# without modesetting, x server will be run by nvidia
|
||||||
|
services.xserver.videoDrivers = [
|
||||||
|
"nvidia"
|
||||||
|
# "nvidia-drm"
|
||||||
|
# "nvidia-uvm"
|
||||||
|
# "nvidia-modeset"
|
||||||
|
# "nvidiafb"
|
||||||
|
"amdgpu"
|
||||||
|
# "modesetting"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Enable OpenGL
|
||||||
|
hardware.graphics = {
|
||||||
|
enable = true;
|
||||||
|
extraPackages = with pkgs; [ nvidia-vaapi-driver ];
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.graphics.enable32Bit = true; # For 32 bit applications
|
||||||
|
|
||||||
|
# Enable Switcheroo
|
||||||
|
services.switcherooControl.enable = true;
|
||||||
|
|
||||||
|
# Use Beta Driver Package
|
||||||
|
boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11_beta ];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
boot.loader.systemd-boot.consoleMode = "max";
|
||||||
|
|
||||||
|
# Enable required Kernel Modules
|
||||||
|
boot.initrd.kernelModules = [
|
||||||
|
"nvidia"
|
||||||
|
"nvidia-drm"
|
||||||
|
"nvidia-uvm"
|
||||||
|
"nvidia-modeset"
|
||||||
|
"nvidiafb"
|
||||||
|
"amdgpu"
|
||||||
|
# # "i2c-nvidia_gpu"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
boot.kernelParams = [
|
||||||
|
# "amdgpu.modeset=1"
|
||||||
|
# "nvidia-drm.fbdev=1"
|
||||||
|
# "nvidia-drm.modeset=1"
|
||||||
|
# # "nvidia.NVreg_PreserveVideoMemoryAllocations=0"
|
||||||
|
"amd_iommu=on"
|
||||||
|
# "vfio-pci.ids=\"10de:2489,10de:228b\""
|
||||||
|
# "nomodeset"
|
||||||
|
# "nvidia_drm.modeset=1"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
# Blacklist intel and nouveau
|
||||||
|
boot.blacklistedKernelModules = [
|
||||||
|
# "i915"
|
||||||
|
"nouveau"
|
||||||
|
# "nvidia"
|
||||||
|
# "nvidia-drm"
|
||||||
|
# "nvidia-uvm"
|
||||||
|
# "nvidiafb"
|
||||||
|
# "nvidia_drm"
|
||||||
|
# "nvidia_modeset"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Extra blacklist nouveau
|
||||||
|
# boot.extraModprobeConfig = ''
|
||||||
|
# blacklist nouveau
|
||||||
|
# options nouveau modeset=0
|
||||||
|
# '';
|
||||||
|
|
||||||
|
# services.xserver.config = lib.mkForce ''
|
||||||
|
# Section "ServerLayout"
|
||||||
|
# Identifier "layout"
|
||||||
|
# Screen 0 "amdgpu"
|
||||||
|
# Inactive "nvidia"
|
||||||
|
# Option "AllowNVIDIAGPUScreens"
|
||||||
|
# EndSection
|
||||||
|
|
||||||
|
# Section "Device"
|
||||||
|
# Identifier "nvidia"
|
||||||
|
# Driver "nvidia"
|
||||||
|
# BusID "PCI:01:0:0"
|
||||||
|
# EndSection
|
||||||
|
|
||||||
|
# Section "Screen"
|
||||||
|
# Identifier "nvidia"
|
||||||
|
# Device "nvidia"
|
||||||
|
# EndSection
|
||||||
|
|
||||||
|
# Section "Device"
|
||||||
|
# Identifier "amdgpu"
|
||||||
|
# Driver "amdgpu"
|
||||||
|
# BusID "PCI:50:0:0"
|
||||||
|
# EndSection
|
||||||
|
|
||||||
|
# Section "Screen"
|
||||||
|
# Identifier "amdgpu"
|
||||||
|
# Device "amdgpu"
|
||||||
|
# EndSection
|
||||||
|
# '';
|
||||||
|
|
||||||
|
# Configure NVIDIA driver
|
||||||
|
hardware.nvidia = {
|
||||||
|
# Modesetting is required.
|
||||||
|
modesetting.enable = true;
|
||||||
|
|
||||||
|
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
|
||||||
|
# Enable this if you have graphical corruption issues or application crashes after waking
|
||||||
|
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
|
||||||
|
# of just the bare essentials.
|
||||||
|
powerManagement.enable = true;
|
||||||
|
|
||||||
|
# Fine-grained power management. Turns off GPU when not in use.
|
||||||
|
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
|
||||||
|
powerManagement.finegrained = false;
|
||||||
|
|
||||||
|
# Use the NVidia open source kernel module (not to be confused with the
|
||||||
|
# independent third-party "nouveau" open source driver).
|
||||||
|
# Support is limited to the Turing and later architectures. Full list of
|
||||||
|
# supported GPUs is at:
|
||||||
|
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
|
||||||
|
# Only available from driver 515.43.04+
|
||||||
|
# Currently alpha-quality/buggy, so false is currently the recommended setting.
|
||||||
|
open = false;
|
||||||
|
|
||||||
|
# Enable the Nvidia settings menu,
|
||||||
|
# accessible via `nvidia-settings`.
|
||||||
|
nvidiaSettings = true;
|
||||||
|
|
||||||
|
# Optionally, you may need to select the appropriate driver version for your specific GPU.
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||||
|
# package = config.boot.kernelPackages.nvidiaPackages.none;
|
||||||
|
# package = config.boot.kernelPackages.nvidiaPackages.production;
|
||||||
|
nvidiaPersistenced = true;
|
||||||
|
forceFullCompositionPipeline = true;
|
||||||
|
|
||||||
|
prime = {
|
||||||
|
offload = {
|
||||||
|
enable = true;
|
||||||
|
enableOffloadCmd = true;
|
||||||
|
};
|
||||||
|
# sync.enable=true;
|
||||||
|
# reverseSync.enable = false;
|
||||||
|
# Make sure to use the correct Bus ID values for your system!
|
||||||
|
# intelBusId = "PCI:0:2:0";
|
||||||
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
|
amdgpuBusId = "PCI:50:0:0"; #For AMD GPU
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
# Add user to extra groups
|
||||||
|
users.users.andreas = {
|
||||||
|
extraGroups = [ "video" "render" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
170
modules/nixos/hardware/graphics-nvidia-prime-amd/default.nix
Normal file
170
modules/nixos/hardware/graphics-nvidia-prime-amd/default.nix
Normal file
@ -0,0 +1,170 @@
|
|||||||
|
{ config
|
||||||
|
, lib
|
||||||
|
, pkgs
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
inherit (lib) mkEnableOption mkIf;
|
||||||
|
inherit (lib.my-namespace) disabled enabled;
|
||||||
|
|
||||||
|
cfg = config.my-namespace.hardware.graphics-nvidia-prime-amd;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.my-namespace.hardware.graphics-nvidia-prime-amd = {
|
||||||
|
enable = mkEnableOption "Enable nvidia";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
|
# Enable NVIDIA driver for X11 and Wayland
|
||||||
|
services.xserver.videoDrivers = [ "amdgpu" "nvidia" ];
|
||||||
|
|
||||||
|
services.xserver.displayManager.xserverArgs = [ "-config" "/opt/x11/xserver.conf" ];
|
||||||
|
|
||||||
|
|
||||||
|
services.xserver.config = lib.mkAfter ''
|
||||||
|
Section "ServerLayout"
|
||||||
|
Identifier "layout"
|
||||||
|
Screen 0 "amdgpu"
|
||||||
|
Inactive "nvidia"
|
||||||
|
Option "AllowNVIDIAGPUScreens"
|
||||||
|
EndSection
|
||||||
|
|
||||||
|
Section "Device"
|
||||||
|
Identifier "nvidia"
|
||||||
|
Driver "nvidia"
|
||||||
|
BusID "PCI:01:0:0"
|
||||||
|
EndSection
|
||||||
|
|
||||||
|
Section "Screen"
|
||||||
|
Identifier "nvidia"
|
||||||
|
Device "nvidia"
|
||||||
|
EndSection
|
||||||
|
|
||||||
|
Section "Device"
|
||||||
|
Identifier "amdgpu"
|
||||||
|
Driver "amdgpu"
|
||||||
|
BusID "PCI:50:0:0"
|
||||||
|
EndSection
|
||||||
|
|
||||||
|
Section "Screen"
|
||||||
|
Identifier "amdgpu"
|
||||||
|
Device "amdgpu"
|
||||||
|
EndSection
|
||||||
|
'';
|
||||||
|
services.switcherooControl.enable = true;
|
||||||
|
|
||||||
|
# Enable OpenGL
|
||||||
|
hardware.graphics = {
|
||||||
|
enable = true;
|
||||||
|
extraPackages = with pkgs; [ nvidia-vaapi-driver ];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Use Beta Driver Package
|
||||||
|
boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
boot.loader.systemd-boot.consoleMode = "max";
|
||||||
|
|
||||||
|
# Enable required Kernel Modules
|
||||||
|
boot.initrd.kernelModules = [
|
||||||
|
"nvidia-modeset"
|
||||||
|
"nvidia"
|
||||||
|
# "amdgpu"
|
||||||
|
"nvidia-drm"
|
||||||
|
# "nvidiafb"
|
||||||
|
# "nvidia-uvm"
|
||||||
|
# "i2c-nvidia_gpu"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
boot.kernelParams = [
|
||||||
|
# "amdgpu.modeset=1"
|
||||||
|
"nvidia-drm.fbdev=1"
|
||||||
|
"nvidia-drm.modeset=1"
|
||||||
|
# "nvidia.NVreg_PreserveVideoMemoryAllocations=0"
|
||||||
|
# "amd_iommu=on"
|
||||||
|
# "vfio-pci.ids=\"10de:2489,10de:228b\""
|
||||||
|
# "nomodeset"
|
||||||
|
# "nvidia_drm.modeset=1"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
# Blacklist intel and nouveau
|
||||||
|
boot.blacklistedKernelModules = [
|
||||||
|
"i915"
|
||||||
|
"nouveau"
|
||||||
|
# "nvidia"
|
||||||
|
# "nvidia-drm"
|
||||||
|
# "nvidia-uvm"
|
||||||
|
# "nvidiafb"
|
||||||
|
# "nvidia_drm"
|
||||||
|
# "nvidia_modeset"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Extra blacklist nouveau
|
||||||
|
boot.extraModprobeConfig = ''
|
||||||
|
blacklist nouveau
|
||||||
|
options nouveau modeset=0
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Configure NVIDIA driver
|
||||||
|
hardware.nvidia = {
|
||||||
|
# Modesetting is required.
|
||||||
|
modesetting.enable = true;
|
||||||
|
|
||||||
|
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
|
||||||
|
# Enable this if you have graphical corruption issues or application crashes after waking
|
||||||
|
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
|
||||||
|
# of just the bare essentials.
|
||||||
|
powerManagement.enable = true;
|
||||||
|
|
||||||
|
# Fine-grained power management. Turns off GPU when not in use.
|
||||||
|
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
|
||||||
|
powerManagement.finegrained = false;
|
||||||
|
|
||||||
|
# Use the NVidia open source kernel module (not to be confused with the
|
||||||
|
# independent third-party "nouveau" open source driver).
|
||||||
|
# Support is limited to the Turing and later architectures. Full list of
|
||||||
|
# supported GPUs is at:
|
||||||
|
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
|
||||||
|
# Only available from driver 515.43.04+
|
||||||
|
# Currently alpha-quality/buggy, so false is currently the recommended setting.
|
||||||
|
open = false;
|
||||||
|
|
||||||
|
# Enable the Nvidia settings menu,
|
||||||
|
# accessible via `nvidia-settings`.
|
||||||
|
nvidiaSettings = true;
|
||||||
|
|
||||||
|
# Optionally, you may need to select the appropriate driver version for your specific GPU.
|
||||||
|
# package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
|
# package = config.boot.kernelPackages.nvidiaPackages.none;
|
||||||
|
# package = config.boot.kernelPackages.nvidiaPackages.production;
|
||||||
|
|
||||||
|
forceFullCompositionPipeline = false;
|
||||||
|
|
||||||
|
prime = {
|
||||||
|
offload = {
|
||||||
|
enable = lib.mkForce true;
|
||||||
|
enableOffloadCmd = lib.mkForce true;
|
||||||
|
};
|
||||||
|
|
||||||
|
reverseSync.enable = lib.mkForce false;
|
||||||
|
sync.enable = lib.mkForce false;
|
||||||
|
# Make sure to use the correct Bus ID values for your system!
|
||||||
|
# intelBusId = "PCI:0:2:0";
|
||||||
|
nvidiaBusId = "PCI:01:0:0";
|
||||||
|
amdgpuBusId = "PCI:50:0:0"; #For AMD GPU
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
# Add user to extra groups
|
||||||
|
users.users.andreas = {
|
||||||
|
extraGroups = [ "video" "render" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,151 @@
|
|||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib) mkEnableOption mkIf;
|
||||||
|
inherit (lib.my-namespace) disabled enabled;
|
||||||
|
cfg = config.my-namespace.hardware.graphics-nvidia-specializations;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.my-namespace.hardware.graphics-nvidia-specializations = {
|
||||||
|
enable = mkEnableOption "Enable nvidia";
|
||||||
|
};
|
||||||
|
options.nvidia-sync.enable = lib.mkEnableOption "Enable NVIDIA prime sync mode";
|
||||||
|
options.nvidia-offload.enable = lib.mkEnableOption "Enable NVIDIA prime sync mode";
|
||||||
|
|
||||||
|
config = {
|
||||||
|
specialisation."NVIDIA-SYNC".configuration = {
|
||||||
|
system.nixos.tags = [ "with-nvidia-sync" ];
|
||||||
|
nvidia-sync.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
specialisation."NVIDIA-OFFLOAD".configuration = {
|
||||||
|
system.nixos.tags = [ "with-nvidia-offload" ];
|
||||||
|
nvidia-offload.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.xserver.videoDrivers = [ "nvidia" "amdgpu" ];
|
||||||
|
hardware.graphics = {
|
||||||
|
extraPackages = with pkgs; [ nvidia-vaapi-driver ];
|
||||||
|
};
|
||||||
|
boot.kernelParams = [
|
||||||
|
"nvidia.NVreg_PreserveVideoMemoryAllocations=1"
|
||||||
|
"nvidia-drm.fbdev=0"
|
||||||
|
"nvidia-drm.modeset=0"
|
||||||
|
"amdgpu.modeset=1"
|
||||||
|
];
|
||||||
|
boot.initrd.kernelModules = [
|
||||||
|
# "amdgpu"
|
||||||
|
"nvidia"
|
||||||
|
"nvidia-drm"
|
||||||
|
"nvidia_drm"
|
||||||
|
"nvidia-uvm"
|
||||||
|
"nvidia_uvm"
|
||||||
|
# "nvidia-modeset"
|
||||||
|
# "i2c-nvidia_gpu"
|
||||||
|
];
|
||||||
|
|
||||||
|
hardware.nvidia = {
|
||||||
|
modesetting.enable = true;
|
||||||
|
|
||||||
|
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
|
||||||
|
powerManagement.enable = false;
|
||||||
|
# Fine-grained power management. Turns off GPU when not in use.
|
||||||
|
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
|
||||||
|
powerManagement.finegrained = false;
|
||||||
|
|
||||||
|
# Use the NVidia open source kernel module (not to be confused with the
|
||||||
|
# independent third-party "nouveau" open source driver).
|
||||||
|
# Support is limited to the Turing and later architectures. Full list of
|
||||||
|
# supported GPUs is at:
|
||||||
|
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
|
||||||
|
# Only available from driver 515.43.04+
|
||||||
|
# Currently alpha-quality/buggy, so false is currently the recommended setting.
|
||||||
|
open = false;
|
||||||
|
|
||||||
|
# Enable the Nvidia settings menu,
|
||||||
|
# accessible via `nvidia-settings`.
|
||||||
|
nvidiaSettings = true;
|
||||||
|
|
||||||
|
# Optionally, you may need to select the appropriate driver version for your specific GPU.
|
||||||
|
# package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.production;
|
||||||
|
|
||||||
|
prime = {
|
||||||
|
amdgpuBusId = "PCI:50:0:0";
|
||||||
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
|
} // lib.optionalAttrs config.nvidia-sync.enable {
|
||||||
|
sync.enable = false;
|
||||||
|
} // lib.optionalAttrs (config.nvidia-offload.enable) {
|
||||||
|
offload = {
|
||||||
|
enable = true;
|
||||||
|
enableOffloadCmd = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services.xserver.config = lib.mkAfter ''
|
||||||
|
Section "ServerLayout"
|
||||||
|
Identifier "layout"
|
||||||
|
Screen 0 "amdgpu"
|
||||||
|
Inactive "nvidia"
|
||||||
|
Option "AllowNVIDIAGPUScreens"
|
||||||
|
Option "AllowEmptyInitialConfiguration" "True"
|
||||||
|
EndSection
|
||||||
|
|
||||||
|
Section "Device"
|
||||||
|
Identifier "nvidia"
|
||||||
|
Driver "nvidia"
|
||||||
|
BusID "PCI:01:0:0"
|
||||||
|
Option "AllowEmptyInitialConfiguration" "True"
|
||||||
|
EndSection
|
||||||
|
|
||||||
|
Section "Screen"
|
||||||
|
Identifier "nvidia"
|
||||||
|
Device "nvidia"
|
||||||
|
Option "AllowEmptyInitialConfiguration" "True"
|
||||||
|
EndSection
|
||||||
|
|
||||||
|
Section "Device"
|
||||||
|
Identifier "amdgpu"
|
||||||
|
Driver "amdgpu"
|
||||||
|
BusID "PCI:50:0:0"
|
||||||
|
#Option "AllowNVIDIAGPUScreens"
|
||||||
|
#Option "AllowEmptyInitialConfiguration" "True"
|
||||||
|
EndSection
|
||||||
|
|
||||||
|
Section "Screen"
|
||||||
|
Identifier "amdgpu"
|
||||||
|
Device "amdgpu"
|
||||||
|
#Option "AllowEmptyInitialConfiguration" "True"
|
||||||
|
EndSection
|
||||||
|
'';
|
||||||
|
# services.xserver.config = lib.mkForce ''
|
||||||
|
# Section "ServerLayout"
|
||||||
|
# Identifier "layout"
|
||||||
|
# Screen 0 "amdgpu"
|
||||||
|
# Inactive "nvidia"
|
||||||
|
# Option "AllowNVIDIAGPUScreens"
|
||||||
|
# EndSection
|
||||||
|
|
||||||
|
# Section "Device"
|
||||||
|
# Identifier "nvidia"
|
||||||
|
# Driver "nvidia"
|
||||||
|
# BusID "PCI:01:0:0"
|
||||||
|
# EndSection
|
||||||
|
|
||||||
|
# Section "Screen"
|
||||||
|
# Identifier "nvidia"
|
||||||
|
# Device "nvidia"
|
||||||
|
# EndSection
|
||||||
|
|
||||||
|
# Section "Device"
|
||||||
|
# Identifier "amdgpu"
|
||||||
|
# Driver "amdgpu"
|
||||||
|
# BusID "PCI:50:0:0"
|
||||||
|
# EndSection
|
||||||
|
|
||||||
|
# Section "Screen"
|
||||||
|
# Identifier "amdgpu"
|
||||||
|
# Device "amdgpu"
|
||||||
|
# EndSection
|
||||||
|
# '';
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -43,7 +43,7 @@ in
|
|||||||
age
|
age
|
||||||
wget
|
wget
|
||||||
sops
|
sops
|
||||||
bitwarden-desktop #replaced bitwarden
|
bitwarden
|
||||||
bitwarden-cli
|
bitwarden-cli
|
||||||
cowsay
|
cowsay
|
||||||
remmina
|
remmina
|
||||||
|
|||||||
@ -104,32 +104,6 @@ pkgs.kdePackages.mkKdeDerivation rec {
|
|||||||
|
|
||||||
# Fix Qt6 deprecation warning in qthelper.hpp
|
# Fix Qt6 deprecation warning in qthelper.hpp
|
||||||
sed -i 's|v.type()|v.metaType().id()|g' src/backend_mpv/qthelper.hpp
|
sed -i 's|v.type()|v.metaType().id()|g' src/backend_mpv/qthelper.hpp
|
||||||
|
|
||||||
# Fix Qt6 qplatformnativeinterface.h removal in MpvBackend.cpp
|
|
||||||
# Wrap the Qt5-only header in version check
|
|
||||||
sed -i '/# include <qpa\/qplatformnativeinterface.h>/{
|
|
||||||
i\#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
|
|
||||||
a\#endif
|
|
||||||
}' src/backend_mpv/MpvBackend.cpp
|
|
||||||
|
|
||||||
# Remove TODO comments
|
|
||||||
sed -i '/TODO.*QX11Application/d' src/backend_mpv/MpvBackend.cpp
|
|
||||||
sed -i '/same for wayland/d' src/backend_mpv/MpvBackend.cpp
|
|
||||||
|
|
||||||
# Fix X11 display access for Qt6
|
|
||||||
sed -i '/params\[2\].type = MPV_RENDER_PARAM_X11_DISPLAY;/,/params\[2\].data = QX11Info::display();/{
|
|
||||||
s|auto\* native = QGuiApplication::platformNativeInterface();|auto* x11App = qApp->nativeInterface<QNativeInterface::QX11Application>();|
|
|
||||||
s|params\[2\].data = native->nativeResourceForWindow("display", nullptr);|params[2].data = x11App ? x11App->display() : nullptr;|
|
|
||||||
}' src/backend_mpv/MpvBackend.cpp
|
|
||||||
|
|
||||||
# Fix Wayland display access for Qt6
|
|
||||||
sed -i '/params\[2\].type = MPV_RENDER_PARAM_WL_DISPLAY;/,/params\[2\].data = native->nativeResourceForWindow("display", nullptr);/{
|
|
||||||
/params\[2\].type = MPV_RENDER_PARAM_WL_DISPLAY;/a\#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))\
|
|
||||||
auto* waylandApp = qApp->nativeInterface<QNativeInterface::QWaylandApplication>();\
|
|
||||||
params[2].data = waylandApp ? waylandApp->display() : nullptr;\
|
|
||||||
#else
|
|
||||||
/params\[2\].data = native->nativeResourceForWindow/a\#endif
|
|
||||||
}' src/backend_mpv/MpvBackend.cpp
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
|
|||||||
@ -7,7 +7,7 @@ pkgs.mkShellNoCC {
|
|||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
cowsay
|
cowsay
|
||||||
lolcat
|
lolcat
|
||||||
bitwarden-desktop #replaced bitwarden
|
bitwarden
|
||||||
bitwarden-cli
|
bitwarden-cli
|
||||||
sops
|
sops
|
||||||
];
|
];
|
||||||
|
|||||||
@ -47,16 +47,18 @@
|
|||||||
desktopManager.gnome.enable = true;
|
desktopManager.gnome.enable = true;
|
||||||
displayManager.gdm.enable = false;
|
displayManager.gdm.enable = false;
|
||||||
displayManager.sddm.enable = true;
|
displayManager.sddm.enable = true;
|
||||||
displayManager.sddm.wayland.enable = true;
|
|
||||||
displayManager.defaultSession = "gnome";
|
displayManager.defaultSession = "gnome";
|
||||||
desktopManager.plasma6.enable = true;
|
desktopManager.plasma6.enable = true;
|
||||||
|
|
||||||
xserver = {
|
xserver = {
|
||||||
enable = true; # Enable the deprecated X11 teletype terminal connection system.
|
enable = true; # Enable the deprecated X11 teletype terminal connection system.
|
||||||
|
|
||||||
desktopManager = {
|
desktopManager = {
|
||||||
# Disable xterm
|
# Disable xterm
|
||||||
xterm.enable = false;
|
xterm.enable = false;
|
||||||
|
# Enable xfce session
|
||||||
|
xfce = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
# Disable fuckshit plasma
|
# Disable fuckshit plasma
|
||||||
};
|
};
|
||||||
# Configure Display Manager
|
# Configure Display Manager
|
||||||
@ -143,8 +145,6 @@
|
|||||||
# Install firefox.
|
# Install firefox.
|
||||||
programs.firefox.enable = true;
|
programs.firefox.enable = true;
|
||||||
|
|
||||||
programs.xwayland.enable = true;
|
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
@ -157,28 +157,12 @@
|
|||||||
kdePackages.qtwebsockets
|
kdePackages.qtwebsockets
|
||||||
kdePackages.qtwebchannel
|
kdePackages.qtwebchannel
|
||||||
qt6.qtwebengine
|
qt6.qtwebengine
|
||||||
|
xfce.xfce4-whiskermenu-plugin
|
||||||
gnome-tweaks
|
gnome-tweaks
|
||||||
qemu
|
qemu
|
||||||
mpv
|
mpv
|
||||||
krita
|
|
||||||
];
|
];
|
||||||
environment.etc."xdg/autostart/xwaylandvideobridge.desktop".text = ''
|
|
||||||
[Desktop Entry]
|
|
||||||
Hidden=true
|
|
||||||
'';
|
|
||||||
|
|
||||||
|
|
||||||
virtualisation.libvirtd = {
|
|
||||||
enable = true;
|
|
||||||
qemu = {
|
|
||||||
package = pkgs.qemu_kvm;
|
|
||||||
runAsRoot = true;
|
|
||||||
swtpm.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [ "L+ /var/lib/qemu/firmware - - - - ${pkgs.qemu}/share/qemu/firmware" ];
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
# programs.mtr.enable = true;
|
# programs.mtr.enable = true;
|
||||||
|
|||||||
@ -43,11 +43,12 @@ in
|
|||||||
users.users.andreas = {
|
users.users.andreas = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Andreas Schaafsma";
|
description = "Andreas Schaafsma";
|
||||||
extraGroups = [ "networkmanager" "wheel" "libvirtd" ] ;
|
extraGroups = [ "networkmanager" "wheel" ] ;
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
# Packages from inputs
|
# Packages from inputs
|
||||||
inputs.game-of-life.packages.x86_64-linux.default
|
inputs.game-of-life.packages.x86_64-linux.default
|
||||||
inputs.zen-browser.packages.x86_64-linux.default
|
inputs.zen-browser.packages.x86_64-linux.default
|
||||||
|
inputs.nixos-cosmic
|
||||||
inputs.trilium-next-pr.legacyPackages.x86_64-linux.trilium-next-desktop
|
inputs.trilium-next-pr.legacyPackages.x86_64-linux.trilium-next-desktop
|
||||||
# We want flatpak support
|
# We want flatpak support
|
||||||
flatpak
|
flatpak
|
||||||
@ -60,14 +61,14 @@ in
|
|||||||
vscode
|
vscode
|
||||||
spotify
|
spotify
|
||||||
appimage-run
|
appimage-run
|
||||||
prismlauncher #replaces broken minecraft package
|
minecraft
|
||||||
trilium-desktop
|
trilium-desktop
|
||||||
terraform
|
terraform
|
||||||
virt-manager
|
|
||||||
# thunderbird
|
# thunderbird
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
services.gnome.gnome-remote-desktop.enable = true;
|
services.gnome.gnome-remote-desktop.enable = true;
|
||||||
|
my-namespace.cosmic-desktop.enable = false;
|
||||||
my-namespace.wallpaper-engine-kde-plugin.enable = true;
|
my-namespace.wallpaper-engine-kde-plugin.enable = true;
|
||||||
# lib.my-namespace.home.stream-tools.enable = true;
|
# lib.my-namespace.home.stream-tools.enable = true;
|
||||||
|
|
||||||
@ -117,7 +118,7 @@ in
|
|||||||
++ installedPackages.packages;
|
++ installedPackages.packages;
|
||||||
programs.nix-ld = {
|
programs.nix-ld = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.nix-ld; #replaces nix-ld-rs
|
package = pkgs.nix-ld-rs;
|
||||||
};
|
};
|
||||||
services.flatpak.enable = true;
|
services.flatpak.enable = true;
|
||||||
systemd.services.flatpak-repo = {
|
systemd.services.flatpak-repo = {
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
{
|
{
|
||||||
# boot.kernelParams = [ "drm.edid_firmware=DP-1:edid/edid.bin,DP-2:edid/edid.bin,DP-3:edid/edid.bin,DP-4:edid/edid.bin" ];
|
# boot.kernelParams = [ "drm.edid_firmware=DP-1:edid/edid.bin,DP-2:edid/edid.bin,DP-3:edid/edid.bin,DP-4:edid/edid.bin" ];
|
||||||
boot.kernelParams = [ "drm.edid_firmware=DP-2:edid/edid.bin" ];
|
boot.kernelParams = [ "drm.edid_firmware=DP-1:edid/edid.bin,DP-2:edid/edid.bin,DP-3:edid/edid.bin" ];
|
||||||
|
|
||||||
|
|
||||||
hardware.firmware = [
|
hardware.firmware = [
|
||||||
|
|||||||
@ -1,74 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
############################
|
|
||||||
## Display + Mesa Settings
|
|
||||||
############################
|
|
||||||
|
|
||||||
# hardware.enableRedistributableFirmware = true;
|
|
||||||
|
|
||||||
hardware.firmware = [
|
|
||||||
pkgs.linux-firmware
|
|
||||||
# pkgs.firmwareLinuxNonfree
|
|
||||||
# pkgs.firmwareLinuxStrict
|
|
||||||
# pkgs.firmwareLinuxLatest
|
|
||||||
];
|
|
||||||
|
|
||||||
# boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
|
|
||||||
boot.kernelParams = [
|
|
||||||
"console=tty0"
|
|
||||||
"efifb=off"
|
|
||||||
"xe.force_probe=*"
|
|
||||||
"nvidia-drm.modeset=1"
|
|
||||||
];
|
|
||||||
|
|
||||||
hardware.graphics = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
extraPackages = with pkgs; [
|
|
||||||
intel-media-driver # Intel VAAPI
|
|
||||||
vpl-gpu-rt # oneVPL runtime
|
|
||||||
intel-vaapi-driver # fallback
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Ensure Arc driver is available (usually auto-loaded)
|
|
||||||
boot.kernelModules = [ "xe" ];
|
|
||||||
boot.blacklistedKernelModules = [ "nouveau" ];
|
|
||||||
|
|
||||||
############################
|
|
||||||
## X / Wayland GPU Drivers
|
|
||||||
############################
|
|
||||||
# Only specify NVIDIA. Intel Arc uses the modesetting driver automatically.
|
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
|
||||||
|
|
||||||
############################
|
|
||||||
## NVIDIA Configuration
|
|
||||||
############################
|
|
||||||
hardware.nvidia = {
|
|
||||||
modesetting.enable = true; # REQUIRED if any displays are on NVIDIA
|
|
||||||
|
|
||||||
open = false; # GTX 1070 → must be the proprietary driver
|
|
||||||
nvidiaSettings = true;
|
|
||||||
|
|
||||||
powerManagement.enable = false;
|
|
||||||
powerManagement.finegrained = false;
|
|
||||||
|
|
||||||
prime = {
|
|
||||||
offload.enable = false; # not a laptop, must be disabled
|
|
||||||
sync.enable = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Correct way to pick the driver
|
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.production;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Remove → hardware.nvidia handles module packages
|
|
||||||
# boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ];
|
|
||||||
|
|
||||||
############################
|
|
||||||
## User Access
|
|
||||||
############################
|
|
||||||
users.users.andreas.extraGroups = [ "video" "render" ];
|
|
||||||
}
|
|
||||||
@ -4,7 +4,7 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
my-namespace.hardware = {
|
my-namespace.hardware = {
|
||||||
# graphics-nvidia-specializations.enabled = false;
|
graphics-nvidia-specializations = enabled;
|
||||||
# graphics-nvidia-prime-amd = enabled;
|
# graphics-nvidia-prime-amd = enabled;
|
||||||
# graphics-nvidia-prime-amd-testing = enabled;
|
# graphics-nvidia-prime-amd-testing = enabled;
|
||||||
# graphics-amd-igpu-only = enabled;
|
# graphics-amd-igpu-only = enabled;
|
||||||
|
|||||||
@ -16,11 +16,11 @@
|
|||||||
boot.loader.systemd-boot.consoleMode = "max";
|
boot.loader.systemd-boot.consoleMode = "max";
|
||||||
|
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
# "amdgpu.modeset=0"
|
"amdgpu.modeset=1"
|
||||||
"nvidia-drm.fbdev=1"
|
"nvidia-drm.fbdev=1"
|
||||||
"nvidia-drm.modeset=1"
|
"nvidia-drm.modeset=0"
|
||||||
"nvidia.NVreg_PreserveVideoMemoryAllocations=1"
|
# "nvidia.NVreg_PreserveVideoMemoryAllocations=0"
|
||||||
# "amd_iommu=on"
|
"amd_iommu=on"
|
||||||
# "vfio-pci.ids=\"10de:2489,10de:228b\""
|
# "vfio-pci.ids=\"10de:2489,10de:228b\""
|
||||||
# "nomodeset"
|
# "nomodeset"
|
||||||
# "nvidia_drm.modeset=1"
|
# "nvidia_drm.modeset=1"
|
||||||
@ -28,22 +28,60 @@
|
|||||||
boot.blacklistedKernelModules = [
|
boot.blacklistedKernelModules = [
|
||||||
"i915"
|
"i915"
|
||||||
"nouveau"
|
"nouveau"
|
||||||
"amdgpu"
|
# "nvidia"
|
||||||
|
# "nvidia-drm"
|
||||||
|
# "nvidia-uvm"
|
||||||
|
# "nvidiafb"
|
||||||
|
# "nvidia_drm"
|
||||||
|
# "nvidia_modeset"
|
||||||
];
|
];
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
# boot.extraModprobeConfig = ''
|
||||||
|
# blacklist nvidia
|
||||||
|
# blacklist nvidia-drm
|
||||||
|
# blacklist nvidia_drm
|
||||||
|
# blacklist nvidia-uvm
|
||||||
|
# blacklist nvidia_uvm
|
||||||
|
# blacklist nvidia_modeset
|
||||||
|
# blacklist nvidiafb
|
||||||
|
# blacklist nouveau
|
||||||
|
# options nouveau modeset=0
|
||||||
|
# '';
|
||||||
|
boot.extraModprobeConfig = ''
|
||||||
|
blacklist nouveau
|
||||||
|
options nouveau modeset=0
|
||||||
|
'';
|
||||||
|
# services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
|
services.xserver.videoDrivers = [ "amdgpu" "nvidia" ];
|
||||||
|
|
||||||
|
# services.udev.extraRules = ''
|
||||||
|
# # Remove NVIDIA USB xHCI Host Controller devices, if present
|
||||||
|
# ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c0330", ATTR{power/control}="auto", ATTR{remove}="1"
|
||||||
|
# # Remove NVIDIA USB Type-C UCSI devices, if present
|
||||||
|
# ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c8000", ATTR{power/control}="auto", ATTR{remove}="1"
|
||||||
|
# # Remove NVIDIA Audio devices, if present
|
||||||
|
# ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x040300", ATTR{power/control}="auto", ATTR{remove}="1"
|
||||||
|
# # Remove NVIDIA VGA/3D controller devices
|
||||||
|
# ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x03[0-9]*", ATTR{power/control}="auto", ATTR{remove}="1"
|
||||||
|
# '';
|
||||||
|
|
||||||
boot.initrd.kernelModules = [
|
boot.initrd.kernelModules = [
|
||||||
|
"amdgpu"
|
||||||
"nvidia"
|
"nvidia"
|
||||||
"nvidia_drm"
|
# "nvidia-drm"
|
||||||
|
"nvidiafb"
|
||||||
|
# "nvidia-uvm"
|
||||||
|
# "nvidia-modeset"
|
||||||
|
# "i2c-nvidia_gpu"
|
||||||
];
|
];
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
|
# Modesetting is required.
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
|
|
||||||
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
|
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
|
||||||
# Enable this if you have graphical corruption issues or application crashes after waking
|
# Enable this if you have graphical corruption issues or application crashes after waking
|
||||||
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
|
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
|
||||||
# of just the bare essentials.
|
# of just the bare essentials.
|
||||||
powerManagement.enable = false;
|
powerManagement.enable = true;
|
||||||
|
|
||||||
# Fine-grained power management. Turns off GPU when not in use.
|
# Fine-grained power management. Turns off GPU when not in use.
|
||||||
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
|
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
|
||||||
@ -67,19 +105,19 @@
|
|||||||
# package = config.boot.kernelPackages.nvidiaPackages.none;
|
# package = config.boot.kernelPackages.nvidiaPackages.none;
|
||||||
# package = config.boot.kernelPackages.nvidiaPackages.production;
|
# package = config.boot.kernelPackages.nvidiaPackages.production;
|
||||||
|
|
||||||
forceFullCompositionPipeline = true;
|
forceFullCompositionPipeline = false;
|
||||||
|
|
||||||
# prime = {
|
prime = {
|
||||||
# offload = {
|
offload = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# enableOffloadCmd = true;
|
enableOffloadCmd = true;
|
||||||
# };
|
};
|
||||||
# reverseSync.enable = false;
|
reverseSync.enable = false;
|
||||||
# # Make sure to use the correct Bus ID values for your system!
|
# Make sure to use the correct Bus ID values for your system!
|
||||||
# # intelBusId = "PCI:0:2:0";
|
# intelBusId = "PCI:0:2:0";
|
||||||
# nvidiaBusId = "PCI:01:0:0";
|
nvidiaBusId = "PCI:01:0:0";
|
||||||
# amdgpuBusId = "PCI:50:0:0"; #For AMD GPU
|
amdgpuBusId = "PCI:50:0:0"; #For AMD GPU
|
||||||
# };
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
users.users.andreas = {
|
users.users.andreas = {
|
||||||
|
|||||||
@ -7,19 +7,18 @@
|
|||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
./graphics/intel_nvidia.nix
|
./graphics/nvidia-stable.nix
|
||||||
# ./graphics/nvidia.nix
|
# ./graphics/nvidia.nix
|
||||||
./acer-monitor-edid.nix
|
./acer-monitor-edid.nix
|
||||||
];
|
];
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
#boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
hardware.enableRedistributableFirmware = true;
|
|
||||||
# boot.kernelPackages = pkgs.linuxKernel.packages.linux_xanmod_latest;
|
# boot.kernelPackages = pkgs.linuxKernel.packages.linux_xanmod_latest;
|
||||||
# boot.kernelPackages = pkgs.linuxPackages;
|
boot.kernelPackages = pkgs.linuxPackages;
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
boot.kernelModules = [ "kvm-amd" "4vl2loopback" ];
|
boot.kernelModules = [ "kvm-amd" "4vl2loopback" ];
|
||||||
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
|
boot.extraModulePackages = [ pkgs.linuxPackages.v4l2loopback ];
|
||||||
boot.supportedFilesystems = [ "ntfs" ];
|
|
||||||
boot.blacklistedKernelModules = [ ];
|
boot.blacklistedKernelModules = [ ];
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/563805a1-5277-4488-bbdd-c1a7ed37be76";
|
{ device = "/dev/disk/by-uuid/563805a1-5277-4488-bbdd-c1a7ed37be76";
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
boot.extraModulePackages = [
|
boot.extraModulePackages = [
|
||||||
config.boot.kernelPackages.v4l2loopback # Webcam loopback
|
pkgs.linuxPackages.v4l2loopback # Webcam loopback
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.extraModprobeConfig = ''
|
boot.extraModprobeConfig = ''
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user