Compare commits
2 Commits
26d59c7ca6
...
divergence
| Author | SHA1 | Date | |
|---|---|---|---|
| 273e88cb54 | |||
| caa439b36b |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +0,0 @@
|
|||||||
.vscode/settings.json
|
|
||||||
13
.sops.yaml
13
.sops.yaml
@@ -1,13 +0,0 @@
|
|||||||
keys:
|
|
||||||
- users:
|
|
||||||
- &andreas age19j24x89dfh4f7v58c8k64yupqas4f7qkkyper7yj9dd7vqwvvq0qkyvhxk # generated using cli
|
|
||||||
- hosts:
|
|
||||||
- &th0nkpad-nixos age1ma8x6wugvc40mkst33mejq0m6r44jk6zwjjun3znyer5nztgn9vs0nwjx4 # derived from ssh host key
|
|
||||||
- &drivebystation-nix age1s5qwsuc3e4m3c4w5hl6tyja70w273gr60j9j9dcpc6mz69lemg3qpwud3h #derived from ssh host key
|
|
||||||
creation_rules:
|
|
||||||
- path_regex: secrets.yaml$
|
|
||||||
key_groups:
|
|
||||||
- age:
|
|
||||||
- *andreas
|
|
||||||
- *th0nkpad-nixos
|
|
||||||
- *drivebystation-nix
|
|
||||||
21
.vscode/tasks.json
vendored
21
.vscode/tasks.json
vendored
@@ -1,21 +0,0 @@
|
|||||||
{
|
|
||||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
||||||
// for the documentation about the tasks.json format
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"type": "shell",
|
|
||||||
"label": "nixos-rebuild",
|
|
||||||
"command": "bash",
|
|
||||||
"args": [
|
|
||||||
"-c",
|
|
||||||
"sudo nixos-rebuild switch --flake ."
|
|
||||||
],
|
|
||||||
"problemMatcher": [],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
592
flake.lock
generated
592
flake.lock
generated
@@ -1,71 +1,13 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"aagl": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-compat": "flake-compat",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"rust-overlay": "rust-overlay"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1767520119,
|
|
||||||
"narHash": "sha256-+OmNQLA9Fv5WBaxYHlPghS9XmnYWDaLt+AatCGhG+hc=",
|
|
||||||
"owner": "ezKEa",
|
|
||||||
"repo": "aagl-gtk-on-nix",
|
|
||||||
"rev": "5720d3282844b6b23b26dfac075a5f1f58ea8844",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "ezKEa",
|
|
||||||
"repo": "aagl-gtk-on-nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"anikki": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-utils": "flake-utils",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1766470910,
|
|
||||||
"narHash": "sha256-iY0vJAAjY5ZveB6JIAQDHq7lFrkAVGnO0tC7YOYDFsg=",
|
|
||||||
"owner": "Hion-V",
|
|
||||||
"repo": "Anikki-flake",
|
|
||||||
"rev": "95d15448466142126c7fc13ac1dbdaf58a36a3a5",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "Hion-V",
|
|
||||||
"repo": "Anikki-flake",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"crane": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1754269165,
|
|
||||||
"narHash": "sha256-0tcS8FHd4QjbCVoxN9jI+PjHgA4vc/IjkUSp+N3zy0U=",
|
|
||||||
"owner": "ipetkov",
|
|
||||||
"repo": "crane",
|
|
||||||
"rev": "444e81206df3f7d92780680e45858e31d2f07a08",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "ipetkov",
|
|
||||||
"repo": "crane",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1761588595,
|
"lastModified": 1696426674,
|
||||||
"narHash": "sha256-XKUZz9zewJNUj46b4AJdiRZJAvSZ0Dqj2BNfXvFlJC4=",
|
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
|
||||||
"owner": "edolstra",
|
"owner": "edolstra",
|
||||||
"repo": "flake-compat",
|
"repo": "flake-compat",
|
||||||
"rev": "f387cd2afec9419c8ee37694406ca490c3f34ee5",
|
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -77,43 +19,11 @@
|
|||||||
"flake-compat_2": {
|
"flake-compat_2": {
|
||||||
"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"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-compat_3": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1765121682,
|
|
||||||
"narHash": "sha256-4VBOP18BFeiPkyhy9o4ssBNQEvfvv1kXkasAYd0+rrA=",
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"rev": "65f23138d8d09a92e30f1e5c87611b23ef451bf3",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-compat_4": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1650374568,
|
|
||||||
"narHash": "sha256-Z+s0J8/r907g149rllvwhb4pKi8Wam5ij0st8PwAh+E=",
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"rev": "b4a34015c698c7793d592d66adbab377907a2be8",
|
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -125,16 +35,16 @@
|
|||||||
"flake-parts": {
|
"flake-parts": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
"lanzaboote",
|
"nix",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754091436,
|
"lastModified": 1719994518,
|
||||||
"narHash": "sha256-XKqDMN1/Qj1DKivQvscI4vmHfDfvYR2pfuFOJiCeewM=",
|
"narHash": "sha256-pQMhCCHyQGRzdfAkdJ4cIWiw+JNuWsTX7f0ZYSyz0VY=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "67df8c627c2c39c41dbec76a1f201929929ab0bd",
|
"rev": "9227223f6d922fee3c7b190b2cc238a99527bbb7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -148,11 +58,11 @@
|
|||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731533236,
|
"lastModified": 1726560853,
|
||||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
"narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
"rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -161,186 +71,89 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils-plus": {
|
"git-hooks-nix": {
|
||||||
"inputs": {
|
|
||||||
"flake-utils": "flake-utils_2"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1715533576,
|
|
||||||
"narHash": "sha256-fT4ppWeCJ0uR300EH3i7kmgRZnAVxrH+XtK09jQWihk=",
|
|
||||||
"owner": "gytis-ivaskevicius",
|
|
||||||
"repo": "flake-utils-plus",
|
|
||||||
"rev": "3542fe9126dc492e53ddd252bb0260fe035f2c0f",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "gytis-ivaskevicius",
|
|
||||||
"repo": "flake-utils-plus",
|
|
||||||
"rev": "3542fe9126dc492e53ddd252bb0260fe035f2c0f",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-utils_2": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems_3"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1694529238,
|
|
||||||
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"game-of-life": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1728511087,
|
|
||||||
"narHash": "sha256-CvO74jwMjUUPySy0QCt7sPImbxKlhWcSAet93Fkt6iU=",
|
|
||||||
"owner": "local-interloper",
|
|
||||||
"repo": "game-of-life",
|
|
||||||
"rev": "c39d37e394f5da79a6a7d198e1d7e505aa5298a7",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "local-interloper",
|
|
||||||
"repo": "game-of-life",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"gitignore": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"lanzaboote",
|
|
||||||
"pre-commit-hooks-nix",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1709087332,
|
|
||||||
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "gitignore.nix",
|
|
||||||
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "gitignore.nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"home-manager": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1768434960,
|
|
||||||
"narHash": "sha256-cJbFn17oyg6qAraLr+NVeNJrXsrzJdrudkzI4H2iTcg=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"rev": "b4d88c9ac42ae1a745283f6547701da43b6e9f9b",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"home-manager_2": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"zen-browser",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1767104570,
|
|
||||||
"narHash": "sha256-GKgwu5//R+cLdKysZjGqvUEEOGXXLdt93sNXeb2M/Lk=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"rev": "e4e78a2cbeaddd07ab7238971b16468cc1d14daf",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"kwin-effects-forceblur": {
|
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"flake-compat": [
|
||||||
|
"nix"
|
||||||
|
],
|
||||||
|
"gitignore": [
|
||||||
|
"nix"
|
||||||
|
],
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
"nix",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"utils": "utils"
|
"nixpkgs-stable": [
|
||||||
|
"nix",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1755098995,
|
"lastModified": 1721042469,
|
||||||
"narHash": "sha256-6FN7XEf27DenQHDIKjrjOW3tGIaJlyqRlXarmt1v+M0=",
|
"narHash": "sha256-6FPUl7HVtvRHCCBQne7Ylp4p+dpP3P/OYuzjztZ4s70=",
|
||||||
"owner": "taj-ny",
|
"owner": "cachix",
|
||||||
"repo": "kwin-effects-forceblur",
|
"repo": "git-hooks.nix",
|
||||||
"rev": "51a1d49d7fd7df3ce40ccf6ba4c4410cf6f510e1",
|
"rev": "f451c19376071a90d8c58ab1a953c6e9840527fd",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "taj-ny",
|
"owner": "cachix",
|
||||||
"repo": "kwin-effects-forceblur",
|
"repo": "git-hooks.nix",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lanzaboote": {
|
"libgit2": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1715853528,
|
||||||
|
"narHash": "sha256-J2rCxTecyLbbDdsyBWn9w7r3pbKRMkI9E7RvRgAqBdY=",
|
||||||
|
"owner": "libgit2",
|
||||||
|
"repo": "libgit2",
|
||||||
|
"rev": "36f7e21ad757a3dacc58cf7944329da6bc1d6e96",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "libgit2",
|
||||||
|
"ref": "v1.8.1",
|
||||||
|
"repo": "libgit2",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"crane": "crane",
|
"flake-compat": "flake-compat",
|
||||||
"flake-compat": "flake-compat_2",
|
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"nixpkgs": [
|
"git-hooks-nix": "git-hooks-nix",
|
||||||
"nixpkgs"
|
"libgit2": "libgit2",
|
||||||
],
|
"nixpkgs": "nixpkgs",
|
||||||
"pre-commit-hooks-nix": "pre-commit-hooks-nix",
|
"nixpkgs-23-11": "nixpkgs-23-11",
|
||||||
"rust-overlay": "rust-overlay_2"
|
"nixpkgs-regression": "nixpkgs-regression"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1762205063,
|
"lastModified": 1728310575,
|
||||||
"narHash": "sha256-If6vQ+KvtKs3ARBO9G3l+4wFSCYtRBrwX1z+I+B61wQ=",
|
"narHash": "sha256-R13o8hNhzuTuEwUBViVOmT4OM0/I2d9DxnkxQOip1yg=",
|
||||||
"owner": "nix-community",
|
"owner": "NixOS",
|
||||||
"repo": "lanzaboote",
|
"repo": "nix",
|
||||||
"rev": "88b8a563ff5704f4e8d8e5118fb911fa2110ca05",
|
"rev": "26c3fc11eada3fa7df0284190095868a947fefe2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"id": "nix",
|
||||||
"ref": "v0.4.3",
|
"type": "indirect"
|
||||||
"repo": "lanzaboote",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixos-wsl": {
|
"nixos-wsl": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_3",
|
"flake-compat": "flake-compat_2",
|
||||||
"nixpkgs": [
|
"flake-utils": "flake-utils",
|
||||||
"nixpkgs"
|
"nixpkgs": "nixpkgs_2"
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768404695,
|
"lastModified": 1728299182,
|
||||||
"narHash": "sha256-eT3dNE2CQYcPDHaeRZAEFrZ0BmMq2wLxMp7hCmzOZBA=",
|
"narHash": "sha256-wzxKH5DyG+uyhnGtP8YmN3LCYtEyYR/4fhjKVY2Rtxg=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NixOS-WSL",
|
"repo": "NixOS-WSL",
|
||||||
"rev": "d0d3636b9d174c4558e3bbb18e194d970505fed8",
|
"rev": "830b6a752d0097c2043985ff4c1203aba07b268d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -352,27 +165,75 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744536153,
|
"lastModified": 1723688146,
|
||||||
"narHash": "sha256-awS2zRgF4uTwrOKwwiJcByDzDOdo3Q1rPZbiHQg/N38=",
|
"narHash": "sha256-sqLwJcHYeWLOeP/XoLwAtYjr01TISlkOfz+NG82pbdg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "18dd725c29603f582cf1900e0d25f9f1063dbf11",
|
"rev": "c3d4ac725177c030b1e289015989da2ad9d56af0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"ref": "nixpkgs-unstable",
|
"ref": "nixos-24.05",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-23-11": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1717159533,
|
||||||
|
"narHash": "sha256-oamiKNfr2MS6yH64rUn99mIZjc45nGJlj9eGth/3Xuw=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "a62e6edd6d5e1fa0329b8653c801147986f8d446",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "a62e6edd6d5e1fa0329b8653c801147986f8d446",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs-regression": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1643052045,
|
||||||
|
"narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768305791,
|
"lastModified": 1728193676,
|
||||||
"narHash": "sha256-AIdl6WAn9aymeaH/NvBj0H9qM+XuAuYbGMZaP0zcXAQ=",
|
"narHash": "sha256-PbDWAIjKJdlVg+qQRhzdSor04bAPApDqIv2DofTyynk=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "1412caf7bf9e660f2f962917c14b1ea1c3bc695e",
|
"rev": "ecbc1ca8ffd6aea8372ad16be9ebbb39889e55b6",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-24.05",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_3": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1728241625,
|
||||||
|
"narHash": "sha256-yumd4fBc/hi8a9QgA9IT8vlQuLZ2oqhkJXHPKxH/tRw=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "c31898adf5a8ed202ce5bea9f347b1c6871f32d1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -382,127 +243,11 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pre-commit-hooks-nix": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-compat": [
|
|
||||||
"lanzaboote",
|
|
||||||
"flake-compat"
|
|
||||||
],
|
|
||||||
"gitignore": "gitignore",
|
|
||||||
"nixpkgs": [
|
|
||||||
"lanzaboote",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1750779888,
|
|
||||||
"narHash": "sha256-wibppH3g/E2lxU43ZQHC5yA/7kIKLGxVEnsnVK1BtRg=",
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "pre-commit-hooks.nix",
|
|
||||||
"rev": "16ec914f6fb6f599ce988427d9d94efddf25fe6d",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "pre-commit-hooks.nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"aagl": "aagl",
|
"nix": "nix",
|
||||||
"anikki": "anikki",
|
|
||||||
"game-of-life": "game-of-life",
|
|
||||||
"home-manager": "home-manager",
|
|
||||||
"kwin-effects-forceblur": "kwin-effects-forceblur",
|
|
||||||
"lanzaboote": "lanzaboote",
|
|
||||||
"nixos-wsl": "nixos-wsl",
|
"nixos-wsl": "nixos-wsl",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_3"
|
||||||
"snowfall-lib": "snowfall-lib",
|
|
||||||
"sops-nix": "sops-nix",
|
|
||||||
"trilium-next-pr": "trilium-next-pr",
|
|
||||||
"zen-browser": "zen-browser"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rust-overlay": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": "nixpkgs"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1764470739,
|
|
||||||
"narHash": "sha256-sa9f81B1dWO16QtgDTWHX8DQbiHKzHndpaunY5EQtwE=",
|
|
||||||
"owner": "oxalica",
|
|
||||||
"repo": "rust-overlay",
|
|
||||||
"rev": "3bfa664055e1a09c6aedab5533c5fc8d6ca5741a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "oxalica",
|
|
||||||
"repo": "rust-overlay",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rust-overlay_2": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"lanzaboote",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1761791894,
|
|
||||||
"narHash": "sha256-myRIDh+PxaREz+z9LzbqBJF+SnTFJwkthKDX9zMyddY=",
|
|
||||||
"owner": "oxalica",
|
|
||||||
"repo": "rust-overlay",
|
|
||||||
"rev": "59c45eb69d9222a4362673141e00ff77842cd219",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "oxalica",
|
|
||||||
"repo": "rust-overlay",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"snowfall-lib": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-compat": "flake-compat_4",
|
|
||||||
"flake-utils-plus": "flake-utils-plus",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1765361626,
|
|
||||||
"narHash": "sha256-kX0Dp/kYSRbQ+yd9e3lmmUWdNbipufvKfL2IzbrSpnY=",
|
|
||||||
"owner": "snowfallorg",
|
|
||||||
"repo": "lib",
|
|
||||||
"rev": "c566ad8b7352c30ec3763435de7c8f1c46ebb357",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "snowfallorg",
|
|
||||||
"repo": "lib",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"sops-nix": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1768481291,
|
|
||||||
"narHash": "sha256-NjKtkJraCZEnLHAJxLTI+BfdU//9coAz9p5TqveZwPU=",
|
|
||||||
"owner": "mic92",
|
|
||||||
"repo": "sops-nix",
|
|
||||||
"rev": "e085e303dfcce21adcb5fec535d65aacb066f101",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "mic92",
|
|
||||||
"repo": "sops-nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
@@ -519,91 +264,6 @@
|
|||||||
"repo": "default",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"systems_2": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems_3": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"trilium-next-pr": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1736678965,
|
|
||||||
"narHash": "sha256-2A687i3Rq0/wqJVvpgaiRPWcfnBBuBhPjKaT8cnd7o0=",
|
|
||||||
"owner": "FliegendeWurst",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "4fcdf706929246476e52e960760b6643cb8395c4",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "FliegendeWurst",
|
|
||||||
"ref": "trilium-next",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"utils": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems_2"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1726560853,
|
|
||||||
"narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"zen-browser": {
|
|
||||||
"inputs": {
|
|
||||||
"home-manager": "home-manager_2",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1768379550,
|
|
||||||
"narHash": "sha256-z94S29l5V86h11LZbPIMbHTJyksDG63aqISsZkTTuJY=",
|
|
||||||
"owner": "0xc000022070",
|
|
||||||
"repo": "zen-browser-flake",
|
|
||||||
"rev": "06f61b4e4f4f6ba8027c96a5611c63dc0db12b90",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "0xc000022070",
|
|
||||||
"repo": "zen-browser-flake",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|||||||
225
flake.nix
225
flake.nix
@@ -2,151 +2,110 @@
|
|||||||
description = "Nixos config flake test";
|
description = "Nixos config flake test";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
# nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; # Use nixos-unstable for latest kernel and packages
|
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
|
||||||
nixos-wsl = {
|
|
||||||
url = "github:nix-community/NixOS-WSL/main";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
};
|
||||||
# Snowfallorg's Flake utility
|
outputs = { self, nixpkgs, nixos-wsl, nix, ... }@inputs:
|
||||||
snowfall-lib = {
|
|
||||||
url = "github:snowfallorg/lib";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
game-of-life = {
|
|
||||||
url = "github:local-interloper/game-of-life";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
# Add sops-nix for secrets management
|
|
||||||
sops-nix = {
|
|
||||||
url = "github:mic92/sops-nix";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
zen-browser = {
|
|
||||||
url = "github:0xc000022070/zen-browser-flake";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
home-manager = {
|
|
||||||
url = "github:nix-community/home-manager";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
trilium-next-pr = {
|
|
||||||
url = "github:FliegendeWurst/nixpkgs/trilium-next";
|
|
||||||
# Don't follow nixpkgs as this repo has its own pinned nixpkgs
|
|
||||||
};
|
|
||||||
anikki = {
|
|
||||||
url = "github:Hion-V/Anikki-flake";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
lanzaboote = {
|
|
||||||
url = "github:nix-community/lanzaboote/v0.4.3";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
kwin-effects-forceblur = {
|
|
||||||
url = "github:taj-ny/kwin-effects-forceblur";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
aagl = {
|
|
||||||
url = "github:ezKEa/aagl-gtk-on-nix";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = inputs:
|
|
||||||
let
|
let
|
||||||
lib = inputs.snowfall-lib.mkLib {
|
system =
|
||||||
inherit inputs;
|
if builtins ? currentSystem
|
||||||
src = ./.;
|
then builtins.currentSystem
|
||||||
|
else "x86_64-linux";
|
||||||
channels-config = {
|
pkgs = import nixpkgs { inherit system; config.allowUnfree = true; };
|
||||||
allowUnfree = true;
|
installedPackages = (import ./installed-packages { inherit pkgs; });
|
||||||
allowUnfreePredicate = _: true;
|
|
||||||
permittedInsecurePackages = [ "openssl-1.1.1w" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Configure Snowfall Lib, all of these settings are optional.
|
|
||||||
snowfall = {
|
|
||||||
# Tell Snowfall Lib to look in the `./nix/` directory for your
|
|
||||||
# Nix files.
|
|
||||||
root = ./.;
|
|
||||||
|
|
||||||
# Choose a namespace to use for your flake's packages, library,
|
|
||||||
# and overlays.
|
|
||||||
namespace = "my-namespace";
|
|
||||||
|
|
||||||
# Add flake metadata that can be processed by tools like Snowfall Frost.
|
|
||||||
meta = {
|
|
||||||
# A slug to use in documentation when displaying things like file paths.
|
|
||||||
name = "nixos-config-hionv";
|
|
||||||
|
|
||||||
# A title to show for your flake, typically the name.
|
|
||||||
title = "Hion's Personal NixOS Config";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in
|
in
|
||||||
lib.mkFlake {
|
|
||||||
inherit inputs;
|
|
||||||
src = ./.;
|
|
||||||
|
|
||||||
nixos = with inputs; [
|
|
||||||
# disko.nixosModules.disko
|
|
||||||
# impermanence.nixosModules.impermanence
|
|
||||||
home-manager.nixosModules.home-manager
|
|
||||||
{
|
{
|
||||||
home-manager = {
|
nixosConfigurations.drivebystation-nixos-wsl = nixpkgs.lib.nixosSystem {
|
||||||
useGlobalPkgs = true;
|
inherit system;
|
||||||
useUserPackages = true;
|
modules = [
|
||||||
};
|
nixos-wsl.nixosModules.default
|
||||||
}
|
./systems/drivebystation-nixos-wsl/configuration.nix
|
||||||
# nix-ld.nixosModules.nix-ld
|
{
|
||||||
# sops-nix.nixosModules.sops
|
system.stateVersion = "24.05";
|
||||||
# stylix.nixosModules.stylix
|
wsl.enable = true;
|
||||||
];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
systems.modules.nixos = with inputs; [
|
|
||||||
# my-input.nixosModules.my-module
|
|
||||||
lanzaboote.nixosModules.lanzaboote ({ pkgs, lib, ... }: {
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
# For debugging and troubleshooting Secure Boot.
|
|
||||||
pkgs.sbctl
|
|
||||||
];
|
|
||||||
|
|
||||||
|
]
|
||||||
boot.loader.systemd-boot.configurationLimit = 4;
|
++ installedPackages.mkPackages.packages;
|
||||||
# Lanzaboote currently replaces the systemd-boot module.
|
programs.nix-ld = {
|
||||||
# This setting is usually set to true in configuration.nix
|
|
||||||
# generated at installation time. So we force it to false
|
|
||||||
# for now.
|
|
||||||
boot.loader.systemd-boot.enable = lib.mkForce false;
|
|
||||||
|
|
||||||
boot.lanzaboote = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
pkiBundle = "/var/lib/sbctl";
|
package = pkgs.nix-ld-rs;
|
||||||
};
|
};
|
||||||
})
|
}
|
||||||
];
|
];
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
# The attribute set specified here will be passed directly to NixPkgs when
|
};
|
||||||
# instantiating the package set.
|
nixosConfigurations.th0nkpad-nixos = nixpkgs.lib.nixosSystem {
|
||||||
channels-config = {
|
inherit system;
|
||||||
# Allow unfree packages.
|
modules = [
|
||||||
allowUnfree = true;
|
./systems/th0nkpad-nixos/configuration.nix
|
||||||
permittedInsecurePackages = [
|
{
|
||||||
"mbedtls-2.28.10" # needed for haxe 4.3.6
|
system.stateVersion = "24.05";
|
||||||
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
|
users.users.andreas = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "Andreas";
|
||||||
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
|
packages = with pkgs; [
|
||||||
|
flatpak
|
||||||
|
gnome-software
|
||||||
|
soundwireserver
|
||||||
|
vscode
|
||||||
|
spotify
|
||||||
|
# thunderbird
|
||||||
];
|
];
|
||||||
# # Allow certain insecure packages
|
};
|
||||||
# permittedInsecurePackages = [
|
|
||||||
# "firefox-100.0.0"
|
|
||||||
# ];
|
|
||||||
|
|
||||||
# # Additional configuration for specific packages.
|
|
||||||
# config = {
|
|
||||||
# # For example, enable smartcard support in Firefox.
|
|
||||||
# firefox.smartcardSupport = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
|
|
||||||
|
# Open ports in the firewall.
|
||||||
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
59010 #SoundWireServer
|
||||||
|
3389 #RDP
|
||||||
|
];
|
||||||
|
networking.firewall.allowedUDPPorts = [
|
||||||
|
59010 #SoundWireServer
|
||||||
|
3389 #RDP
|
||||||
|
];
|
||||||
|
# Or disable the firewall altogether.
|
||||||
|
# networking.firewall.enable = false;
|
||||||
|
|
||||||
|
# Install firefox.
|
||||||
|
programs.firefox.enable = true;
|
||||||
|
|
||||||
|
# Set up system Packages
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
git
|
||||||
|
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
|
# wget
|
||||||
|
]
|
||||||
|
++ installedPackages.mkPackages.packages;
|
||||||
|
programs.nix-ld = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.nix-ld-rs;
|
||||||
|
};
|
||||||
|
services.flatpak.enable = true;
|
||||||
|
systemd.services.flatpak-repo = {
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
path = [ pkgs.flatpak ];
|
||||||
|
script = ''
|
||||||
|
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
# services.xrdp.enable = true;
|
||||||
|
# services.xrdp.defaultWindowManager = "${pkgs.gnome-session}/bin/gnome-session";
|
||||||
|
# # services.xrdp.openFirewall = true;
|
||||||
|
|
||||||
|
# # Disable the GNOME3/GDM auto-suspend feature that cannot be disabled in GUI!
|
||||||
|
# # If no user is logged in, the machine will power down after 20 minutes.
|
||||||
|
# systemd.targets.sleep.enable = false;
|
||||||
|
# systemd.targets.suspend.enable = false;
|
||||||
|
# systemd.targets.hibernate.enable = false;
|
||||||
|
# systemd.targets.hybrid-sleep.enable = false;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,47 +0,0 @@
|
|||||||
{ config
|
|
||||||
, lib
|
|
||||||
, inputs
|
|
||||||
, pkgs
|
|
||||||
, ...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
inherit (lib.my-namespace) enabled;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
# ../modules.nix
|
|
||||||
];
|
|
||||||
my-namespace.home = {
|
|
||||||
stream-tools = enabled;
|
|
||||||
gnome-customizations = enabled;
|
|
||||||
vesktop-appimage = enabled;
|
|
||||||
# networking = enabled;
|
|
||||||
# personal-apps = enabled;
|
|
||||||
# suites.laptop = enabled;
|
|
||||||
};
|
|
||||||
home = {
|
|
||||||
packages = [
|
|
||||||
pkgs.nil
|
|
||||||
pkgs.beeper
|
|
||||||
pkgs.my-namespace.udev-steelseries
|
|
||||||
pkgs.qbittorrent
|
|
||||||
pkgs.hyfetch
|
|
||||||
pkgs.libreoffice
|
|
||||||
pkgs.localsend
|
|
||||||
# pkgs.vesktop
|
|
||||||
pkgs.obsidian
|
|
||||||
inputs.zen-browser.packages.x86_64-linux.default
|
|
||||||
inputs.kwin-effects-forceblur.packages.${pkgs.stdenv.hostPlatform.system}.default
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Auto-start linux-wallpaperengine for dual monitors via XDG autostart
|
|
||||||
xdg.configFile."autostart/linux-wallpaperengine.desktop".text = ''
|
|
||||||
[Desktop Entry]
|
|
||||||
Type=Application
|
|
||||||
Name=Wallpaper Engine
|
|
||||||
Exec=${pkgs.my-namespace.linux-wallpaperengine}/bin/linux-wallpaperengine --screen-root DP-1 --bg 2935872330 --screen-root DP-2 --bg 2935872330
|
|
||||||
X-KDE-autostart-after=panel
|
|
||||||
X-KDE-StartupNotify=false
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
{ config
|
|
||||||
, lib
|
|
||||||
, pkgs
|
|
||||||
, ...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
inherit (lib.my-namespace) enabled;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
# ../modules.nix
|
|
||||||
];
|
|
||||||
my-namespace.home = {
|
|
||||||
stream-tools = enabled;
|
|
||||||
# networking = enabled;
|
|
||||||
# personal-apps = enabled;
|
|
||||||
# suites.laptop = enabled;
|
|
||||||
};
|
|
||||||
home = {
|
|
||||||
packages = [
|
|
||||||
pkgs.nil
|
|
||||||
pkgs.beeper
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
{ config
|
|
||||||
, lib
|
|
||||||
, pkgs
|
|
||||||
, ...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
inherit (lib.my-namespace) enabled;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
# ../modules.nix
|
|
||||||
];
|
|
||||||
my-namespace.home = {
|
|
||||||
stream-tools = enabled;
|
|
||||||
gnome-customizations = enabled;
|
|
||||||
# networking = enabled;
|
|
||||||
# personal-apps = enabled;
|
|
||||||
# suites.laptop = enabled;
|
|
||||||
};
|
|
||||||
home = {
|
|
||||||
packages = [
|
|
||||||
pkgs.nil
|
|
||||||
pkgs.beeper
|
|
||||||
pkgs.my-namespace.udev-steelseries
|
|
||||||
pkgs.qbittorrent
|
|
||||||
#pkgs.vesktop
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
21
installed-packages/default.nix
Normal file
21
installed-packages/default.nix
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{ pkgs }:
|
||||||
|
let
|
||||||
|
baseBackages = [
|
||||||
|
pkgs.vim
|
||||||
|
pkgs.nixpkgs-fmt
|
||||||
|
];
|
||||||
|
utilPackages = [
|
||||||
|
pkgs.wget
|
||||||
|
pkgs.curl
|
||||||
|
pkgs.git
|
||||||
|
pkgs.ffmpeg
|
||||||
|
];
|
||||||
|
haxeDevelopmentPackages = [
|
||||||
|
pkgs.haxe
|
||||||
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
mkPackages = {
|
||||||
|
packages = baseBackages ++ utilPackages ++ haxeDevelopmentPackages;
|
||||||
|
};
|
||||||
|
}
|
||||||
21
installed-packages/desktop/default.nix
Normal file
21
installed-packages/desktop/default.nix
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{ pkgs }:
|
||||||
|
let
|
||||||
|
baseBackages = [
|
||||||
|
pkgs.vim
|
||||||
|
pkgs.nixpkgs-fmt
|
||||||
|
];
|
||||||
|
utilPackages = [
|
||||||
|
pkgs.wget
|
||||||
|
pkgs.curl
|
||||||
|
pkgs.git
|
||||||
|
pkgs.ffmpeg
|
||||||
|
];
|
||||||
|
haxeDevelopmentPackages = [
|
||||||
|
pkgs.haxe
|
||||||
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
mkPackages = {
|
||||||
|
packages = baseBackages ++ utilPackages ++ haxeDevelopmentPackages;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
{lib, ...}: let
|
|
||||||
inherit (lib) mkOption strings;
|
|
||||||
inherit (lib.attrsets) filterAttrs mapAttrsToList;
|
|
||||||
inherit (lib.types) bool;
|
|
||||||
in rec {
|
|
||||||
disabled = {enable = false;};
|
|
||||||
enabled = {enable = true;};
|
|
||||||
ifThenElse = cond: t: f:
|
|
||||||
if cond
|
|
||||||
then t
|
|
||||||
else f;
|
|
||||||
mkOpt = type: default: description:
|
|
||||||
mkOption {inherit type default description;};
|
|
||||||
mkOpt' = type: default: mkOpt type default null;
|
|
||||||
mkBoolOpt = mkOpt bool;
|
|
||||||
mkBoolOpt' = mkOpt' bool;
|
|
||||||
mkPxeMenu = args:
|
|
||||||
''
|
|
||||||
UI menu.c32
|
|
||||||
TIMEOUT 300
|
|
||||||
''
|
|
||||||
+ strings.concatStringsSep "\n" (mapAttrsToList
|
|
||||||
(
|
|
||||||
name: value: ''
|
|
||||||
LABEL ${name}
|
|
||||||
MENU LABEL ${value.content.label}
|
|
||||||
KERNEL ${value.content.kernel}
|
|
||||||
append ${value.content.append}
|
|
||||||
''
|
|
||||||
)
|
|
||||||
(filterAttrs (_: v: v.condition) args));
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
{
|
|
||||||
# This is the merged library containing your namespaced library as well as all libraries from
|
|
||||||
# your flake's inputs.
|
|
||||||
lib
|
|
||||||
, # Your flake inputs are also available.
|
|
||||||
inputs
|
|
||||||
, # The namespace used for your flake, defaulting to "internal" if not set.
|
|
||||||
namespace
|
|
||||||
, # Additionally, Snowfall Lib's own inputs are passed. You probably don't need to use this!
|
|
||||||
snowfall-inputs
|
|
||||||
, ...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
|
||||||
# This will be available as `lib.my-namespace.mkPackages`.
|
|
||||||
mkPackages = {pkgs, ...}:
|
|
||||||
let
|
|
||||||
inherit pkgs;
|
|
||||||
# pkgs = namespace.;
|
|
||||||
# pkgs = snowfall-inputs.nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; };
|
|
||||||
baseBackages = [
|
|
||||||
pkgs.vim
|
|
||||||
pkgs.nixpkgs-fmt
|
|
||||||
];
|
|
||||||
utilPackages = [
|
|
||||||
pkgs.wget
|
|
||||||
pkgs.curl
|
|
||||||
pkgs.git
|
|
||||||
pkgs.ffmpeg
|
|
||||||
];
|
|
||||||
haxeDevelopmentPackages = [
|
|
||||||
pkgs.haxe
|
|
||||||
];
|
|
||||||
in
|
|
||||||
{
|
|
||||||
packages = baseBackages ++ utilPackages ++ haxeDevelopmentPackages;
|
|
||||||
};
|
|
||||||
|
|
||||||
# my-scope = {
|
|
||||||
# # This will be available as `lib.my-namespace.my-scope.my-scoped-helper-function`.
|
|
||||||
# my-scoped-helper-function = x: x;
|
|
||||||
# };
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
{ pkgs
|
|
||||||
, config
|
|
||||||
, lib
|
|
||||||
, ...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
inherit (lib) mkEnableOption mkIf;
|
|
||||||
cfg = config.my-namespace.home.gnome-customizations;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.my-namespace.home.gnome-customizations = {
|
|
||||||
enable = mkEnableOption "Enable GNOME customizations";
|
|
||||||
};
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
# GNOME settings
|
|
||||||
dconf.settings."org/gnome/desktop/wm/preferences".button-layout = "appmenu:,minimize,maximize,close";
|
|
||||||
dconf.settings."org/gnome/mutter".experimental-features = [ "scale-monitor-framebuffer" ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,78 +0,0 @@
|
|||||||
{
|
|
||||||
# Snowfall Lib provides a customized `lib` instance with access to your flake's library
|
|
||||||
# as well as the libraries available from your flake's inputs.
|
|
||||||
lib
|
|
||||||
, # An instance of `pkgs` with your overlays and packages applied is also available.
|
|
||||||
pkgs
|
|
||||||
, # You also have access to your flake's inputs.
|
|
||||||
inputs
|
|
||||||
, # Additional metadata is provided by Snowfall Lib.
|
|
||||||
namespace
|
|
||||||
, # The namespace used for your flake, defaulting to "internal" if not set.
|
|
||||||
system
|
|
||||||
, # The system architecture for this host (eg. `x86_64-linux`).
|
|
||||||
target
|
|
||||||
, # The Snowfall Lib target for this system (eg. `x86_64-iso`).
|
|
||||||
format
|
|
||||||
, # A normalized name for the system target (eg. `iso`).
|
|
||||||
virtual
|
|
||||||
, # A boolean to determine whether this system is a virtual target using nixos-generators.
|
|
||||||
systems
|
|
||||||
, # An attribute map of your defined hosts.
|
|
||||||
# All other arguments come from the module system.
|
|
||||||
config
|
|
||||||
, ...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
inherit (lib) mkIf;
|
|
||||||
inherit (lib.my-namespace) enabled;
|
|
||||||
|
|
||||||
imp = config.my-namespace.home.impermanence.enable;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
config = {
|
|
||||||
home = {
|
|
||||||
packages = with pkgs; [
|
|
||||||
inetutils
|
|
||||||
neofetch
|
|
||||||
tmux
|
|
||||||
# nerdfonts
|
|
||||||
p7zip
|
|
||||||
rclone
|
|
||||||
ripgrep
|
|
||||||
unzip
|
|
||||||
zip
|
|
||||||
];
|
|
||||||
sessionPath = [ "$HOME/bin" "$HOME/.local/bin" ];
|
|
||||||
shellAliases = {
|
|
||||||
# "df" = "duf -only local";
|
|
||||||
# "du" = "dust -xd1 --skip-total";
|
|
||||||
# # "ducks" = "du -chs * 2>/dev/null | sort -rh | head -11 && du -chs .* 2>/dev/null | sort -rh | head -11";
|
|
||||||
# "gmount" = "rclone mount google:/ ~/Drive/";
|
|
||||||
"df" = "df -h";
|
|
||||||
"nano" = "vim";
|
|
||||||
};
|
|
||||||
stateVersion = "24.05";
|
|
||||||
};
|
|
||||||
# manual = {
|
|
||||||
# html.enable = false;
|
|
||||||
# manpages.enable = false;
|
|
||||||
# json.enable = false;
|
|
||||||
# };
|
|
||||||
programs = {
|
|
||||||
bash = {
|
|
||||||
enable = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
enableVteIntegration = true;
|
|
||||||
};
|
|
||||||
dircolors = enabled;
|
|
||||||
direnv = {
|
|
||||||
enable = true;
|
|
||||||
enableBashIntegration = true;
|
|
||||||
nix-direnv = enabled;
|
|
||||||
};
|
|
||||||
home-manager = enabled;
|
|
||||||
};
|
|
||||||
services = { };
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit (lib) mkEnableOption mkIf;
|
|
||||||
cfg = config.my-namespace.home.stream-tools;
|
|
||||||
in {
|
|
||||||
options.my-namespace.home.stream-tools = {
|
|
||||||
enable = mkEnableOption "Enable the Stream Machine Tools";
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
programs.obs-studio = {
|
|
||||||
enable = true;
|
|
||||||
plugins = with pkgs.obs-studio-plugins; [
|
|
||||||
wlrobs
|
|
||||||
obs-backgroundremoval
|
|
||||||
obs-pipewire-audio-capture
|
|
||||||
obs-vaapi #optional AMD hardware acceleration
|
|
||||||
obs-gstreamer
|
|
||||||
obs-vkcapture
|
|
||||||
pkgs.my-namespace.droidcam-obs # Custom override with FFmpeg 6
|
|
||||||
];
|
|
||||||
};
|
|
||||||
home = {
|
|
||||||
packages = with pkgs; [
|
|
||||||
config.programs.obs-studio.finalPackage
|
|
||||||
droidcam
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
|
||||||
let
|
|
||||||
inherit (lib) mkEnableOption mkIf;
|
|
||||||
cfg = config.my-namespace.home.vesktop-appimage;
|
|
||||||
vesktopVersion = "1.6.1";
|
|
||||||
|
|
||||||
vesktopAppImage = pkgs.runCommand "vesktop-appimage" { } ''
|
|
||||||
cp ${pkgs.fetchurl {
|
|
||||||
url = "https://github.com/Vencord/Vesktop/releases/download/v${vesktopVersion}/Vesktop-${vesktopVersion}.AppImage";
|
|
||||||
sha256 = "sha256-zK098H7iiOEe5y5YhgsUCPYVQQPcsnZw6/6q6Nx7h+w=";
|
|
||||||
}} $out
|
|
||||||
chmod +x $out
|
|
||||||
'';
|
|
||||||
|
|
||||||
vesktopWrapped = pkgs.writeShellScriptBin "vesktop" ''
|
|
||||||
exec ${pkgs.appimage-run}/bin/appimage-run ${vesktopAppImage} "$@"
|
|
||||||
'';
|
|
||||||
|
|
||||||
vesktopIcon = pkgs.fetchurl {
|
|
||||||
url = "https://raw.githubusercontent.com/Vencord/Vesktop/main/build/icon.svg";
|
|
||||||
sha256 = "sha256-fQ+dvbPIb4AFd9f7JqIt7+twJdEMQF9jTTwrk5p1vn8=";
|
|
||||||
};
|
|
||||||
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.my-namespace.home.vesktop-appimage = {
|
|
||||||
enable = mkEnableOption "Install Vesktop (AppImage) with Vencord support";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
|
|
||||||
xdg.dataFile."icons/hicolor/scalable/apps/vesktop.svg".source = vesktopIcon;
|
|
||||||
|
|
||||||
home.packages = [
|
|
||||||
pkgs.appimage-run
|
|
||||||
vesktopWrapped
|
|
||||||
];
|
|
||||||
|
|
||||||
xdg.desktopEntries.vesktop = {
|
|
||||||
name = "Vesktop";
|
|
||||||
comment = "Discord client with Vencord (AppImage)";
|
|
||||||
exec = "${vesktopWrapped}/bin/vesktop";
|
|
||||||
icon = "vesktop";
|
|
||||||
terminal = false;
|
|
||||||
type = "Application";
|
|
||||||
categories = [ "Network" "Chat" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,98 +0,0 @@
|
|||||||
{ config, lib, pkgs, namespace, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.${namespace}.desktop-environment;
|
|
||||||
in {
|
|
||||||
|
|
||||||
options.${namespace}.desktop-environment = {
|
|
||||||
xfce = {
|
|
||||||
enable = lib.mkEnableOption "XFCE desktop environment";
|
|
||||||
};
|
|
||||||
gnome = {
|
|
||||||
enable = lib.mkEnableOption "GNOME desktop environment";
|
|
||||||
};
|
|
||||||
kde = {
|
|
||||||
enable = lib.mkEnableOption "KDE Plasma desktop environment";
|
|
||||||
};
|
|
||||||
cosmic = {
|
|
||||||
enable = lib.mkEnableOption "Cosmic desktop environment";
|
|
||||||
};
|
|
||||||
hyprland = {
|
|
||||||
enable = lib.mkEnableOption "hyprland Wayland shell"
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkMerge [
|
|
||||||
(lib.mkIf cfg.xfce.enable {
|
|
||||||
services.xserver = {
|
|
||||||
enable = true;
|
|
||||||
desktopManager = {
|
|
||||||
xfce.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
xfce.xfce4-pulseaudio-plugin
|
|
||||||
xfce.xfce4-clipman-plugin
|
|
||||||
xfce.xfce4-screenshooter
|
|
||||||
xfce.xfce4-whiskermenu-plugin
|
|
||||||
thunar-archive-plugin
|
|
||||||
thunar-volman
|
|
||||||
gvfs
|
|
||||||
gnome-keyring
|
|
||||||
libgnome-keyring
|
|
||||||
];
|
|
||||||
})
|
|
||||||
|
|
||||||
(lib.mkIf cfg.gnome.enable {
|
|
||||||
services.xserver = {
|
|
||||||
enable = true;
|
|
||||||
desktopManager.gnome.enable = true;
|
|
||||||
};
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
gnome-tweaks
|
|
||||||
gnome-software
|
|
||||||
gnomeExtensions.pop-shell
|
|
||||||
gnome-remote-desktop
|
|
||||||
];
|
|
||||||
})
|
|
||||||
|
|
||||||
(lib.mkIf cfg.kde.enable {
|
|
||||||
services.xserver.enable = true;
|
|
||||||
services.desktopManager.plasma6.enable = true;
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
kdePackages.qtwebsockets
|
|
||||||
kdePackages.qtwebchannel
|
|
||||||
kdePackages.korganizer
|
|
||||||
kdePackages.akonadi
|
|
||||||
kdePackages.akonadi-calendar
|
|
||||||
kdePackages.akonadi-contacts
|
|
||||||
kdePackages.kaddressbook
|
|
||||||
kdePackages.kmail
|
|
||||||
kdePackages.kdepim-runtime
|
|
||||||
kdePackages.kontact
|
|
||||||
kdePackages.kidentitymanagement
|
|
||||||
kdePackages.libkdepim
|
|
||||||
kdePackages.kwin
|
|
||||||
kdePackages.plasma-workspace
|
|
||||||
gnome-keyring
|
|
||||||
libgnome-keyring
|
|
||||||
];
|
|
||||||
})
|
|
||||||
(lib.mkIf cfg.cosmic.enable {
|
|
||||||
services.desktopManager.cosmic.enable = true;
|
|
||||||
services.desktopManager.cosmic.xwayland.enable = true;
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
|
|
||||||
gnome-keyring
|
|
||||||
libgnome-keyring
|
|
||||||
];
|
|
||||||
})
|
|
||||||
(lib.mkIf cfg.hyprland.enable {
|
|
||||||
programs.hyprland.enable = true; # enable Hyprland
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
pkgs.kitty # required for the default Hyprland config
|
|
||||||
];
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
{ config, lib, pkgs, namespace, options, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.${namespace}.gnome-keyring;
|
|
||||||
in {
|
|
||||||
options.${namespace}.gnome-keyring = {
|
|
||||||
enable = lib.mkEnableOption "Enable GNOME Keyring integration";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
services.gnome.gnome-keyring.enable = true;
|
|
||||||
|
|
||||||
# PAM configuration for automatic keyring unlock
|
|
||||||
security.pam.services.sddm.enableGnomeKeyring = true;
|
|
||||||
security.pam.services.login.enableGnomeKeyring = true;
|
|
||||||
security.pam.services.gdm.enableGnomeKeyring = true;
|
|
||||||
|
|
||||||
# Make KDE apps use GNOME Keyring as the Secret Service backend
|
|
||||||
environment.variables = {
|
|
||||||
# Set GNOME Keyring as the SSH agent
|
|
||||||
SSH_AUTH_SOCK = "$XDG_RUNTIME_DIR/keyring/ssh";
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
seahorse # GUI for managing the keyring
|
|
||||||
gcr # Keyring integration
|
|
||||||
libsecret # Secret Service API library for KDE apps
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,120 +0,0 @@
|
|||||||
{ config, lib, pkgs, namespace, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.${namespace}.keychron-keyboard;
|
|
||||||
in {
|
|
||||||
options.${namespace}.keychron-keyboard = {
|
|
||||||
enable = lib.mkEnableOption "Enable Keychron keyboard configuration";
|
|
||||||
# Add additional options here, e.g. vendor/product IDs, keymaps, etc.
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
|
|
||||||
# Create the plugdev group and ensure users can access HID devices
|
|
||||||
users.groups.plugdev = {};
|
|
||||||
|
|
||||||
hardware.keyboard.qmk.keychronSupport = true;
|
|
||||||
services.udev.packages = with pkgs; [ qmk qmk-udev-rules ];
|
|
||||||
|
|
||||||
|
|
||||||
# Example udev rule or keychron-specific settings
|
|
||||||
services.udev.extraRules = ''
|
|
||||||
# Atmel DFU
|
|
||||||
### ATmega16U2
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2fef", TAG+="uaccess"
|
|
||||||
### ATmega32U2
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff0", TAG+="uaccess"
|
|
||||||
### ATmega16U4
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff3", TAG+="uaccess"
|
|
||||||
### ATmega32U4
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff4", TAG+="uaccess"
|
|
||||||
### AT90USB64
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff9", TAG+="uaccess"
|
|
||||||
### AT90USB162
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ffa", TAG+="uaccess"
|
|
||||||
### AT90USB128
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ffb", TAG+="uaccess"
|
|
||||||
|
|
||||||
# Input Club
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1c11", ATTRS{idProduct}=="b007", TAG+="uaccess"
|
|
||||||
|
|
||||||
# STM32duino
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1eaf", ATTRS{idProduct}=="0003", TAG+="uaccess"
|
|
||||||
# STM32 DFU
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", TAG+="uaccess"
|
|
||||||
|
|
||||||
# BootloadHID
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05df", TAG+="uaccess"
|
|
||||||
|
|
||||||
# USBAspLoader
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05dc", TAG+="uaccess"
|
|
||||||
|
|
||||||
# USBtinyISP
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1782", ATTRS{idProduct}=="0c9f", TAG+="uaccess"
|
|
||||||
|
|
||||||
# ModemManager should ignore the following devices
|
|
||||||
# Atmel SAM-BA (Massdrop)
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="6124", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
|
||||||
|
|
||||||
# Caterina (Pro Micro)
|
|
||||||
## pid.codes shared PID
|
|
||||||
### Keyboardio Atreus 2 Bootloader
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2302", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
|
||||||
## Spark Fun Electronics
|
|
||||||
### Pro Micro 3V3/8MHz
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9203", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
|
||||||
### Pro Micro 5V/16MHz
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9205", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
|
||||||
### LilyPad 3V3/8MHz (and some Pro Micro clones)
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9207", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
|
||||||
## Pololu Electronics
|
|
||||||
### A-Star 32U4
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1ffb", ATTRS{idProduct}=="0101", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
|
||||||
## Arduino SA
|
|
||||||
### Leonardo
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0036", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
|
||||||
### Micro
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0037", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
|
||||||
## Adafruit Industries LLC
|
|
||||||
### Feather 32U4
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="239a", ATTRS{idProduct}=="000c", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
|
||||||
### ItsyBitsy 32U4 3V3/8MHz
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="239a", ATTRS{idProduct}=="000d", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
|
||||||
### ItsyBitsy 32U4 5V/16MHz
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="239a", ATTRS{idProduct}=="000e", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
|
||||||
## dog hunter AG
|
|
||||||
### Leonardo
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2a03", ATTRS{idProduct}=="0036", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
|
||||||
### Micro
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2a03", ATTRS{idProduct}=="0037", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
|
||||||
|
|
||||||
# hid_listen
|
|
||||||
KERNEL=="hidraw*", MODE="0666", TAG+="uaccess", TAG+="udev-acl"
|
|
||||||
|
|
||||||
# hidraw devices for WebHID (Keychron Launcher, VIA)
|
|
||||||
SUBSYSTEM=="hidraw", MODE="0666", TAG+="uaccess", TAG+="udev-acl"
|
|
||||||
|
|
||||||
# hid bootloaders
|
|
||||||
## QMK HID
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2067", TAG+="uaccess"
|
|
||||||
## PJRC's HalfKay
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="0478", TAG+="uaccess"
|
|
||||||
|
|
||||||
# APM32 DFU
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="314b", ATTRS{idProduct}=="0106", TAG+="uaccess"
|
|
||||||
|
|
||||||
# GD32V DFU
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="28e9", ATTRS{idProduct}=="0189", TAG+="uaccess"
|
|
||||||
|
|
||||||
# WB32 DFU
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="342d", ATTRS{idProduct}=="dfa0", TAG+="uaccess"
|
|
||||||
|
|
||||||
# AT32 DFU
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2e3c", ATTRS{idProduct}=="df11", TAG+="uaccess"
|
|
||||||
'';
|
|
||||||
#
|
|
||||||
# home.file.".config/some-config".text = ''
|
|
||||||
# # keyboard-related configuration
|
|
||||||
# '';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
############################################
|
|
||||||
#
|
|
||||||
# Shared System Configuration module that's always enabled by default courtesy of snowfall lib
|
|
||||||
#
|
|
||||||
############################################
|
|
||||||
{
|
|
||||||
# Snowfall Lib provides a customized `lib` instance with access to your flake's library
|
|
||||||
# as well as the libraries available from your flake's inputs.
|
|
||||||
lib
|
|
||||||
, # An instance of `pkgs` with your overlays and packages applied is also available.
|
|
||||||
pkgs
|
|
||||||
, # You also have access to your flake's inputs.
|
|
||||||
inputs
|
|
||||||
, # Additional metadata is provided by Snowfall Lib.
|
|
||||||
namespace
|
|
||||||
, # The namespace used for your flake, defaulting to "internal" if not set.
|
|
||||||
system
|
|
||||||
, # The system architecture for this host (eg. `x86_64-linux`).
|
|
||||||
target
|
|
||||||
, # The Snowfall Lib target for this system (eg. `x86_64-iso`).
|
|
||||||
format
|
|
||||||
, # A normalized name for the system target (eg. `iso`).
|
|
||||||
virtual
|
|
||||||
, # A boolean to determine whether this system is a virtual target using nixos-generators.
|
|
||||||
systems
|
|
||||||
, # An attribute map of your defined hosts.
|
|
||||||
|
|
||||||
# All other arguments come from the module system.
|
|
||||||
config
|
|
||||||
, ...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
inherit (lib) mkIf;
|
|
||||||
inherit (lib.my-namespace) enabled;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
config = {
|
|
||||||
boot = { };
|
|
||||||
console = { };
|
|
||||||
environment = {
|
|
||||||
systemPackages =
|
|
||||||
(with pkgs; [
|
|
||||||
age
|
|
||||||
wget
|
|
||||||
sops
|
|
||||||
bitwarden-desktop #replaced bitwarden
|
|
||||||
bitwarden-cli
|
|
||||||
cowsay
|
|
||||||
remmina
|
|
||||||
]);
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
{
|
|
||||||
# Snowfall Lib provides a customized `lib` instance with access to your flake's library
|
|
||||||
# as well as the libraries available from your flake's inputs.
|
|
||||||
lib,
|
|
||||||
# An instance of `pkgs` with your overlays and packages applied is also available.
|
|
||||||
pkgs,
|
|
||||||
# You also have access to your flake's inputs.
|
|
||||||
inputs,
|
|
||||||
# Additional metadata is provided by Snowfall Lib.
|
|
||||||
# The namespace used for your flake, defaulting to "internal" if not set.
|
|
||||||
namespace,
|
|
||||||
# The system architecture for this host (eg. `x86_64-linux`).
|
|
||||||
system,
|
|
||||||
# The Snowfall Lib target for this system (eg. `x86_64-iso`).
|
|
||||||
target,
|
|
||||||
# A normalized name for the system target (eg. `iso`).
|
|
||||||
format,
|
|
||||||
# A boolean to determine whether this system is a virtual target using nixos-generators.
|
|
||||||
virtual,
|
|
||||||
# An attribute map of your defined hosts.
|
|
||||||
systems,
|
|
||||||
# All other arguments come from the system system.
|
|
||||||
config
|
|
||||||
, ...
|
|
||||||
}:{
|
|
||||||
config = {
|
|
||||||
# programs.gamescope = {
|
|
||||||
# enable = true;
|
|
||||||
# capSysNice = true;
|
|
||||||
# };
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
protonup-ng # Tool to install and manage Proton-GE
|
|
||||||
lutris
|
|
||||||
vkd3d
|
|
||||||
dxvk
|
|
||||||
corefonts
|
|
||||||
protontricks
|
|
||||||
mangohud
|
|
||||||
vkbasalt
|
|
||||||
gamescope
|
|
||||||
];
|
|
||||||
programs.steam = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.steam.override {
|
|
||||||
extraPkgs = pkgs: with pkgs; [
|
|
||||||
gamemode
|
|
||||||
];
|
|
||||||
};
|
|
||||||
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
|
||||||
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
|
||||||
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
|
|
||||||
|
|
||||||
# gamescopeSession = {
|
|
||||||
# enable = true;
|
|
||||||
# env = {
|
|
||||||
# WLR_RENDERER = "vulkan";
|
|
||||||
# DXVK_HDR = "0 ";
|
|
||||||
# ENABLE_GAMESCOPE_WSI = "0";
|
|
||||||
# WINE_FULLSCREEN_FSR = "1";
|
|
||||||
# # Games allegedly prefer X11
|
|
||||||
# SDL_VIDEODRIVER = "x11";
|
|
||||||
# };
|
|
||||||
# args = [
|
|
||||||
# "--xwayland-count 1"
|
|
||||||
# "--expose-wayland"
|
|
||||||
|
|
||||||
# "-e" # Enable steam integration
|
|
||||||
# "--steam"
|
|
||||||
|
|
||||||
# # "--adaptive-sync"
|
|
||||||
# # "--hdr-enabled"
|
|
||||||
# # "--hdr-itm-enable"
|
|
||||||
|
|
||||||
# # External monitor
|
|
||||||
# "--prefer-output DP-3"
|
|
||||||
# "--output-width 1920"
|
|
||||||
# "--output-height 1080"
|
|
||||||
# "-r 172"
|
|
||||||
|
|
||||||
# # Laptop display
|
|
||||||
# # "--prefer-output eDP-1"
|
|
||||||
# # "--output-width 2560"
|
|
||||||
# # "--output-height 1600"
|
|
||||||
# # "-r 120"
|
|
||||||
|
|
||||||
# # "--prefer-vk-device 10de:1b81" # lspci -nn | grep VGA
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
{ lib, pkgs, inputs, config, namespace, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
# Import the plugin as a package derivation from your local repo
|
|
||||||
# Pass the 'inputs' parameter explicitly to make wallpaper-engine-plugin-src available
|
|
||||||
wallpaperEnginePkg = pkgs.callPackage ../../../packages/wallpaper-engine-kde-plugin/default.nix { inherit inputs; };
|
|
||||||
in {
|
|
||||||
options.${namespace}.wallpaper-engine-kde-plugin.enable =
|
|
||||||
lib.mkEnableOption "Enable Wallpaper Engine KDE plugin";
|
|
||||||
|
|
||||||
config = lib.mkIf config.${namespace}.wallpaper-engine-kde-plugin.enable {
|
|
||||||
# Add the imported package and helper script to systemPackages
|
|
||||||
environment.systemPackages = [
|
|
||||||
wallpaperEnginePkg
|
|
||||||
(pkgs.writeShellScriptBin "wallpaper-engine-kde-setup" ''
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
STEAM_DIR="$HOME/.local/share/Steam"
|
|
||||||
WORKSHOP_PATH="$STEAM_DIR/steamapps/workshop/content/431960"
|
|
||||||
|
|
||||||
echo "Wallpaper Engine KDE Plugin Setup Helper"
|
|
||||||
echo "========================================"
|
|
||||||
|
|
||||||
# Check if Steam directory exists
|
|
||||||
if [ -d "$STEAM_DIR" ]; then
|
|
||||||
echo "✅ Steam directory found at: $STEAM_DIR"
|
|
||||||
|
|
||||||
if [ -d "$WORKSHOP_PATH" ]; then
|
|
||||||
echo "✅ Workshop content directory found at: $WORKSHOP_PATH"
|
|
||||||
echo " You can use this path in the wallpaper settings."
|
|
||||||
else
|
|
||||||
echo "⚠️ Workshop content directory not found at the expected location."
|
|
||||||
echo " Please locate your Steam workshop content for Wallpaper Engine (app ID 431960)"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "⚠️ Steam directory not found at: $STEAM_DIR"
|
|
||||||
echo " Please install Steam and Wallpaper Engine first."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check symlinks
|
|
||||||
if [ -L "$HOME/.local/share/plasma/wallpapers/com.github.catsout.wallpaperEngineKde" ]; then
|
|
||||||
echo "✅ Plugin symlink is correctly set up"
|
|
||||||
else
|
|
||||||
echo "⚠️ Plugin symlink not found, attempting to create it..."
|
|
||||||
mkdir -p "$HOME/.local/share/plasma/wallpapers"
|
|
||||||
ln -sf /run/current-system/sw/share/plasma/wallpapers/com.github.catsout.wallpaperEngineKde \
|
|
||||||
"$HOME/.local/share/plasma/wallpapers/com.github.catsout.wallpaperEngineKde"
|
|
||||||
echo " Done! Symlink created."
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo "To use Wallpaper Engine wallpapers in KDE:"
|
|
||||||
echo "1. Right-click on desktop → Configure Desktop and Wallpaper"
|
|
||||||
echo "2. Select 'Wallpaper Engine' from the wallpaper type list"
|
|
||||||
echo "3. Set the path to your workshop content directory"
|
|
||||||
'')
|
|
||||||
];
|
|
||||||
|
|
||||||
systemd.user.services.wallpaperEngineSymlink = {
|
|
||||||
description = "Symlink Wallpaper Engine plugin for Plasma";
|
|
||||||
wantedBy = [ "graphical-session.target" ];
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "oneshot";
|
|
||||||
ExecStartPre = "${pkgs.coreutils}/bin/mkdir -p %h/.local/share/plasma/wallpapers";
|
|
||||||
ExecStart = "${pkgs.coreutils}/bin/ln -sfn /run/current-system/sw/share/plasma/wallpapers/com.github.catsout.wallpaperEngineKde %h/.local/share/plasma/wallpapers/com.github.catsout.wallpaperEngineKde";
|
|
||||||
RemainAfterExit = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
|
|
||||||
final: prev: {
|
|
||||||
mbedtls_2 = prev.mbedtls_2.overrideAttrs (oldAttrs: {
|
|
||||||
doCheck = false; # Skip failing PSA crypto tests
|
|
||||||
});
|
|
||||||
|
|
||||||
haxe = prev.haxe.overrideAttrs (oldAttrs: {
|
|
||||||
buildInputs = (oldAttrs.buildInputs or []) ++ [ final.mbedtls_2 ];
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
|
|
||||||
final: prev: {
|
|
||||||
synergy = prev.synergy.overrideAttrs (oldAttrs: {
|
|
||||||
postPatch = (oldAttrs.postPatch or "") + ''
|
|
||||||
# Fix deprecated Qt endl usage in QTextStream contexts only
|
|
||||||
# Don't touch cerr/cout which use std::endl
|
|
||||||
find . -name "*.cpp" -type f -exec sed -i \
|
|
||||||
's/\(outStream.*<<.*\)endl/\1Qt::endl/g; s/\(QTextStream.*<<.*\)endl/\1Qt::endl/g' {} +
|
|
||||||
find . -name "*.h" -type f -exec sed -i \
|
|
||||||
's/\(outStream.*<<.*\)endl/\1Qt::endl/g; s/\(QTextStream.*<<.*\)endl/\1Qt::endl/g' {} +
|
|
||||||
|
|
||||||
# Fix missing SIZE_MAX include
|
|
||||||
sed -i '/#include <cstring>/a#include <cstdint>' src/lib/server/InputFilter.cpp
|
|
||||||
'';
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
stdenv,
|
|
||||||
fetchurl,
|
|
||||||
autoPatchelfHook,
|
|
||||||
namespace,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "droidcam-obs";
|
|
||||||
version = "2.4.1";
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://github.com/dev47apps/droidcam-obs-plugin/releases/download/${version}/droidcam_obs_${version}_linux_x86_64.zip";
|
|
||||||
sha256 = "sha256-18IjC3+WR5XLo464RuwAtWRNSpQcsnarXu56CrxCMhM=";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgs.unzip autoPatchelfHook ];
|
|
||||||
|
|
||||||
buildInputs = with pkgs; [
|
|
||||||
stdenv.cc.cc.lib
|
|
||||||
obs-studio
|
|
||||||
];
|
|
||||||
|
|
||||||
dontBuild = true;
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
mkdir -p $out/lib/obs-plugins
|
|
||||||
mkdir -p $out/share/obs/obs-plugins/droidcam-obs
|
|
||||||
|
|
||||||
cp bin/64bit/*.so $out/lib/obs-plugins/
|
|
||||||
cp -r data/* $out/share/obs/obs-plugins/droidcam-obs/
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "DroidCam OBS Plugin - Use your phone as a camera in OBS (FFmpeg 7 compatible)";
|
|
||||||
homepage = "https://www.dev47apps.com/obs/";
|
|
||||||
license = licenses.unfree;
|
|
||||||
platforms = platforms.linux;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,69 +0,0 @@
|
|||||||
{
|
|
||||||
# Snowfall Lib provides a customized `lib` instance with access to your flake's library
|
|
||||||
# as well as the libraries available from your flake's inputs.
|
|
||||||
lib,
|
|
||||||
# You also have access to your flake's inputs.
|
|
||||||
inputs,
|
|
||||||
|
|
||||||
# The namespace used for your flake, defaulting to "internal" if not set.
|
|
||||||
namespace,
|
|
||||||
|
|
||||||
# All other arguments come from NixPkgs. You can use `pkgs` to pull packages or helpers
|
|
||||||
# programmatically or you may add the named attributes as arguments here.
|
|
||||||
stdenv,
|
|
||||||
fetchurl,
|
|
||||||
nixos,
|
|
||||||
callPackage,
|
|
||||||
testers,
|
|
||||||
versionCheckHook,
|
|
||||||
hello,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
|
||||||
pname = "hello";
|
|
||||||
version = "2.12.1";
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "mirror://gnu/hello/hello-${finalAttrs.version}.tar.gz";
|
|
||||||
hash = "sha256-jZkUKv2SV28wsM18tCqNxoCZmLxdYH2Idh9RLibH2yA=";
|
|
||||||
};
|
|
||||||
|
|
||||||
# The GNU Hello `configure` script detects how to link libiconv but fails to actually make use of that.
|
|
||||||
# Unfortunately, this cannot be a patch to `Makefile.am` because `autoreconfHook` causes a gettext
|
|
||||||
# infrastructure mismatch error when trying to build `hello`.
|
|
||||||
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
|
|
||||||
NIX_LDFLAGS = "-liconv";
|
|
||||||
};
|
|
||||||
|
|
||||||
doCheck = true;
|
|
||||||
|
|
||||||
doInstallCheck = true;
|
|
||||||
nativeInstallCheckInputs = [
|
|
||||||
versionCheckHook
|
|
||||||
];
|
|
||||||
|
|
||||||
# Give hello some install checks for testing purpose.
|
|
||||||
postInstallCheck = ''
|
|
||||||
stat "''${!outputBin}/bin/${finalAttrs.meta.mainProgram}"
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru.tests = {
|
|
||||||
version = testers.testVersion { package = hello; };
|
|
||||||
};
|
|
||||||
|
|
||||||
passthru.tests.run = callPackage ./test.nix { hello = finalAttrs.finalPackage; };
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Program that produces a familiar, friendly greeting";
|
|
||||||
longDescription = ''
|
|
||||||
GNU Hello is a program that prints "Hello, world!" when you run it.
|
|
||||||
It is fully customizable.
|
|
||||||
'';
|
|
||||||
homepage = "https://www.gnu.org/software/hello/manual/";
|
|
||||||
changelog = "https://git.savannah.gnu.org/cgit/hello.git/plain/NEWS?h=v${finalAttrs.version}";
|
|
||||||
license = lib.licenses.gpl3Plus;
|
|
||||||
maintainers = with lib.maintainers; [ stv0g ];
|
|
||||||
mainProgram = "hello";
|
|
||||||
platforms = lib.platforms.all;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{ runCommand, hello }:
|
|
||||||
|
|
||||||
runCommand "hello-test-run" {
|
|
||||||
nativeBuildInputs = [ hello ];
|
|
||||||
} ''
|
|
||||||
diff -U3 --color=auto <(hello) <(echo 'Hello, world!')
|
|
||||||
touch $out
|
|
||||||
''
|
|
||||||
@@ -1,135 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
stdenv,
|
|
||||||
fetchFromGitHub,
|
|
||||||
autoPatchelfHook,
|
|
||||||
cmake,
|
|
||||||
file,
|
|
||||||
pkg-config,
|
|
||||||
python3,
|
|
||||||
SDL2,
|
|
||||||
SDL2_mixer,
|
|
||||||
cef-binary,
|
|
||||||
egl-wayland,
|
|
||||||
ffmpeg,
|
|
||||||
fftw,
|
|
||||||
glew,
|
|
||||||
glfw,
|
|
||||||
glm,
|
|
||||||
gmp,
|
|
||||||
kissfftFloat,
|
|
||||||
libxau,
|
|
||||||
libxdmcp,
|
|
||||||
libxpm,
|
|
||||||
libxrandr,
|
|
||||||
libxxf86vm,
|
|
||||||
libdecor,
|
|
||||||
libffi,
|
|
||||||
libglut,
|
|
||||||
libpng,
|
|
||||||
libpulseaudio,
|
|
||||||
lz4,
|
|
||||||
mpv,
|
|
||||||
wayland,
|
|
||||||
wayland-protocols,
|
|
||||||
wayland-scanner,
|
|
||||||
zlib,
|
|
||||||
nix-update-script,
|
|
||||||
inputs,
|
|
||||||
namespace, ...
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
|
||||||
cef = cef-binary.override {
|
|
||||||
version = "135.0.17"; # follow upstream. https://github.com/Almamu/linux-wallpaperengine/blob/b39f12757908eda9f4c1039613b914606568bb84/CMakeLists.txt#L47
|
|
||||||
gitRevision = "cbc1c5b";
|
|
||||||
chromiumVersion = "135.0.7049.52";
|
|
||||||
|
|
||||||
srcHashes = {
|
|
||||||
aarch64-linux = "sha256-LK5JvtcmuwCavK7LnWmMF2UDpM5iIZOmsuZS/t9koDs=";
|
|
||||||
x86_64-linux = "sha256-JKwZgOYr57GuosM31r1Lx3DczYs35HxtuUs5fxPsTcY=";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
|
||||||
pname = "linux-wallpaperengine";
|
|
||||||
version = "0-unstable-2025-12-19";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "Almamu";
|
|
||||||
repo = "linux-wallpaperengine";
|
|
||||||
rev = "f79c29f067b2613895419e351033582464577154";
|
|
||||||
fetchSubmodules = true;
|
|
||||||
hash = "sha256-AISdouVqMXTYErQoT7oM5H+vlrw03NtpI9FqDwZ0J9A=";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
autoPatchelfHook
|
|
||||||
cmake
|
|
||||||
file
|
|
||||||
pkg-config
|
|
||||||
python3
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
SDL2
|
|
||||||
SDL2_mixer
|
|
||||||
egl-wayland
|
|
||||||
ffmpeg
|
|
||||||
fftw
|
|
||||||
glew
|
|
||||||
glfw
|
|
||||||
glm
|
|
||||||
gmp
|
|
||||||
kissfftFloat
|
|
||||||
libxau
|
|
||||||
libxdmcp
|
|
||||||
libxpm
|
|
||||||
libxrandr
|
|
||||||
libxxf86vm
|
|
||||||
libdecor
|
|
||||||
libffi
|
|
||||||
libglut
|
|
||||||
libpng
|
|
||||||
libpulseaudio
|
|
||||||
lz4
|
|
||||||
mpv
|
|
||||||
wayland
|
|
||||||
wayland-protocols
|
|
||||||
wayland-scanner
|
|
||||||
zlib
|
|
||||||
];
|
|
||||||
|
|
||||||
cmakeFlags = [
|
|
||||||
"-DCEF_ROOT=${cef}"
|
|
||||||
"-DCMAKE_INSTALL_PREFIX=${placeholder "out"}/share/linux-wallpaperengine"
|
|
||||||
];
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
rm -rf $out/bin $out/lib $out/include
|
|
||||||
chmod 755 $out/share/linux-wallpaperengine/linux-wallpaperengine
|
|
||||||
mkdir $out/bin
|
|
||||||
ln -s $out/share/linux-wallpaperengine/linux-wallpaperengine $out/bin/linux-wallpaperengine
|
|
||||||
'';
|
|
||||||
|
|
||||||
preFixup = ''
|
|
||||||
find $out/share/linux-wallpaperengine -type f -exec file {} \; | grep 'ELF' | cut -d: -f1 | while read -r elf_file; do
|
|
||||||
patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$elf_file"
|
|
||||||
done
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Wallpaper Engine backgrounds for Linux";
|
|
||||||
homepage = "https://github.com/Almamu/linux-wallpaperengine";
|
|
||||||
license = lib.licenses.gpl3Plus;
|
|
||||||
mainProgram = "linux-wallpaperengine";
|
|
||||||
maintainers = [ ];
|
|
||||||
platforms = [
|
|
||||||
"x86_64-linux"
|
|
||||||
"aarch64-linux"
|
|
||||||
];
|
|
||||||
hydraPlatforms = [ "x86_64-linux" ]; # Hydra "aarch64-linux" fails with "Output limit exceeded"
|
|
||||||
};
|
|
||||||
})
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
{
|
|
||||||
# Snowfall Lib provides a customized `lib` instance with access to your flake's library
|
|
||||||
# as well as the libraries available from your flake's inputs.
|
|
||||||
lib,
|
|
||||||
# You also have access to your flake's inputs.
|
|
||||||
inputs,
|
|
||||||
|
|
||||||
# The namespace used for your flake, defaulting to "internal" if not set.
|
|
||||||
namespace,
|
|
||||||
|
|
||||||
# All other arguments come from NixPkgs. You can use `pkgs` to pull packages or helpers
|
|
||||||
# programmatically or you may add the named attributes as arguments here.
|
|
||||||
pkgs,
|
|
||||||
stdenv,
|
|
||||||
fetchFromGitHub,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
pname = "steelseries-udev-rules";
|
|
||||||
version = "unstable-2024-11-10";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "MiddleMan5";
|
|
||||||
repo = "steelseries-linux";
|
|
||||||
rev = "d93dfdb6daeec150578e85e25b2e9df79e9539b7";
|
|
||||||
sha256 = "sha256-yPw8QFKhlqb6lxQyYjBz34pEEfTVk1Yp9jFWdX5yH2k=";
|
|
||||||
};
|
|
||||||
|
|
||||||
dontBuild = true;
|
|
||||||
dontConfigure = true;
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/lib/udev/rules.d
|
|
||||||
cp resources/98-steelseries.rules $out/lib/udev/rules.d/98-steelseries.rules
|
|
||||||
mkdir -p $out/etc/udev/rules.d
|
|
||||||
cp resources/98-steelseries-init.py $out/etc/udev/rules.d/98-steelseries-init.py
|
|
||||||
chmod +x $out/etc/udev/rules.d/98-steelseries-init.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "udev rules for Steelseries devices";
|
|
||||||
license = licenses.unfree;
|
|
||||||
maintainers = with maintainers; [ asymmetric ];
|
|
||||||
platforms = platforms.linux;
|
|
||||||
homepage = "https://github.com/MiddleMan5/steelseries-linux";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
51
secrets.yaml
51
secrets.yaml
@@ -1,51 +0,0 @@
|
|||||||
private-keys:
|
|
||||||
andreas: ENC[AES256_GCM,data:UMOMU5vd+kOvReBP+noCPopsP90uAx0UM5mLgsXX1obks3DvcW28yVpLR952CroDzUOYwpkQ+7MheBznZxVfG6+b36rzphIUyDXArix3c90mak+4fhkUFAxsAW2VeKzUTGEBIUiejtfW4sBaHoQVWpDBSLbGajB9GzBXspNR+J/nriD8xas9ZkvYvFM4BIKM5vFNQxCGUy44IyHffxtX9kHjboiSeIgK7Gj1hA4iC/byIBqTLzJOCBHQs3irs/CSbZgFR7MFuiqR2ZWVdJ1dKAr9fejd36muymsutVUDzTsq/P1Id0YlgnYVcpJxAMHKq8QEZu8yNLEzkr/QMxs5Z2Bu93CkiJDAGXJZvtipfLX0UtIkResCLBD40EKty8U2OnKwm4k3xzJoHRTZ3qVnJQGESYHTZHHumRRcDYJnQBL6iav50mG0KS0mfcoetoDTpQfxsi3OnLO7kjSP2fE8sSJRi363nfciBwH/TTf911HhD5ruOo3bQeryjtGN8Y+PAqvrILiIKPODvoRVqaka,iv:lvlaQwEzDpvdSjH6Z4NrzABifyVP5jyzERHP72CSbis=,tag:rmSINraNXFZElfFHZDqeeQ==,type:str]
|
|
||||||
andreas-password: ENC[AES256_GCM,data:XBvfrBSrlKzpO9vgmwQYJshlJH1OCMrcdfYMvp32ZOFZSf4/GrM/FRaatS7to+0ZgJlLNt+npSK0nwV8NXvwgHgN8bsuDiL7KQ==,iv:lD0ruX5AVKVfdA0/vpeUAPf5cTSExyaF8VWebFkbXV8=,tag:nAuwEkHGtlEzu8Qbe0ECdA==,type:str]
|
|
||||||
#ENC[AES256_GCM,data:aX2EVkOK7ivoDTzSMmonY64dU6mnRjE83sA3MFIPnzeJ5snZN8WY9PF1CmkDU/ZVB+j9Law=,iv:sPfVyBuGCyd/Y9Lw9cl0akA2IUE5/Yi5C07dh6Ioyu0=,tag:tOT5uHVdgYG+/E4ye0QcFg==,type:comment]
|
|
||||||
#ENC[AES256_GCM,data:djH8vAA+TvvbA/Jsuvca7E4o6pYTfKGGdK4=,iv:5Dw0niDhi7P6P9XRz2qgSL3CxpiXBtIsekOMycroLrA=,tag:OSvPPgq0kV4JskrQ86Qp5A==,type:comment]
|
|
||||||
#ENC[AES256_GCM,data:C1BstOPXnCf4Cr8UlanCegA=,iv:k9Me959xb6Weg/yArAIg5kWH36se/yyGWNQUu314uw0=,tag:x0bTh0bsYxbCX5GObsGI5g==,type:comment]
|
|
||||||
#ENC[AES256_GCM,data:Q0vsUrzlOgDICeIxXtc=,iv:gR8sYrtE/v9GGDEO2nj/v5IHr9ycXhvv1VcB/dEH/FU=,tag:FBde9vkRM/drFtpTWfLcNg==,type:comment]
|
|
||||||
#ENC[AES256_GCM,data:LoKuLBSze19z0U/45DBFt6aEJBs=,iv:Btk0sBgj8h5Qk5eYNwPHULuhPu0nXSXE2iR4UVFcBeA=,tag:S2I9HQkeo/jJboy44vrgCw==,type:comment]
|
|
||||||
#ENC[AES256_GCM,data:wDZ6Ln5teASPxXPvQGRZCdBIvfY=,iv:Qnx32skeDMB21GwhXd5fImkHS+y+HUOdNvbMT2mpy6A=,tag:BKl04542M8rH6BpFERqHZg==,type:comment]
|
|
||||||
#ENC[AES256_GCM,data:f+g7qdm8xf/wDhQqlnzIdmHhzfOG73VWfdw=,iv:/kDspwnXH7QfhzUuHATQTniLm/ZX6mo/QGxyQXdubcY=,tag:muoXeMNHb5vqm8IoC6Gl4A==,type:comment]
|
|
||||||
#ENC[AES256_GCM,data:42kR+DANphdxNVWNlxePU8U=,iv:JeZgMtb7a+/7V5hruQIHio0Aj+ThpHZwajx10e0rqOA=,tag:Ln+7DFl6+aq4YLZ8GK9qOg==,type:comment]
|
|
||||||
#ENC[AES256_GCM,data:DjK/fZDWEaa2BA==,iv:AnceR62V3OJrn5utgdffMcC+mWdxsUYMYn6454SVCsY=,tag:MRa8cDMEMGtBCxvqcKy/0Q==,type:comment]
|
|
||||||
#ENC[AES256_GCM,data:jqzidzai+6ShhzM=,iv:PDjUgLaoFVxAWBLXfWkXRzBp5BuvGU7DCorRYY6dan0=,tag:dKa2O7n/jno/M5nzCzCD/w==,type:comment]
|
|
||||||
sops:
|
|
||||||
kms: []
|
|
||||||
gcp_kms: []
|
|
||||||
azure_kv: []
|
|
||||||
hc_vault: []
|
|
||||||
age:
|
|
||||||
- recipient: age19j24x89dfh4f7v58c8k64yupqas4f7qkkyper7yj9dd7vqwvvq0qkyvhxk
|
|
||||||
enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSB4U204eXIyaDJFMXIweXp1
|
|
||||||
NEhoYU5qa3B5Q1VpODNsSEpuT0txRWpuVDM0CmptVHNFQkpWTkJ2M3B4dWpWN0s4
|
|
||||||
ZjRuc3BhckVLSzFuOGJ3WTB0YnRRRDgKLS0tIHlaSUxITUlGU3VaRWZFbENUTVY2
|
|
||||||
SWVwUGVxcGJscG5PalphZFVIS1ZjY2MKi4VvrNW1AH+fJaI/rzOltPylSiY1z3nS
|
|
||||||
ebrYdpyM5KKQ46uezvU4J3Qau/Inv8CkZ72vHlQ6EK2kmmZZLszwJg==
|
|
||||||
-----END AGE ENCRYPTED FILE-----
|
|
||||||
- recipient: age1ma8x6wugvc40mkst33mejq0m6r44jk6zwjjun3znyer5nztgn9vs0nwjx4
|
|
||||||
enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSAyVHVwMEZjVk8xMTNIekF1
|
|
||||||
ZFlZbFhvOTJSbVN4ZmorSmFCbkxBUUxOOERJCjBjMkdxQ0V4OXEwdGF2Sno4VTh2
|
|
||||||
MURQMUhQV083M3lpREFRM2Qza3JLN0kKLS0tIEFoeUVsL3poajljMDEwTCtWcXRD
|
|
||||||
Y3NHNmVDZFZuNjlUUDdMa3N3ZVNTWkUKeO4sT0ZyTAyrMKj27fbFhQZ+bDMru6Bk
|
|
||||||
j4Im41l9ClpIVQt8iz61mwKrm+QmBA9r1aL34u3lGQyKBOk4vq/m9A==
|
|
||||||
-----END AGE ENCRYPTED FILE-----
|
|
||||||
- recipient: age1s5qwsuc3e4m3c4w5hl6tyja70w273gr60j9j9dcpc6mz69lemg3qpwud3h
|
|
||||||
enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBUT3dKNk4rSVZUck5LZ2t1
|
|
||||||
eUhPSXBURUFGbnU4NUtjMVVpeGI5eVI1SVc4CkdTY25jTy91VFhLS1F3V3ZzM1A4
|
|
||||||
OGMxWmtWd1lVU3dZcG8xWlRwYkorSU0KLS0tIE12WlFyUWZ0dHYvTEd0N0tPWUt1
|
|
||||||
bldpMnp5cnpXN2J5MEc5cC9DZktEekUKC6sei7v252fZyW8sd1xuZDjwoJFCKGot
|
|
||||||
t9f+jUDOx5wGlH53Fd2jCRArKZkQ850sFj79Lh2Rx6wbDj1Ks5XcVA==
|
|
||||||
-----END AGE ENCRYPTED FILE-----
|
|
||||||
lastmodified: "2024-12-10T04:12:19Z"
|
|
||||||
mac: ENC[AES256_GCM,data:AcuCxKGm9xLgn/gnk0XDVtLM5PWQvgGd+qXusuvwCUV4ln1//Lpwpp3TL0mEMdwEcFOdCasW4A10rGpCoBqKsckroiUSEB0G2p0vrD3b3Vmo804JYcKmSZ85InZCXUWenfOTEzx/A1ruqSBSkRYro+NdyZ/+JXQVXnTLCPesgwE=,iv:UPRNsfeUKnml9OFkkqrI0fI4f/RWN2ovTsaItwT8Y0c=,tag:75NEPjeAXUwlCPGbLPhPFg==,type:str]
|
|
||||||
pgp: []
|
|
||||||
unencrypted_suffix: _unencrypted
|
|
||||||
version: 3.9.1
|
|
||||||
29
shell.nix
29
shell.nix
@@ -1,29 +0,0 @@
|
|||||||
let
|
|
||||||
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-24.05";
|
|
||||||
pkgs = import nixpkgs { config = { }; overlays = [ ]; };
|
|
||||||
in
|
|
||||||
|
|
||||||
pkgs.mkShellNoCC {
|
|
||||||
packages = with pkgs; [
|
|
||||||
cowsay
|
|
||||||
lolcat
|
|
||||||
bitwarden-desktop #replaced bitwarden
|
|
||||||
bitwarden-cli
|
|
||||||
sops
|
|
||||||
];
|
|
||||||
|
|
||||||
GREETING = "Hello, Nix!";
|
|
||||||
|
|
||||||
shellHook = ''
|
|
||||||
echo $GREETING | cowsay | lolcat
|
|
||||||
bw config server https://vault.subsonics.nl
|
|
||||||
echo "please enter bitwarden email"
|
|
||||||
read BW_USER
|
|
||||||
echo "please enter bitwarden password"
|
|
||||||
read -s BW_PASSWORD
|
|
||||||
bw login $BW_USER $BW_PASSWORD
|
|
||||||
BW_SESSION="$(bw unlock $BW_PASSWORD --raw)"
|
|
||||||
mkdir -p ~/.config/sops/age
|
|
||||||
bw get attachment keys.txt --itemid ee6a90b0-4120-46f7-a1c6-9648316e43d5 --output ~/.config/sops/age/keys.txt
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
||||||
];
|
];
|
||||||
networking.hostName = "drivebystation-nixos-wsl";
|
|
||||||
|
|
||||||
# Enable Experimental Features
|
# Enable Experimental Features
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
@@ -44,25 +44,29 @@
|
|||||||
LC_TELEPHONE = "nl_NL.UTF-8";
|
LC_TELEPHONE = "nl_NL.UTF-8";
|
||||||
LC_TIME = "nl_NL.UTF-8";
|
LC_TIME = "nl_NL.UTF-8";
|
||||||
};
|
};
|
||||||
# Enable the X11 windowing system
|
|
||||||
|
# Enable the X11 windowing system.
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
# Enable the GNOME Desktop Environment
|
|
||||||
|
# Enable the GNOME Desktop Environment.
|
||||||
services.xserver.displayManager.gdm.enable = true;
|
services.xserver.displayManager.gdm.enable = true;
|
||||||
services.xserver.desktopManager.gnome.enable = true;
|
services.xserver.desktopManager.gnome.enable = true;
|
||||||
|
|
||||||
# Configure keymap in X11
|
# Configure keymap in X11
|
||||||
services.xserver.xkb = {
|
services.xserver.xkb = {
|
||||||
layout = "us";
|
layout = "us";
|
||||||
variant = "intl";
|
variant = "intl";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configure console keymap
|
# Configure console keymap
|
||||||
console.keyMap = "us-acentos";
|
console.keyMap = "us-acentos";
|
||||||
# Enable CUPS to print documents
|
|
||||||
|
# Enable CUPS to print documents.
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
# Enable sound with pulse (pipewire)
|
|
||||||
|
# Enable sound with pipewire.
|
||||||
hardware.pulseaudio.enable = false;
|
hardware.pulseaudio.enable = false;
|
||||||
# Enable realtimekit (pulse requirement)
|
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
# Configure pipewire service
|
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
@@ -102,4 +106,5 @@
|
|||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "24.05"; # Did you read the comment?
|
system.stateVersion = "24.05"; # Did you read the comment?
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,204 +0,0 @@
|
|||||||
# Edit this configuration file to define what should be installed on
|
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
|
||||||
|
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./hardware/hardware-configuration.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
# Bootloader.
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
networking.hostName = "drivebystation-nix"; # Define your hostname.
|
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
||||||
|
|
||||||
# Configure network proxy if necessary
|
|
||||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
|
||||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
|
||||||
|
|
||||||
# Enable networking
|
|
||||||
networking.networkmanager.enable = true;
|
|
||||||
|
|
||||||
# Set your time zone.
|
|
||||||
time.timeZone = "Europe/Amsterdam";
|
|
||||||
|
|
||||||
# Select internationalisation properties.
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
|
|
||||||
i18n.extraLocaleSettings = {
|
|
||||||
LC_ADDRESS = "nl_NL.UTF-8";
|
|
||||||
LC_IDENTIFICATION = "nl_NL.UTF-8";
|
|
||||||
LC_MEASUREMENT = "nl_NL.UTF-8";
|
|
||||||
LC_MONETARY = "nl_NL.UTF-8";
|
|
||||||
LC_NAME = "nl_NL.UTF-8";
|
|
||||||
LC_NUMERIC = "nl_NL.UTF-8";
|
|
||||||
LC_PAPER = "nl_NL.UTF-8";
|
|
||||||
LC_TELEPHONE = "nl_NL.UTF-8";
|
|
||||||
LC_TIME = "nl_NL.UTF-8";
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
|
||||||
# Enable Gnome Session
|
|
||||||
displayManager.gdm.enable = false;
|
|
||||||
displayManager.sddm.enable = false;
|
|
||||||
# displayManager.sddm.wayland.enable = true;
|
|
||||||
services.displayManager.cosmic-greeter.enable = true;
|
|
||||||
displayManager.defaultSession = "gnome";
|
|
||||||
|
|
||||||
xserver = {
|
|
||||||
enable = true; # Enable the deprecated X11 teletype terminal connection system.
|
|
||||||
# Configure Display Manager
|
|
||||||
displayManager = {
|
|
||||||
lightdm.enable = false;
|
|
||||||
};
|
|
||||||
# Configure keymap in X11
|
|
||||||
xkb = {
|
|
||||||
layout = "us";
|
|
||||||
variant = "intl";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Specify first device section to use nvidia GPU
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
# services.xserver.displayManager.defaultSession = "gnome-x11"; # services.xserver.displayManager.autoLogin.enable = true;
|
|
||||||
# services.xserver.displayManager.autoLogin.user = "andreas";
|
|
||||||
# systemd.services."getty@tty1".enable = false;
|
|
||||||
# systemd.services."autovt@tty1".enable = false;
|
|
||||||
|
|
||||||
programs.ssh.askPassword = "${pkgs.x11_ssh_askpass}/libexec/x11-ssh-askpass";
|
|
||||||
|
|
||||||
# Configure console keymap
|
|
||||||
console.keyMap = "us-acentos";
|
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
|
||||||
services.printing.enable = true;
|
|
||||||
|
|
||||||
# Enable sound with pipewire.
|
|
||||||
services.pulseaudio.enable = false;
|
|
||||||
security.rtkit.enable = true;
|
|
||||||
services.pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
# If you want to use JACK applications, uncomment this
|
|
||||||
#jack.enable = true;
|
|
||||||
|
|
||||||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
|
||||||
# no need to redefine it in your config for now)
|
|
||||||
#media-session.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable gamemode for game optimization
|
|
||||||
programs.gamemode.enable = true;
|
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
|
||||||
# services.xserver.libinput.enable = true;
|
|
||||||
|
|
||||||
# Install firefox.
|
|
||||||
programs.firefox.enable = true;
|
|
||||||
|
|
||||||
# Enable XWayland for X11 application compatibility
|
|
||||||
programs.xwayland.enable = true;
|
|
||||||
|
|
||||||
# docker
|
|
||||||
virtualisation.docker = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
# Allow unfree packages
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
# Enable --Akonadi--/ kde-pim for calendar backend
|
|
||||||
programs.kde-pim.enable = true;
|
|
||||||
services.dbus.enable = true;
|
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
|
||||||
# $ nix search wget
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
|
||||||
# wget
|
|
||||||
(python312.withPackages (ps: with ps; [ websockets ]))
|
|
||||||
sqlite
|
|
||||||
javaPackages.compiler.openjdk25
|
|
||||||
javaPackages.compiler.openjdk21
|
|
||||||
qt6.qtwebengine
|
|
||||||
qemu
|
|
||||||
mpv
|
|
||||||
krita
|
|
||||||
ntfs3g
|
|
||||||
htop
|
|
||||||
];
|
|
||||||
environment.etc."xdg/autostart/xwaylandvideobridge.desktop".text = ''
|
|
||||||
[Desktop Entry]
|
|
||||||
Hidden=true
|
|
||||||
'';
|
|
||||||
|
|
||||||
services.udisks2.settings = { # Should fix mounting ntfs system partition - Did not work
|
|
||||||
"udisks2.conf" = {
|
|
||||||
defaults = {
|
|
||||||
allow_mount_internal = true;
|
|
||||||
allow_mount_system = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.gvfs.enable = true; # For file manager integration
|
|
||||||
|
|
||||||
# Disable iBus (not needed unless using Asian input methods)
|
|
||||||
i18n.inputMethod = {
|
|
||||||
enable = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
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
|
|
||||||
# started in user sessions.
|
|
||||||
# programs.mtr.enable = true;
|
|
||||||
# programs.gnupg.agent = {
|
|
||||||
# enable = true;
|
|
||||||
# enableSSHSupport = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
# List services that you want to enable:
|
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
|
||||||
services.openssh.enable = true;
|
|
||||||
|
|
||||||
# Open ports in the firewall.
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
|
||||||
24800 #Synergy
|
|
||||||
53317 #localsend
|
|
||||||
];
|
|
||||||
networking.firewall.allowedUDPPorts = [
|
|
||||||
24800 #Synergy
|
|
||||||
53317 #localsend
|
|
||||||
];
|
|
||||||
# Or disable the firewall altogether.
|
|
||||||
# networking.firewall.enable = false;
|
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
|
||||||
# settings for stateful data, like file locations and database versions
|
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
||||||
# this value at the release version of the first install of this system.
|
|
||||||
# Before changing this value read the documentation for this option
|
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
||||||
system.stateVersion = "24.05"; # Did you read the comment?
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,196 +0,0 @@
|
|||||||
# nixosConfigurations.th0nkpad-nixos = nixpkgs.lib.nixosSystem {
|
|
||||||
|
|
||||||
{
|
|
||||||
# Snowfall Lib provides a customized `lib` instance with access to your flake's library
|
|
||||||
# as well as the libraries available from your flake's inputs.
|
|
||||||
lib,
|
|
||||||
# An instance of `pkgs` with your overlays and packages applied is also available.
|
|
||||||
pkgs,
|
|
||||||
# You also have access to your flake's inputs.
|
|
||||||
inputs,
|
|
||||||
# Additional metadata is provided by Snowfall Lib.
|
|
||||||
# The namespace used for your flake, defaulting to "internal" if not set.
|
|
||||||
namespace,
|
|
||||||
# The system architecture for this host (eg. `x86_64-linux`).
|
|
||||||
system,
|
|
||||||
# The Snowfall Lib target for this system (eg. `x86_64-iso`).
|
|
||||||
target,
|
|
||||||
# A normalized name for the system target (eg. `iso`).
|
|
||||||
format,
|
|
||||||
# A boolean to determine whether this system is a virtual target using nixos-generators.
|
|
||||||
virtual,
|
|
||||||
# An attribute map of your defined hosts.
|
|
||||||
systems,
|
|
||||||
# All other arguments come from the system system.
|
|
||||||
config
|
|
||||||
, ...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
inherit (lib.my-namespace) enabled;
|
|
||||||
inherit pkgs;
|
|
||||||
installedPackages = lib.my-namespace.mkPackages pkgs;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
# inherit system;
|
|
||||||
imports = [
|
|
||||||
./configuration.nix
|
|
||||||
./video.nix
|
|
||||||
inputs.aagl.nixosModules.default
|
|
||||||
];
|
|
||||||
config = {
|
|
||||||
system.stateVersion = "24.05";
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
||||||
# Desktops
|
|
||||||
my-namespace.desktop-environment.xfce.enable = true;
|
|
||||||
my-namespace.desktop-environment.gnome.enable = true;
|
|
||||||
my-namespace.desktop-environment.kde.enable = true;
|
|
||||||
my-namespace.desktop-environment.cosmic.enable = true;
|
|
||||||
# GNOME-keyring
|
|
||||||
my-namespace.gnome-keyring.enable = true;
|
|
||||||
|
|
||||||
users.users.andreas = {
|
|
||||||
isNormalUser = true;
|
|
||||||
description = "Andreas Schaafsma";
|
|
||||||
extraGroups = [
|
|
||||||
"networkmanager"
|
|
||||||
"wheel"
|
|
||||||
"libvirtd"
|
|
||||||
"plugdev"
|
|
||||||
"docker"
|
|
||||||
"gamemode"
|
|
||||||
];
|
|
||||||
packages = with pkgs; [
|
|
||||||
# Packages from inputs
|
|
||||||
inputs.game-of-life.packages.x86_64-linux.default
|
|
||||||
inputs.zen-browser.packages.x86_64-linux.default
|
|
||||||
inputs.trilium-next-pr.legacyPackages.x86_64-linux.trilium-next-desktop
|
|
||||||
inputs.anikki.packages.x86_64-linux.default
|
|
||||||
# We want flatpak support
|
|
||||||
flatpak
|
|
||||||
# GNOME shit
|
|
||||||
thunderbird
|
|
||||||
soundwireserver
|
|
||||||
vscode
|
|
||||||
spotify
|
|
||||||
appimage-run
|
|
||||||
prismlauncher #replaces broken minecraft package
|
|
||||||
trilium-desktop
|
|
||||||
terraform
|
|
||||||
virt-manager
|
|
||||||
# thunderbird
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.anime-game-launcher.enable = true; # Adds launcher and /etc/hosts rules
|
|
||||||
programs.anime-games-launcher.enable = true;
|
|
||||||
|
|
||||||
services.gnome.gnome-remote-desktop.enable = true;
|
|
||||||
my-namespace.keychron-keyboard.enable = true;
|
|
||||||
|
|
||||||
# lib.my-namespace.home.stream-tools.enable = true;
|
|
||||||
|
|
||||||
# Open ports in the firewall.
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
|
||||||
59010 #SoundWireServer
|
|
||||||
3389 #RDP
|
|
||||||
22 #ssh
|
|
||||||
];
|
|
||||||
networking.firewall.allowedUDPPorts = [
|
|
||||||
59010 #SoundWireServer
|
|
||||||
3389 #RDP
|
|
||||||
22 #ssh
|
|
||||||
];
|
|
||||||
# Or disable the firewall altogether.
|
|
||||||
# networking.firewall.enable = false;
|
|
||||||
programs.gamescope.enable = true;
|
|
||||||
programs.steam.gamescopeSession = {
|
|
||||||
enable = true;
|
|
||||||
args = [
|
|
||||||
"-w" "1920"
|
|
||||||
"-h" "1080"
|
|
||||||
"-r" "172"
|
|
||||||
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Install firefox.
|
|
||||||
programs.firefox.enable = true;
|
|
||||||
nixpkgs.config.allowBroken = true;
|
|
||||||
powerManagement.cpuFreqGovernor = "performance";
|
|
||||||
# Set up system Packages
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
git
|
|
||||||
wine
|
|
||||||
# bottles
|
|
||||||
gparted
|
|
||||||
ntfs3g
|
|
||||||
ntfsprogs
|
|
||||||
synergy
|
|
||||||
mangohud
|
|
||||||
my-namespace.udev-steelseries
|
|
||||||
my-namespace.hello
|
|
||||||
kde-rounded-corners
|
|
||||||
my-namespace.linux-wallpaperengine
|
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "switch-to-desktop" ''
|
|
||||||
#!/bin/sh
|
|
||||||
# Kill Steam and return to display manager
|
|
||||||
pkill steam || true
|
|
||||||
pkill gamescope || true
|
|
||||||
# End the session cleanly
|
|
||||||
loginctl terminate-session "$XDG_SESSION_ID"
|
|
||||||
'')
|
|
||||||
(pkgs.writeShellScriptBin "steamos-session-select" ''
|
|
||||||
#!/bin/sh
|
|
||||||
exec switch-to-desktop
|
|
||||||
'')
|
|
||||||
# Vulkan packages for Steam
|
|
||||||
pkgs.mesa
|
|
||||||
pkgs.vulkan-loader
|
|
||||||
pkgs.vulkan-validation-layers
|
|
||||||
pkgs.vulkan-extension-layer
|
|
||||||
pkgs.vulkan-tools
|
|
||||||
pkgs.libva
|
|
||||||
pkgs.libva-utils
|
|
||||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
|
||||||
# wget
|
|
||||||
]
|
|
||||||
++ installedPackages.packages;
|
|
||||||
programs.nix-ld = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.nix-ld; #replaces nix-ld-rs
|
|
||||||
};
|
|
||||||
services.flatpak.enable = true;
|
|
||||||
systemd.services.flatpak-repo = {
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
path = [ pkgs.flatpak ];
|
|
||||||
script = ''
|
|
||||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
services.openssh = {
|
|
||||||
enable = true;
|
|
||||||
settings.PasswordAuthentication = true;
|
|
||||||
# settings = {
|
|
||||||
# # passwordAuthentication = true;
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
# services.xrdp.enable = true;
|
|
||||||
# services.xrdp.defaultWindowManager = "${pkgs.gnome-session}/bin/gnome-session";
|
|
||||||
# services.xrdp.defaultWindowManager = "startxfce4";
|
|
||||||
# services.xrdp.openFirewall = true;
|
|
||||||
# services.xrdp.audio.enable = false;
|
|
||||||
|
|
||||||
|
|
||||||
# Disable the GNOME3/GDM auto-suspend feature that cannot be disabled in GUI!
|
|
||||||
# If no user is logged in, the machine will power down after 20 minutes.
|
|
||||||
systemd.targets.sleep.enable = false;
|
|
||||||
systemd.targets.suspend.enable = false;
|
|
||||||
systemd.targets.hibernate.enable = false;
|
|
||||||
systemd.targets.hybrid-sleep.enable = false;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{ 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-2:edid/edid.bin" ];
|
|
||||||
|
|
||||||
|
|
||||||
hardware.firmware = [
|
|
||||||
(
|
|
||||||
pkgs.runCommand "edid.bin" { } ''
|
|
||||||
mkdir -p $out/lib/firmware/edid
|
|
||||||
cp ${./firmware/KG271-edid.bin} $out/lib/firmware/edid/edid.bin
|
|
||||||
''
|
|
||||||
)];
|
|
||||||
}
|
|
||||||
Binary file not shown.
@@ -1,82 +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=*"
|
|
||||||
"module_blacklist=nouveau,nvidia,nvidia_drm,nvidia_modeset,nvidia_uvm"
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.variables.VK_ICD_FILENAMES = "/run/opengl-driver/share/vulkan/icd.d/intel_icd.x86_64.json";
|
|
||||||
hardware.intel-gpu-tools.enable = true;
|
|
||||||
hardware.graphics = {
|
|
||||||
enable = true;
|
|
||||||
enable32Bit = true;
|
|
||||||
|
|
||||||
extraPackages = with pkgs; [
|
|
||||||
intel-media-driver # Intel VAAPI
|
|
||||||
vpl-gpu-rt # oneVPL runtime
|
|
||||||
intel-vaapi-driver # fallback
|
|
||||||
intel-compute-runtime # OpenCL/Level Zero
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Ensure Arc driver is available (usually auto-loaded)
|
|
||||||
boot.kernelModules = [ "xe" "i915" ];
|
|
||||||
# Blacklist everything for nvidia
|
|
||||||
boot.blacklistedKernelModules = [
|
|
||||||
"nouveau"
|
|
||||||
"nvidia"
|
|
||||||
"nvidia_drm"
|
|
||||||
"nvidia_modeset"
|
|
||||||
"nvidia_uvm"
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.variables = {
|
|
||||||
KWIN_DRM_DEVICES = "/dev/dri/card0";
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
############################
|
|
||||||
## X / Wayland GPU Drivers
|
|
||||||
############################
|
|
||||||
|
|
||||||
# Enable modesetting driver for X11 (required for Intel Xe)
|
|
||||||
services.xserver.videoDrivers = [
|
|
||||||
"modesetting"
|
|
||||||
#"intel"
|
|
||||||
];
|
|
||||||
|
|
||||||
services.xserver.enable = true;
|
|
||||||
services.xserver.autorun = false;
|
|
||||||
services.xserver.displayManager.startx.enable = true;
|
|
||||||
|
|
||||||
# Xorg configuration for Intel Arc Battlemage (xe driver)
|
|
||||||
# Based on: https://www.reddit.com/r/crtgaming/comments/1knom2t/guide_intel_arc_b580_arch_linux_xorg/
|
|
||||||
# Intel Arc B-series at PCI 0000:03:00.0
|
|
||||||
#services.xserver.deviceSection = ''
|
|
||||||
# Option "AccelMethod" "glamor"
|
|
||||||
# BusID "PCI:3:0:0"
|
|
||||||
#'';
|
|
||||||
|
|
||||||
############################
|
|
||||||
## User Access
|
|
||||||
############################
|
|
||||||
users.users.andreas.extraGroups = [ "video" "render" ];
|
|
||||||
}
|
|
||||||
@@ -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" ];
|
|
||||||
}
|
|
||||||
@@ -1,63 +0,0 @@
|
|||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
||||||
# and may be overwritten by future invocations. Please make changes
|
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[
|
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
|
||||||
./graphics/intel.nix
|
|
||||||
# ./graphics/nvidia.nix
|
|
||||||
./acer-monitor-edid.nix
|
|
||||||
];
|
|
||||||
# boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_zen;
|
|
||||||
hardware.enableRedistributableFirmware = true;
|
|
||||||
# boot.kernelPackages = pkgs.linuxKernel.packages.linux_xanmod_latest;
|
|
||||||
# boot.kernelPackages = pkgs.linuxPackages;
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
|
||||||
boot.kernelModules = [ "kvm-amd" "r8125" "4vl2loopback" ];
|
|
||||||
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback r8125 ];
|
|
||||||
boot.supportedFilesystems = [ "ntfs" ];
|
|
||||||
boot.blacklistedKernelModules = [ "r8169" ];
|
|
||||||
fileSystems."/" = {
|
|
||||||
device = "/dev/disk/by-uuid/563805a1-5277-4488-bbdd-c1a7ed37be76";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
|
||||||
device = "/dev/disk/by-uuid/E846-D998";
|
|
||||||
fsType = "vfat";
|
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Try to fix hibernation
|
|
||||||
|
|
||||||
# swapDevices = [ ];
|
|
||||||
swapDevices = [ {
|
|
||||||
device = "/var/lib/swapfile";
|
|
||||||
size = 32*1024;
|
|
||||||
} ]; #resume-offset = 78399488
|
|
||||||
boot.resumeDevice = "/dev/disk/by-uuid/563805a1-5277-4488-bbdd-c1a7ed37be76"; # the unlocked drive mapping
|
|
||||||
boot.kernelParams = [
|
|
||||||
"resume_offset=78399488" #sudo filefrag -v /var/lib/swapfile|awk 'NR==4{gsub(/\./,"");print $4;}'
|
|
||||||
"r8125.aspm=0" # realtek network adapter fix
|
|
||||||
];
|
|
||||||
security.protectKernelImage = false;
|
|
||||||
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
||||||
# still po ssible to use this option, but it's recommended to use it in conjunction
|
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.enp72s0.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
|
||||||
{
|
|
||||||
boot.kernelModules = [
|
|
||||||
"v4l2loopback" # Webcam loopback
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.extraModulePackages = [
|
|
||||||
config.boot.kernelPackages.v4l2loopback # Webcam loopback
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.extraModprobeConfig = ''
|
|
||||||
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
|
|
||||||
'';
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
# Webcam packages
|
|
||||||
v4l-utils
|
|
||||||
android-tools
|
|
||||||
adb-sync
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
|
|
||||||
# nixosConfigurations.drivebystation-nixos-wsl = nixpkgs.lib.nixosSystem {
|
|
||||||
#
|
|
||||||
# };
|
|
||||||
{
|
|
||||||
# Snowfall Lib provides a customized `lib` instance with access to your flake's library
|
|
||||||
# as well as the libraries available from your flake's inputs.
|
|
||||||
lib,
|
|
||||||
# An instance of `pkgs` with your overlays and packages applied is also available.
|
|
||||||
pkgs,
|
|
||||||
# You also have access to your flake's inputs.
|
|
||||||
inputs,
|
|
||||||
# Additional metadata is provided by Snowfall Lib.
|
|
||||||
namespace, # The namespace used for your flake, defaulting to "internal" if not set.
|
|
||||||
system, # The system architecture for this host (eg. `x86_64-linux`).
|
|
||||||
target, # The Snowfall Lib target for this system (eg. `x86_64-iso`).
|
|
||||||
format, # A normalized name for the system target (eg. `iso`).
|
|
||||||
virtual, # A boolean to determine whether this system is a virtual target using nixos-generators.
|
|
||||||
systems, # An attribute map of your defined hosts.
|
|
||||||
|
|
||||||
# All other arguments come from the system system.
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
inherit system;
|
|
||||||
modules = [
|
|
||||||
nixos-wsl.nixosModules.default
|
|
||||||
./configuration.nix
|
|
||||||
{
|
|
||||||
system.stateVersion = "24.05";
|
|
||||||
wsl.enable = true;
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
environment.systemPackages = [
|
|
||||||
|
|
||||||
]
|
|
||||||
++ installedPackages.mkPackages.packages;
|
|
||||||
programs.nix-ld = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.nix-ld-rs;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
specialArgs = { inherit inputs; };
|
|
||||||
# Your configuration.
|
|
||||||
}
|
|
||||||
@@ -1,113 +0,0 @@
|
|||||||
# nixosConfigurations.th0nkpad-nixos = nixpkgs.lib.nixosSystem {
|
|
||||||
|
|
||||||
{
|
|
||||||
# Snowfall Lib provides a customized `lib` instance with access to your flake's library
|
|
||||||
# as well as the libraries available from your flake's inputs.
|
|
||||||
lib,
|
|
||||||
# An instance of `pkgs` with your overlays and packages applied is also available.
|
|
||||||
pkgs,
|
|
||||||
# You also have access to your flake's inputs.
|
|
||||||
inputs,
|
|
||||||
# Additional metadata is provided by Snowfall Lib.
|
|
||||||
# The namespace used for your flake, defaulting to "internal" if not set.
|
|
||||||
namespace,
|
|
||||||
# The system architecture for this host (eg. `x86_64-linux`).
|
|
||||||
system,
|
|
||||||
# The Snowfall Lib target for this system (eg. `x86_64-iso`).
|
|
||||||
target,
|
|
||||||
# A normalized name for the system target (eg. `iso`).
|
|
||||||
format,
|
|
||||||
# A boolean to determine whether this system is a virtual target using nixos-generators.
|
|
||||||
virtual,
|
|
||||||
# An attribute map of your defined hosts.
|
|
||||||
systems,
|
|
||||||
# All other arguments come from the system system.
|
|
||||||
config
|
|
||||||
, ...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
inherit pkgs;
|
|
||||||
installedPackages = lib.my-namespace.mkPackages pkgs;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
# inherit system;
|
|
||||||
imports = [
|
|
||||||
./configuration.nix
|
|
||||||
];
|
|
||||||
config = {
|
|
||||||
system.stateVersion = "24.05";
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
||||||
users.users.andreas = {
|
|
||||||
isNormalUser = true;
|
|
||||||
description = "Andreas";
|
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
|
||||||
packages = with pkgs; [
|
|
||||||
flatpak
|
|
||||||
gnome-software
|
|
||||||
soundwireserver
|
|
||||||
vscode
|
|
||||||
spotify
|
|
||||||
appimage-run
|
|
||||||
inputs.game-of-life.packages.x86_64-linux.default
|
|
||||||
inputs.nixos-cosmic
|
|
||||||
# thunderbird
|
|
||||||
];
|
|
||||||
};
|
|
||||||
# lib.my-namespace.home.stream-tools.enable = true;
|
|
||||||
|
|
||||||
|
|
||||||
# Open ports in the firewall.
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
|
||||||
59010 #SoundWireServer
|
|
||||||
3389 #RDP
|
|
||||||
];
|
|
||||||
networking.firewall.allowedUDPPorts = [
|
|
||||||
59010 #SoundWireServer
|
|
||||||
3389 #RDP
|
|
||||||
];
|
|
||||||
# Or disable the firewall altogether.
|
|
||||||
# networking.firewall.enable = false;
|
|
||||||
|
|
||||||
# Install firefox.
|
|
||||||
programs.firefox.enable = true;
|
|
||||||
|
|
||||||
# Set up system Packages
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
git
|
|
||||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
|
||||||
# wget
|
|
||||||
]
|
|
||||||
++ installedPackages.packages;
|
|
||||||
programs.nix-ld = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.nix-ld-rs;
|
|
||||||
};
|
|
||||||
services.flatpak.enable = true;
|
|
||||||
systemd.services.flatpak-repo = {
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
path = [ pkgs.flatpak ];
|
|
||||||
script = ''
|
|
||||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
services.openssh = {
|
|
||||||
enable = true;
|
|
||||||
passwordAuthentication = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
# services.xrdp.enable = true;
|
|
||||||
# services.xrdp.defaultWindowManager = "${pkgs.gnome-session}/bin/gnome-session";
|
|
||||||
# services.xrdp.openFirewall = true;
|
|
||||||
|
|
||||||
|
|
||||||
# Disable the GNOME3/GDM auto-suspend feature that cannot be disabled in GUI!
|
|
||||||
# If no user is logged in, the machine will power down after 20 minutes.
|
|
||||||
systemd.targets.sleep.enable = false;
|
|
||||||
systemd.targets.suspend.enable = false;
|
|
||||||
systemd.targets.hibernate.enable = false;
|
|
||||||
systemd.targets.hybrid-sleep.enable = false;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user