Compare commits
36 Commits
0524def0ad
...
dendritic
| Author | SHA1 | Date | |
|---|---|---|---|
| 7410e0e0a2 | |||
| 22a1b19301 | |||
| 0167bb1ab5 | |||
| 905aace59e | |||
| 2337629578 | |||
| a55644e77c | |||
| b5ee65626a | |||
| d3531dfd9e | |||
| 820e4b1cce | |||
| dd0ddd7834 | |||
| b23ebe640d | |||
| ef35e06dfd | |||
| bac5ee7534 | |||
| e4f1e92d2a | |||
| a4f56f922f | |||
|
|
e34b5ecce3 | ||
|
|
5f41ff2b1b | ||
|
|
9ff0b329ec | ||
|
|
f94bd3d1d6 | ||
|
|
5a89753893 | ||
|
|
e6c80668cd | ||
|
|
9bda8655f2 | ||
|
|
606d4ecaa6 | ||
|
|
a943d8c45c | ||
|
|
8bc4daf4d6 | ||
|
|
c81a4768cf | ||
|
|
63afa59e34 | ||
|
|
9ea1f7801f | ||
|
|
88a3f7d822 | ||
|
|
74b2f1e653 | ||
|
|
6deaef9abf | ||
|
|
6485cb234f | ||
|
|
3defad84fb | ||
|
|
156bd44710 | ||
|
|
a561aa45e9 | ||
|
|
7fd9d83ce1 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +0,0 @@
|
|||||||
configuration.nix
|
|
||||||
|
|||||||
BIN
assets/horizontal_16x9.png
Normal file
BIN
assets/horizontal_16x9.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.5 MiB |
449
flake.lock
generated
449
flake.lock
generated
@@ -1,5 +1,173 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"agenix": {
|
||||||
|
"inputs": {
|
||||||
|
"darwin": "darwin",
|
||||||
|
"home-manager": [
|
||||||
|
"home-manager"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1770165109,
|
||||||
|
"narHash": "sha256-9VnK6Oqai65puVJ4WYtCTvlJeXxMzAp/69HhQuTdl/I=",
|
||||||
|
"owner": "ryantm",
|
||||||
|
"repo": "agenix",
|
||||||
|
"rev": "b027ee29d959fda4b60b57566d64c98a202e0feb",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "ryantm",
|
||||||
|
"repo": "agenix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"aghpb": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1773167124,
|
||||||
|
"narHash": "sha256-ELnpKMODHKZcsXZ9/6XyTo17u3j2bUs9nplyULz6uFI=",
|
||||||
|
"owner": "cat-milk",
|
||||||
|
"repo": "Anime-Girls-Holding-Programming-Books",
|
||||||
|
"rev": "c04a6e18f474965b731b65e539ad69a94123c444",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "cat-milk",
|
||||||
|
"repo": "Anime-Girls-Holding-Programming-Books",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"assets": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"path": "./assets",
|
||||||
|
"type": "path"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"path": "./assets",
|
||||||
|
"type": "path"
|
||||||
|
},
|
||||||
|
"parent": []
|
||||||
|
},
|
||||||
|
"catppuccin": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1768256610,
|
||||||
|
"narHash": "sha256-IyL6nZo242nDLoLQVwkqAZXp8FO5kBfjL6Fuh+gZO10=",
|
||||||
|
"owner": "catppuccin",
|
||||||
|
"repo": "nix",
|
||||||
|
"rev": "0734ad8c91342df34f1a1e5c183d053d70ba87c7",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "catppuccin",
|
||||||
|
"ref": "release-25.11",
|
||||||
|
"repo": "nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"darwin": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"agenix",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1744478979,
|
||||||
|
"narHash": "sha256-dyN+teG9G82G+m+PX/aSAagkC+vUv0SgUw3XkPhQodQ=",
|
||||||
|
"owner": "lnl7",
|
||||||
|
"repo": "nix-darwin",
|
||||||
|
"rev": "43975d782b418ebf4969e9ccba82466728c2851b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "lnl7",
|
||||||
|
"ref": "master",
|
||||||
|
"repo": "nix-darwin",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-file": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1773224147,
|
||||||
|
"narHash": "sha256-w9RQyKZSTfqoZPRzIf7H4qVHy2N6uFk1MUU+c1K4c40=",
|
||||||
|
"owner": "vic",
|
||||||
|
"repo": "flake-file",
|
||||||
|
"rev": "97bd69ff570dddccd704077830446ec1ca3a6988",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "vic",
|
||||||
|
"repo": "flake-file",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-parts": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1772408722,
|
||||||
|
"narHash": "sha256-rHuJtdcOjK7rAHpHphUb1iCvgkU3GpfvicLMwwnfMT0=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "f20dc5d9b8027381c474144ecabc9034d6a839a3",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-parts_2": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": [
|
||||||
|
"nixvim",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1768135262,
|
||||||
|
"narHash": "sha256-PVvu7OqHBGWN16zSi6tEmPwwHQ4rLPU9Plvs8/1TUBY=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "80daad04eddbbf5a4d883996a73f3f542fa437ac",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems_2"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731533236,
|
||||||
|
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -7,11 +175,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767910483,
|
"lastModified": 1773264488,
|
||||||
"narHash": "sha256-MOU5YdVu4DVwuT5ztXgQpPuRRBjSjUGIdUzOQr9iQOY=",
|
"narHash": "sha256-rK0507bDuWBrZo+0zts9bCs/+RRUEHuvFE5DHWPxX/Q=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "82fb7dedaad83e5e279127a38ef410bcfac6d77c",
|
"rev": "5c0f63f8d55040a7eed69df7e3fcdd15dfb5a04c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -21,13 +189,56 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"import-tree": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1772999353,
|
||||||
|
"narHash": "sha256-dPb0WxUhFaz6wuR3B6ysqFJpsu8txKDPZvS47AT2XLI=",
|
||||||
|
"owner": "vic",
|
||||||
|
"repo": "import-tree",
|
||||||
|
"rev": "545a4df146fce44d155573e47f5a777985acf912",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "vic",
|
||||||
|
"repo": "import-tree",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ixx": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": [
|
||||||
|
"nixvim",
|
||||||
|
"nuschtosSearch",
|
||||||
|
"flake-utils"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixvim",
|
||||||
|
"nuschtosSearch",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1754860581,
|
||||||
|
"narHash": "sha256-EM0IE63OHxXCOpDHXaTyHIOk2cNvMCGPqLt/IdtVxgk=",
|
||||||
|
"owner": "NuschtOS",
|
||||||
|
"repo": "ixx",
|
||||||
|
"rev": "babfe85a876162c4acc9ab6fb4483df88fa1f281",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NuschtOS",
|
||||||
|
"ref": "v0.1.1",
|
||||||
|
"repo": "ixx",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768028080,
|
"lastModified": 1773375660,
|
||||||
"narHash": "sha256-50aDK+8eLvsLK39TzQhKNq50/HcXyP4hyxOYoPoVxjo=",
|
"narHash": "sha256-SEzUWw2Rf5Ki3bcM26nSKgbeoqi2uYy8IHVBqOKjX3w=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "d03088749a110d52a4739348f39a63f84bb0be14",
|
"rev": "3e20095fe3c6cbb1ddcef89b26969a69a1570776",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -37,10 +248,234 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-lib": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1772328832,
|
||||||
|
"narHash": "sha256-e+/T/pmEkLP6BHhYjx6GmwP5ivonQQn0bJdH9YrRB+Q=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixpkgs.lib",
|
||||||
|
"rev": "c185c7a5e5dd8f9add5b2f8ebeff00888b070742",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixpkgs.lib",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs-unstable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1773282481,
|
||||||
|
"narHash": "sha256-b/GV2ysM8mKHhinse2wz+uP37epUrSE+sAKXy/xvBY4=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "fe416aaedd397cacb33a610b33d60ff2b431b127",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixvim": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-parts": "flake-parts_2",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"nuschtosSearch": "nuschtosSearch",
|
||||||
|
"systems": "systems_3"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1769049374,
|
||||||
|
"narHash": "sha256-h0Os2qqNyycDY1FyZgtbn28VF1ySP74/n0f+LDd8j+w=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixvim",
|
||||||
|
"rev": "b8f76bf5751835647538ef8784e4e6ee8deb8f95",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"ref": "nixos-25.11",
|
||||||
|
"repo": "nixvim",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nuschtosSearch": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"ixx": "ixx",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixvim",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1768249818,
|
||||||
|
"narHash": "sha256-ANfn5OqIxq3HONPIXZ6zuI5sLzX1sS+2qcf/Pa0kQEc=",
|
||||||
|
"owner": "NuschtOS",
|
||||||
|
"repo": "search",
|
||||||
|
"rev": "b6f77b88e9009bfde28e2130e218e5123dc66796",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NuschtOS",
|
||||||
|
"repo": "search",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"agenix": "agenix",
|
||||||
|
"aghpb": "aghpb",
|
||||||
|
"assets": "assets",
|
||||||
|
"catppuccin": "catppuccin",
|
||||||
|
"flake-file": "flake-file",
|
||||||
|
"flake-parts": "flake-parts",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixpkgs": "nixpkgs"
|
"import-tree": "import-tree",
|
||||||
|
"nixpkgs": "nixpkgs",
|
||||||
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
|
"nixvim": "nixvim",
|
||||||
|
"rust-overlay": "rust-overlay",
|
||||||
|
"secrets": "secrets",
|
||||||
|
"spicetify-nix": "spicetify-nix",
|
||||||
|
"zen-browser": "zen-browser"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rust-overlay": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1773457417,
|
||||||
|
"narHash": "sha256-waABTSxPdbxml4BhcabHhyQF02Qnj27qRU4ard0mTQo=",
|
||||||
|
"owner": "oxalica",
|
||||||
|
"repo": "rust-overlay",
|
||||||
|
"rev": "055977c30249484010750e03074c744dcdaa0d23",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "oxalica",
|
||||||
|
"repo": "rust-overlay",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"secrets": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"path": "./secrets",
|
||||||
|
"type": "path"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"path": "./secrets",
|
||||||
|
"type": "path"
|
||||||
|
},
|
||||||
|
"parent": []
|
||||||
|
},
|
||||||
|
"spicetify-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": "systems_4"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1773161309,
|
||||||
|
"narHash": "sha256-k2Un0blYBeoN8mB5HO4rqCKISb427IWy0fzCdCUIcio=",
|
||||||
|
"owner": "Gerg-L",
|
||||||
|
"repo": "spicetify-nix",
|
||||||
|
"rev": "61df7293cf732c7b66cce7f8b46f7017e721a6cd",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Gerg-L",
|
||||||
|
"repo": "spicetify-nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems_4": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"zen-browser": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1773290160,
|
||||||
|
"narHash": "sha256-u09eF4Oafi+OIbTtKe/EWil26q1glcTATiSA7dF1oCI=",
|
||||||
|
"owner": "youwen5",
|
||||||
|
"repo": "zen-browser-flake",
|
||||||
|
"rev": "c7cb51b30960757ed9fb8eb28567b32585d0a688",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "youwen5",
|
||||||
|
"repo": "zen-browser-flake",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
77
flake.nix
77
flake.nix
@@ -1,33 +1,56 @@
|
|||||||
|
# DO-NOT-EDIT. This file was auto-generated using github:vic/flake-file.
|
||||||
|
# Use `nix run .#write-flake` to regenerate it.
|
||||||
{
|
{
|
||||||
description = "Weckyy702's (hopefully nice) NixOS config";
|
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules);
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
|
agenix = {
|
||||||
|
url = "github:ryantm/agenix";
|
||||||
|
inputs = {
|
||||||
|
home-manager.follows = "home-manager";
|
||||||
|
nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
aghpb = {
|
||||||
|
url = "github:cat-milk/Anime-Girls-Holding-Programming-Books";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
assets = {
|
||||||
|
url = "path:./assets";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
catppuccin = {
|
||||||
|
url = "github:catppuccin/nix/release-25.11";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
flake-file.url = "github:vic/flake-file";
|
||||||
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager/release-25.11";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
import-tree.url = "github:vic/import-tree";
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
||||||
home-manager.url = "github:nix-community/home-manager/release-25.11";
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
nixvim = {
|
||||||
#TODO: nixvim, etc
|
url = "github:nix-community/nixvim/nixos-25.11";
|
||||||
};
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
|
rust-overlay = {
|
||||||
nixosConfigurations.keith =
|
url = "github:oxalica/rust-overlay";
|
||||||
let
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
hostname = "keith";
|
};
|
||||||
username = "weckyy702";
|
secrets = {
|
||||||
specialArgs = { inherit inputs; inherit hostname; inherit username; };
|
url = "path:./secrets";
|
||||||
in
|
flake = false;
|
||||||
nixpkgs.lib.nixosSystem {
|
};
|
||||||
inherit specialArgs;
|
spicetify-nix = {
|
||||||
modules = [
|
url = "github:Gerg-L/spicetify-nix";
|
||||||
./hosts/keith
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
./users/${username}/nixos.nix
|
};
|
||||||
home-manager.nixosModules.home-manager {
|
zen-browser = {
|
||||||
home-manager.useGlobalPkgs = true;
|
url = "github:youwen5/zen-browser-flake";
|
||||||
home-manager.useUserPackages = true;
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
home-manager.extraSpecialArgs = specialArgs;
|
|
||||||
home-manager.users.${username} = import ./users/${username}/home.nix;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
{username, ...}: {
|
|
||||||
home = {
|
|
||||||
inherit username;
|
|
||||||
homeDirectory = "/home/${username}";
|
|
||||||
|
|
||||||
stateVersion = "25.11";
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
}
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
|
||||||
let
|
|
||||||
home-manager = builtins.fetchTarball https://github.com/nix-community/home-manager/archive/release-25.11.tar.gz;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
(import "${home-manager}/nixos")
|
|
||||||
./zsh
|
|
||||||
./hyprland
|
|
||||||
];
|
|
||||||
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
||||||
users.users.weckyy702 = {
|
|
||||||
isNormalUser = true;
|
|
||||||
description = "Weckyy702";
|
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
|
||||||
shell = pkgs.zsh;
|
|
||||||
};
|
|
||||||
|
|
||||||
home-manager.users.weckyy702 = { pkgs, ... }: {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
firefox
|
|
||||||
bitwarden-desktop
|
|
||||||
];
|
|
||||||
#NOTE: MUST be kept in sync with the channel above!
|
|
||||||
home.stateVersion = "25.11";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
{ config, pkgs, ...}: {
|
|
||||||
## System wide configuration
|
|
||||||
# Configure keymap in X11
|
|
||||||
services.xserver.xkb = {
|
|
||||||
layout = "de";
|
|
||||||
variant = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.greetd = {
|
|
||||||
enable = true;
|
|
||||||
useTextGreeter = true;
|
|
||||||
settings = {
|
|
||||||
default_session = {
|
|
||||||
command = "${pkgs.tuigreet}/bin/tuigreet --time --cmd hyprland";
|
|
||||||
user = "greeter";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.hyprland = {
|
|
||||||
enable = true;
|
|
||||||
withUWSM = true;
|
|
||||||
xwayland.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
libnotify
|
|
||||||
dunst
|
|
||||||
];
|
|
||||||
|
|
||||||
# Required to use hyprlock
|
|
||||||
security.pam.services.hyprlock = {};
|
|
||||||
# Configure electron apps to use wayland
|
|
||||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
|
||||||
|
|
||||||
## Home-Manager specific configuration
|
|
||||||
home-manager.users.weckyy702 = {
|
|
||||||
wayland.windowManager.hyprland = {
|
|
||||||
enable = true;
|
|
||||||
settings = import ./settings.nix;
|
|
||||||
xwayland.enable = true;
|
|
||||||
systemd.enable = true;
|
|
||||||
};
|
|
||||||
programs.hyprlock = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
programs.wofi = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
services.hyprpaper = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
services.hyprsunset.enable = true;
|
|
||||||
services.hyprpolkitagent.enable = true;
|
|
||||||
services.hypridle.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
{
|
|
||||||
"$mod" = "SUPER";
|
|
||||||
general = {
|
|
||||||
border_size = 0;
|
|
||||||
gaps_in = 5;
|
|
||||||
gaps_out = 10;
|
|
||||||
layout = "dwindle";
|
|
||||||
resize_on_border = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
snap = {
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
input = {
|
|
||||||
kb_layout = "de";
|
|
||||||
};
|
|
||||||
|
|
||||||
bind = builtins.concatLists [
|
|
||||||
[
|
|
||||||
"$mod, Q, exit"
|
|
||||||
"$mod, Return, exec, kitty"
|
|
||||||
"$mod, D, exec, wofi --show drun"
|
|
||||||
"$mod, F2, exec, firefox"
|
|
||||||
"$mod, c, killactive"
|
|
||||||
"$mod, f, fullscreen"
|
|
||||||
]
|
|
||||||
# Switch workspaces
|
|
||||||
(map (i: "$mod, ${builtins.toString i}, workspace, ${builtins.toString i}") [1 2 3 4 5 6 7 8 9])
|
|
||||||
(map (i: "$mod+SHIFT, ${builtins.toString i}, movetoworkspace, ${builtins.toString i}") [1 2 3 4 5 6 7 8 9])
|
|
||||||
];
|
|
||||||
|
|
||||||
decoration = {
|
|
||||||
shadow.enabled = false;
|
|
||||||
blur.enabled = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
misc.disable_hyprland_logo = true;
|
|
||||||
|
|
||||||
cursor.inactive_timeout = 5;
|
|
||||||
|
|
||||||
ecosystem.no_update_news = true;
|
|
||||||
ecosystem.no_donation_nag = true;
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
{ config, pkgs, lib, ...}: {
|
|
||||||
|
|
||||||
# Required for zsh autocompletion
|
|
||||||
environment.pathsToLink = [ "/share/zsh" ];
|
|
||||||
programs.zsh.enable = true;
|
|
||||||
|
|
||||||
home-manager.users.weckyy702 = { pkgs, ... }: {
|
|
||||||
home.shell.enableZshIntegration = true;
|
|
||||||
programs.zsh = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.zsh;
|
|
||||||
|
|
||||||
enableCompletion = true;
|
|
||||||
autocd = true;
|
|
||||||
autosuggestion.enable = true;
|
|
||||||
plugins = [
|
|
||||||
{
|
|
||||||
name = "powerlevel10k-config";
|
|
||||||
src = ./.;
|
|
||||||
file="p10k.zsh";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "zsh-powerlevel10k";
|
|
||||||
src = "${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k";
|
|
||||||
file="powerlevel10k.zsh-theme";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
oh-my-zsh = {
|
|
||||||
enable = true;
|
|
||||||
theme = "robbyrussell";
|
|
||||||
plugins = [
|
|
||||||
"git"
|
|
||||||
"sudo"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
syntaxHighlighting = {
|
|
||||||
enable = true;
|
|
||||||
highlighters = [
|
|
||||||
"brackets"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
initContent = lib.mkBefore ''
|
|
||||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
|
||||||
# Initialization code that may require console input (password prompts, [y/n]
|
|
||||||
# confirmations, etc.) must go above this block; everything else may go below.
|
|
||||||
if [[ -r "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh" ]]; then
|
|
||||||
source "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh"
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
|
|
||||||
shellAliases = {
|
|
||||||
#TODO
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,88 +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, inputs, hostname, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[ # Include the results of the hardware scan.
|
|
||||||
./hardware-configuration.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
# Bootloader.
|
|
||||||
boot.loader.grub.enable = true;
|
|
||||||
boot.loader.grub.device = "/dev/nvme0n1";
|
|
||||||
|
|
||||||
# Use latest kernel.
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
|
|
||||||
networking.hostName = hostname; # Define your hostname.
|
|
||||||
# Enable networking
|
|
||||||
networking.networkmanager.enable = true;
|
|
||||||
|
|
||||||
# Set your time zone.
|
|
||||||
time.timeZone = "Europe/Berlin";
|
|
||||||
|
|
||||||
# Select internationalisation properties.
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
|
|
||||||
i18n.extraLocaleSettings = {
|
|
||||||
LC_ADDRESS = "de_DE.UTF-8";
|
|
||||||
LC_IDENTIFICATION = "de_DE.UTF-8";
|
|
||||||
LC_MEASUREMENT = "de_DE.UTF-8";
|
|
||||||
LC_MONETARY = "de_DE.UTF-8";
|
|
||||||
LC_NAME = "de_DE.UTF-8";
|
|
||||||
LC_NUMERIC = "de_DE.UTF-8";
|
|
||||||
LC_PAPER = "de_DE.UTF-8";
|
|
||||||
LC_TELEPHONE = "de_DE.UTF-8";
|
|
||||||
LC_TIME = "de_DE.UTF-8";
|
|
||||||
};
|
|
||||||
|
|
||||||
security.polkit.enable = true;
|
|
||||||
|
|
||||||
# Configure console keymap
|
|
||||||
console.keyMap = "de";
|
|
||||||
|
|
||||||
nix.settings.experimental-features = [
|
|
||||||
"nix-command"
|
|
||||||
"flakes"
|
|
||||||
];
|
|
||||||
|
|
||||||
# Allow unfree packages
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
vim
|
|
||||||
wget
|
|
||||||
kitty
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
# 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 = [ ... ];
|
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
||||||
# 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 = "25.11"; # Did you read the comment?
|
|
||||||
}
|
|
||||||
@@ -1,32 +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")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
|
||||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
|
|
||||||
fileSystems."/" =
|
|
||||||
{ device = "/dev/disk/by-uuid/0869e843-348d-47e3-b6a1-79ad814ff62b";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
#TODO: add external hdd, nas, and ssd
|
|
||||||
|
|
||||||
swapDevices =
|
|
||||||
[ { device = "/dev/disk/by-uuid/40b22e5b-839d-4189-93e7-246407cc76c7"; }
|
|
||||||
];
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
|
|
||||||
hardware.graphics.enable = true;
|
|
||||||
hardware.graphics.extraPackages = [ pkgs.rocmPackages.clr.icd ];
|
|
||||||
}
|
|
||||||
@@ -1,312 +0,0 @@
|
|||||||
|
|
||||||
# #######################################################################################
|
|
||||||
# AUTOGENERATED HYPRLAND CONFIG.
|
|
||||||
# EDIT THIS CONFIG ACCORDING TO THE WIKI INSTRUCTIONS.
|
|
||||||
# #######################################################################################
|
|
||||||
|
|
||||||
autogenerated = 1 # remove this line to remove the warning
|
|
||||||
|
|
||||||
# This is an example Hyprland config file.
|
|
||||||
# Refer to the wiki for more information.
|
|
||||||
# https://wiki.hypr.land/Configuring/
|
|
||||||
|
|
||||||
# Please note not all available settings / options are set here.
|
|
||||||
# For a full list, see the wiki
|
|
||||||
|
|
||||||
# You can split this configuration into multiple files
|
|
||||||
# Create your files separately and then link them to this file like this:
|
|
||||||
# source = ~/.config/hypr/myColors.conf
|
|
||||||
|
|
||||||
|
|
||||||
################
|
|
||||||
### MONITORS ###
|
|
||||||
################
|
|
||||||
|
|
||||||
# See https://wiki.hypr.land/Configuring/Monitors/
|
|
||||||
monitor=,preferred,auto,auto
|
|
||||||
|
|
||||||
|
|
||||||
###################
|
|
||||||
### MY PROGRAMS ###
|
|
||||||
###################
|
|
||||||
|
|
||||||
# See https://wiki.hypr.land/Configuring/Keywords/
|
|
||||||
|
|
||||||
# Set programs that you use
|
|
||||||
$terminal = kitty
|
|
||||||
$fileManager = dolphin
|
|
||||||
$menu = wofi --show drun
|
|
||||||
|
|
||||||
|
|
||||||
#################
|
|
||||||
### AUTOSTART ###
|
|
||||||
#################
|
|
||||||
|
|
||||||
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
|
||||||
# Or execute your favorite apps at launch like this:
|
|
||||||
|
|
||||||
# exec-once = $terminal
|
|
||||||
# exec-once = nm-applet &
|
|
||||||
# exec-once = waybar & hyprpaper & firefox
|
|
||||||
|
|
||||||
|
|
||||||
#############################
|
|
||||||
### ENVIRONMENT VARIABLES ###
|
|
||||||
#############################
|
|
||||||
|
|
||||||
# See https://wiki.hypr.land/Configuring/Environment-variables/
|
|
||||||
|
|
||||||
env = XCURSOR_SIZE,24
|
|
||||||
env = HYPRCURSOR_SIZE,24
|
|
||||||
|
|
||||||
|
|
||||||
###################
|
|
||||||
### PERMISSIONS ###
|
|
||||||
###################
|
|
||||||
|
|
||||||
# See https://wiki.hypr.land/Configuring/Permissions/
|
|
||||||
# Please note permission changes here require a Hyprland restart and are not applied on-the-fly
|
|
||||||
# for security reasons
|
|
||||||
|
|
||||||
# ecosystem {
|
|
||||||
# enforce_permissions = 1
|
|
||||||
# }
|
|
||||||
|
|
||||||
# permission = /usr/(bin|local/bin)/grim, screencopy, allow
|
|
||||||
# permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow
|
|
||||||
# permission = /usr/(bin|local/bin)/hyprpm, plugin, allow
|
|
||||||
|
|
||||||
|
|
||||||
#####################
|
|
||||||
### LOOK AND FEEL ###
|
|
||||||
#####################
|
|
||||||
|
|
||||||
# Refer to https://wiki.hypr.land/Configuring/Variables/
|
|
||||||
|
|
||||||
# https://wiki.hypr.land/Configuring/Variables/#general
|
|
||||||
general {
|
|
||||||
gaps_in = 5
|
|
||||||
gaps_out = 20
|
|
||||||
|
|
||||||
border_size = 2
|
|
||||||
|
|
||||||
# https://wiki.hypr.land/Configuring/Variables/#variable-types for info about colors
|
|
||||||
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
|
||||||
col.inactive_border = rgba(595959aa)
|
|
||||||
|
|
||||||
# Set to true enable resizing windows by clicking and dragging on borders and gaps
|
|
||||||
resize_on_border = false
|
|
||||||
|
|
||||||
# Please see https://wiki.hypr.land/Configuring/Tearing/ before you turn this on
|
|
||||||
allow_tearing = false
|
|
||||||
|
|
||||||
layout = dwindle
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hypr.land/Configuring/Variables/#decoration
|
|
||||||
decoration {
|
|
||||||
rounding = 10
|
|
||||||
rounding_power = 2
|
|
||||||
|
|
||||||
# Change transparency of focused and unfocused windows
|
|
||||||
active_opacity = 1.0
|
|
||||||
inactive_opacity = 1.0
|
|
||||||
|
|
||||||
shadow {
|
|
||||||
enabled = true
|
|
||||||
range = 4
|
|
||||||
render_power = 3
|
|
||||||
color = rgba(1a1a1aee)
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hypr.land/Configuring/Variables/#blur
|
|
||||||
blur {
|
|
||||||
enabled = true
|
|
||||||
size = 3
|
|
||||||
passes = 1
|
|
||||||
|
|
||||||
vibrancy = 0.1696
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hypr.land/Configuring/Variables/#animations
|
|
||||||
animations {
|
|
||||||
enabled = yes, please :)
|
|
||||||
|
|
||||||
# Default curves, see https://wiki.hypr.land/Configuring/Animations/#curves
|
|
||||||
# NAME, X0, Y0, X1, Y1
|
|
||||||
bezier = easeOutQuint, 0.23, 1, 0.32, 1
|
|
||||||
bezier = easeInOutCubic, 0.65, 0.05, 0.36, 1
|
|
||||||
bezier = linear, 0, 0, 1, 1
|
|
||||||
bezier = almostLinear, 0.5, 0.5, 0.75, 1
|
|
||||||
bezier = quick, 0.15, 0, 0.1, 1
|
|
||||||
|
|
||||||
# Default animations, see https://wiki.hypr.land/Configuring/Animations/
|
|
||||||
# NAME, ONOFF, SPEED, CURVE, [STYLE]
|
|
||||||
animation = global, 1, 10, default
|
|
||||||
animation = border, 1, 5.39, easeOutQuint
|
|
||||||
animation = windows, 1, 4.79, easeOutQuint
|
|
||||||
animation = windowsIn, 1, 4.1, easeOutQuint, popin 87%
|
|
||||||
animation = windowsOut, 1, 1.49, linear, popin 87%
|
|
||||||
animation = fadeIn, 1, 1.73, almostLinear
|
|
||||||
animation = fadeOut, 1, 1.46, almostLinear
|
|
||||||
animation = fade, 1, 3.03, quick
|
|
||||||
animation = layers, 1, 3.81, easeOutQuint
|
|
||||||
animation = layersIn, 1, 4, easeOutQuint, fade
|
|
||||||
animation = layersOut, 1, 1.5, linear, fade
|
|
||||||
animation = fadeLayersIn, 1, 1.79, almostLinear
|
|
||||||
animation = fadeLayersOut, 1, 1.39, almostLinear
|
|
||||||
animation = workspaces, 1, 1.94, almostLinear, fade
|
|
||||||
animation = workspacesIn, 1, 1.21, almostLinear, fade
|
|
||||||
animation = workspacesOut, 1, 1.94, almostLinear, fade
|
|
||||||
animation = zoomFactor, 1, 7, quick
|
|
||||||
}
|
|
||||||
|
|
||||||
# Ref https://wiki.hypr.land/Configuring/Workspace-Rules/
|
|
||||||
# "Smart gaps" / "No gaps when only"
|
|
||||||
# uncomment all if you wish to use that.
|
|
||||||
# workspace = w[tv1], gapsout:0, gapsin:0
|
|
||||||
# workspace = f[1], gapsout:0, gapsin:0
|
|
||||||
# windowrule = bordersize 0, floating:0, onworkspace:w[tv1]
|
|
||||||
# windowrule = rounding 0, floating:0, onworkspace:w[tv1]
|
|
||||||
# windowrule = bordersize 0, floating:0, onworkspace:f[1]
|
|
||||||
# windowrule = rounding 0, floating:0, onworkspace:f[1]
|
|
||||||
|
|
||||||
# See https://wiki.hypr.land/Configuring/Dwindle-Layout/ for more
|
|
||||||
dwindle {
|
|
||||||
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
|
||||||
preserve_split = true # You probably want this
|
|
||||||
}
|
|
||||||
|
|
||||||
# See https://wiki.hypr.land/Configuring/Master-Layout/ for more
|
|
||||||
master {
|
|
||||||
new_status = master
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hypr.land/Configuring/Variables/#misc
|
|
||||||
misc {
|
|
||||||
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
|
|
||||||
disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#############
|
|
||||||
### INPUT ###
|
|
||||||
#############
|
|
||||||
|
|
||||||
# https://wiki.hypr.land/Configuring/Variables/#input
|
|
||||||
input {
|
|
||||||
kb_layout = de
|
|
||||||
kb_variant =
|
|
||||||
kb_model =
|
|
||||||
kb_options =
|
|
||||||
kb_rules =
|
|
||||||
|
|
||||||
follow_mouse = 1
|
|
||||||
|
|
||||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
|
||||||
|
|
||||||
touchpad {
|
|
||||||
natural_scroll = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# See https://wiki.hypr.land/Configuring/Gestures
|
|
||||||
gesture = 3, horizontal, workspace
|
|
||||||
|
|
||||||
# Example per-device config
|
|
||||||
# See https://wiki.hypr.land/Configuring/Keywords/#per-device-input-configs for more
|
|
||||||
device {
|
|
||||||
name = epic-mouse-v1
|
|
||||||
sensitivity = -0.5
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
###################
|
|
||||||
### KEYBINDINGS ###
|
|
||||||
###################
|
|
||||||
|
|
||||||
# See https://wiki.hypr.land/Configuring/Keywords/
|
|
||||||
$mainMod = SUPER # Sets "Windows" key as main modifier
|
|
||||||
|
|
||||||
# Example binds, see https://wiki.hypr.land/Configuring/Binds/ for more
|
|
||||||
bind = $mainMod, Q, exec, $terminal
|
|
||||||
bind = $mainMod, C, killactive,
|
|
||||||
bind = $mainMod, M, exit,
|
|
||||||
bind = $mainMod, E, exec, $fileManager
|
|
||||||
bind = $mainMod, V, togglefloating,
|
|
||||||
bind = $mainMod, R, exec, $menu
|
|
||||||
bind = $mainMod, P, pseudo, # dwindle
|
|
||||||
bind = $mainMod, J, togglesplit, # dwindle
|
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
|
||||||
bind = $mainMod, left, movefocus, l
|
|
||||||
bind = $mainMod, right, movefocus, r
|
|
||||||
bind = $mainMod, up, movefocus, u
|
|
||||||
bind = $mainMod, down, movefocus, d
|
|
||||||
|
|
||||||
# Switch workspaces with mainMod + [0-9]
|
|
||||||
bind = $mainMod, 1, workspace, 1
|
|
||||||
bind = $mainMod, 2, workspace, 2
|
|
||||||
bind = $mainMod, 3, workspace, 3
|
|
||||||
bind = $mainMod, 4, workspace, 4
|
|
||||||
bind = $mainMod, 5, workspace, 5
|
|
||||||
bind = $mainMod, 6, workspace, 6
|
|
||||||
bind = $mainMod, 7, workspace, 7
|
|
||||||
bind = $mainMod, 8, workspace, 8
|
|
||||||
bind = $mainMod, 9, workspace, 9
|
|
||||||
bind = $mainMod, 0, workspace, 10
|
|
||||||
|
|
||||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
|
||||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
|
||||||
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
|
||||||
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
|
||||||
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
|
||||||
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
|
||||||
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
|
||||||
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
|
||||||
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
|
||||||
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
|
||||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
|
||||||
|
|
||||||
# Example special workspace (scratchpad)
|
|
||||||
bind = $mainMod, S, togglespecialworkspace, magic
|
|
||||||
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
|
|
||||||
|
|
||||||
# Scroll through existing workspaces with mainMod + scroll
|
|
||||||
bind = $mainMod, mouse_down, workspace, e+1
|
|
||||||
bind = $mainMod, mouse_up, workspace, e-1
|
|
||||||
|
|
||||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
|
||||||
bindm = $mainMod, mouse:272, movewindow
|
|
||||||
bindm = $mainMod, mouse:273, resizewindow
|
|
||||||
|
|
||||||
# Laptop multimedia keys for volume and LCD brightness
|
|
||||||
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
|
|
||||||
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
|
||||||
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
|
||||||
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
|
||||||
bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+
|
|
||||||
bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%-
|
|
||||||
|
|
||||||
# Requires playerctl
|
|
||||||
bindl = , XF86AudioNext, exec, playerctl next
|
|
||||||
bindl = , XF86AudioPause, exec, playerctl play-pause
|
|
||||||
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
|
||||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
|
||||||
|
|
||||||
##############################
|
|
||||||
### WINDOWS AND WORKSPACES ###
|
|
||||||
##############################
|
|
||||||
|
|
||||||
# See https://wiki.hypr.land/Configuring/Window-Rules/ for more
|
|
||||||
# See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules
|
|
||||||
|
|
||||||
# Example windowrule
|
|
||||||
# windowrule = float,class:^(kitty)$,title:^(kitty)$
|
|
||||||
|
|
||||||
# Ignore maximize requests from apps. You'll probably like this.
|
|
||||||
windowrule = suppressevent maximize, class:.*
|
|
||||||
|
|
||||||
# Fix some dragging issues with XWayland
|
|
||||||
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
|
|
||||||
22
modules/factory/autologin.nix
Normal file
22
modules/factory/autologin.nix
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
config.flake.factory.autologin = username: {
|
||||||
|
imports = with inputs.self.modules.nixos; [
|
||||||
|
];
|
||||||
|
services.getty.autologinUser = username;
|
||||||
|
|
||||||
|
home-manager.sharedModules = [
|
||||||
|
inputs.self.modules.homeManager.autologin
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
config.flake.modules.homeManager.autologin = {
|
||||||
|
imports = with inputs.self.modules.homeManager; [
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.zsh.profileExtra = ''
|
||||||
|
if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
|
||||||
|
exec hyprland
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
6
modules/factory/flake-option.nix
Normal file
6
modules/factory/flake-option.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ lib, ... }: {
|
||||||
|
options.flake.factory = lib.mkOption {
|
||||||
|
type = lib.types.attrsOf lib.types.unspecified;
|
||||||
|
default = { };
|
||||||
|
};
|
||||||
|
}
|
||||||
9
modules/factory/grub-boot.nix
Normal file
9
modules/factory/grub-boot.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
config.flake.factory.grub-boot = device: {
|
||||||
|
boot.loader.grub = {
|
||||||
|
enable = true;
|
||||||
|
inherit device;
|
||||||
|
configurationLimit = 10;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
22
modules/factory/hyprpaper.nix
Normal file
22
modules/factory/hyprpaper.nix
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
config.flake.factory.hyprpaper = mappings: { config
|
||||||
|
, osConfig
|
||||||
|
, lib
|
||||||
|
, ...
|
||||||
|
}: {
|
||||||
|
services.hyprpaper = assert osConfig.programs.hyprland.enable; {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
preload = map ({ path, ... }: path) mappings;
|
||||||
|
wallpaper =
|
||||||
|
map
|
||||||
|
({ monitor
|
||||||
|
, path
|
||||||
|
, prefix ? ""
|
||||||
|
,
|
||||||
|
}: "${monitor},${prefix}${path}")
|
||||||
|
mappings;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
39
modules/factory/mount-cifs.nix
Normal file
39
modules/factory/mount-cifs.nix
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
config.flake.factory.mount-cifs =
|
||||||
|
{ host
|
||||||
|
, resource
|
||||||
|
, destination
|
||||||
|
, credentials_path
|
||||||
|
, UID
|
||||||
|
, GID
|
||||||
|
,
|
||||||
|
}: { pkgs, ... }: {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
cifs-utils
|
||||||
|
];
|
||||||
|
fileSystems."${destination}" = {
|
||||||
|
device = "//${host}/${resource}";
|
||||||
|
fsType = "cifs";
|
||||||
|
options = [
|
||||||
|
# automount
|
||||||
|
"x-systemd.automount"
|
||||||
|
"noauto"
|
||||||
|
"nofail"
|
||||||
|
"soft"
|
||||||
|
"x-systemd.idle-timeout=60"
|
||||||
|
"x-systemd.device-timeout=5s"
|
||||||
|
"x-systemd.mount-timeout=5s"
|
||||||
|
|
||||||
|
# mount options
|
||||||
|
"rw"
|
||||||
|
"iocharset=utf8"
|
||||||
|
|
||||||
|
# user
|
||||||
|
"uid=${UID}"
|
||||||
|
"gid=${GID}"
|
||||||
|
|
||||||
|
"credentials=${credentials_path}"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
30
modules/factory/user.nix
Normal file
30
modules/factory/user.nix
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
{ self, ... }: {
|
||||||
|
config.flake.factory.user = username: isAdmin: {
|
||||||
|
nixos."${username}" =
|
||||||
|
{ lib
|
||||||
|
, pkgs
|
||||||
|
, ...
|
||||||
|
}: {
|
||||||
|
users.users."${username}" = {
|
||||||
|
isNormalUser = true;
|
||||||
|
home = "/home/${username}";
|
||||||
|
extraGroups = lib.optionals isAdmin [ "wheel" ];
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
# required for zsh completion
|
||||||
|
environment.pathsToLink = [ "/share/zsh" ];
|
||||||
|
|
||||||
|
home-manager.users."${username}" = {
|
||||||
|
imports = [
|
||||||
|
self.modules.homeManager."${username}"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
homeManager."${username}" = {
|
||||||
|
home.username = "${username}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
8
modules/factory/wpaperd.nix
Normal file
8
modules/factory/wpaperd.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
config.flake.factory.wpaperd = config: {
|
||||||
|
services.wpaperd = {
|
||||||
|
enable = true;
|
||||||
|
settings = config;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
14
modules/hosts/keith/configuration.nix
Normal file
14
modules/hosts/keith/configuration.nix
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake.modules.nixos.keith = {
|
||||||
|
imports = with inputs.self.modules.nixos;
|
||||||
|
with inputs.self.factory; [
|
||||||
|
system-desktop
|
||||||
|
(autologin "weckyy702")
|
||||||
|
(grub-boot "/dev/nvme0n1")
|
||||||
|
development-tools
|
||||||
|
i18n-de
|
||||||
|
|
||||||
|
#TODO: moar aspects
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
12
modules/hosts/keith/filesystems.nix
Normal file
12
modules/hosts/keith/filesystems.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.keith = {
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "/dev/disk/by-uuid/0869e843-348d-47e3-b6a1-79ad814ff62b";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [
|
||||||
|
{ device = "/dev/disk/by-uuid/40b22e5b-839d-4189-93e7-246407cc76c7"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
3
modules/hosts/keith/flake-parts.nix
Normal file
3
modules/hosts/keith/flake-parts.nix
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake.nixosConfigurations = inputs.self.lib.mkNixos "x86_64-linux" "keith";
|
||||||
|
}
|
||||||
13
modules/hosts/keith/hardware.nix
Normal file
13
modules/hosts/keith/hardware.nix
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake.modules.nixos.keith = { lib, ... }: {
|
||||||
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
imports = with inputs.self.modules.nixos; [
|
||||||
|
amd-gpu
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
|
hardware.cpu.amd.updateMicrocode = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
31
modules/hosts/keith/networking.nix
Normal file
31
modules/hosts/keith/networking.nix
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.keith = {
|
||||||
|
networking.hostName = "keith";
|
||||||
|
|
||||||
|
networking.networkmanager = {
|
||||||
|
enable = true;
|
||||||
|
ensureProfiles.profiles = {
|
||||||
|
p2p-nas = {
|
||||||
|
connection = {
|
||||||
|
id = "p2p-nas";
|
||||||
|
type = "ethernet";
|
||||||
|
interface-name = "enp1s0";
|
||||||
|
autoconnect = true;
|
||||||
|
};
|
||||||
|
ipv6 = {
|
||||||
|
method = "manual";
|
||||||
|
addresses = "fd00:fa57::1/64";
|
||||||
|
};
|
||||||
|
ipv4.method = "disabled";
|
||||||
|
ethernet.mtu = 9000;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.extraHosts = ''
|
||||||
|
fd00:fa57::2 duke.veltnet
|
||||||
|
'';
|
||||||
|
|
||||||
|
networking.firewall.enable = false;
|
||||||
|
};
|
||||||
|
}
|
||||||
6
modules/hosts/keith/users/weckyy702/filesystems.nix
Normal file
6
modules/hosts/keith/users/weckyy702/filesystems.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.keith.fileSystems."/home/weckyy702/Documents" = {
|
||||||
|
device = "/dev/disk/by-uuid/2d6f2255-eca4-489b-9f0f-6c455cd394fc";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
}
|
||||||
16
modules/hosts/keith/users/weckyy702/mount-nas.nix
Normal file
16
modules/hosts/keith/users/weckyy702/mount-nas.nix
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake.modules.nixos.keith = { config, ... }: {
|
||||||
|
age.secrets."nas-creds".file = "${inputs.secrets}/nas-creds.age";
|
||||||
|
|
||||||
|
imports = with inputs.self.factory; [
|
||||||
|
(mount-cifs {
|
||||||
|
host = "duke.veltnet";
|
||||||
|
resource = "home";
|
||||||
|
destination = "/home/weckyy702/duke";
|
||||||
|
credentials_path = "${config.age.secrets.nas-creds.path}";
|
||||||
|
UID = "weckyy702";
|
||||||
|
GID = "users";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
25
modules/hosts/keith/users/weckyy702/weckyy702.nix
Normal file
25
modules/hosts/keith/users/weckyy702/weckyy702.nix
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake.modules.nixos.keith = { config, ... }: {
|
||||||
|
imports = with inputs.self.modules.nixos; [
|
||||||
|
weckyy702
|
||||||
|
steam
|
||||||
|
];
|
||||||
|
|
||||||
|
home-manager.users.weckyy702 = { config, ... }: {
|
||||||
|
imports = with inputs.self.modules.homeManager;
|
||||||
|
with inputs.self.factory; [
|
||||||
|
(hyprpaper {
|
||||||
|
wallpaper_path = "${inputs.assets}/horizontal_16x9.png";
|
||||||
|
monitor_names = [
|
||||||
|
"DP-1"
|
||||||
|
"HDMI-A-1"
|
||||||
|
];
|
||||||
|
})
|
||||||
|
vesktop
|
||||||
|
spicetify
|
||||||
|
borgmatic
|
||||||
|
qbittorrent
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
20
modules/hosts/tux/filesystems.nix
Normal file
20
modules/hosts/tux/filesystems.nix
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.tux = {
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/39bb2139-7d71-4f3d-9c11-2cf3fe26ad7d";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/6514-61C0";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices =
|
||||||
|
[ { device = "/dev/disk/by-uuid/ac1606de-34d3-4036-baf6-2ed17e54bfc3"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
3
modules/hosts/tux/flake-parts.nix
Normal file
3
modules/hosts/tux/flake-parts.nix
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{ inputs, ...}: {
|
||||||
|
flake.nixosConfigurations = inputs.self.lib.mkNixos "x86_64-linux" "tux";
|
||||||
|
}
|
||||||
15
modules/hosts/tux/hardware.nix
Normal file
15
modules/hosts/tux/hardware.nix
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{inputs, ...}: {
|
||||||
|
flake.modules.nixos.tux = {
|
||||||
|
imports = with inputs.self.modules.nixos; [
|
||||||
|
intel-gpu
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
|
|
||||||
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
hardware.cpu.intel.updateMicrocode = true;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
8
modules/hosts/tux/networking.nix
Normal file
8
modules/hosts/tux/networking.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{inputs, ...}: {
|
||||||
|
flake.modules.nixos.tux = {
|
||||||
|
imports = with inputs.self.modules.nixos; [
|
||||||
|
networkmanager
|
||||||
|
];
|
||||||
|
networking.hostName = "tux";
|
||||||
|
};
|
||||||
|
}
|
||||||
17
modules/hosts/tux/tux.nix
Normal file
17
modules/hosts/tux/tux.nix
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake.modules.nixos.tux = {
|
||||||
|
imports = with inputs.self.modules.nixos;
|
||||||
|
with inputs.self.factory; [
|
||||||
|
system-desktop
|
||||||
|
systemd-boot
|
||||||
|
|
||||||
|
(autologin "weckyy702")
|
||||||
|
|
||||||
|
development-tools
|
||||||
|
i18n-de
|
||||||
|
tailscale
|
||||||
|
|
||||||
|
#TODO: laptop specific aspects like powertop
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
8
modules/hosts/tux/users/weckyy702/backlight.nix
Normal file
8
modules/hosts/tux/users/weckyy702/backlight.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake.modules.nixos.tux = {
|
||||||
|
imports = with inputs.self.modules.nixos; [
|
||||||
|
backlight
|
||||||
|
];
|
||||||
|
users.users.weckyy702.extraGroups = [ "video" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
19
modules/hosts/tux/users/weckyy702/hyprland.nix
Normal file
19
modules/hosts/tux/users/weckyy702/hyprland.nix
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake-file.inputs = {
|
||||||
|
aghpb = {
|
||||||
|
url = "github:cat-milk/Anime-Girls-Holding-Programming-Books";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.modules.homeManager.tux-hyprland = {
|
||||||
|
imports = with inputs.self.modules.homeManager; [
|
||||||
|
ashell
|
||||||
|
];
|
||||||
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
monitor = [
|
||||||
|
"eDP-1,preferred,0x0,1.066666667"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
16
modules/hosts/tux/users/weckyy702/mount-nas.nix
Normal file
16
modules/hosts/tux/users/weckyy702/mount-nas.nix
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake.modules.nixos.tux = { config, ... }: {
|
||||||
|
age.secrets."nas-creds".file = "${inputs.secrets}/nas-creds.age";
|
||||||
|
|
||||||
|
imports = with inputs.self.factory; [
|
||||||
|
(mount-cifs {
|
||||||
|
host = "duke.veltnet";
|
||||||
|
resource = "smb-share";
|
||||||
|
destination = "/home/weckyy702/duke";
|
||||||
|
credentials_path = "${config.age.secrets.nas-creds.path}";
|
||||||
|
UID = "weckyy702";
|
||||||
|
GID = "users";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
14
modules/hosts/tux/users/weckyy702/wallpaper.nix
Normal file
14
modules/hosts/tux/users/weckyy702/wallpaper.nix
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake.modules.homeManager.randomized-aghpb-wallpaper = {
|
||||||
|
imports = with inputs.self.factory; [
|
||||||
|
(wpaperd {
|
||||||
|
default = {
|
||||||
|
path = inputs.aghpb;
|
||||||
|
recursive = true;
|
||||||
|
mode = "stretch";
|
||||||
|
duration = "5m";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
20
modules/hosts/tux/users/weckyy702/weckyy702.nix
Normal file
20
modules/hosts/tux/users/weckyy702/weckyy702.nix
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake.modules.nixos.tux = {
|
||||||
|
imports = with inputs.self.modules.nixos; [
|
||||||
|
weckyy702
|
||||||
|
upower
|
||||||
|
];
|
||||||
|
|
||||||
|
home-manager.users.weckyy702 = {
|
||||||
|
imports = with inputs.self.modules.homeManager;
|
||||||
|
with inputs.self.factory; [
|
||||||
|
borgmatic
|
||||||
|
obsidian
|
||||||
|
vesktop
|
||||||
|
tux-hyprland
|
||||||
|
randomized-aghpb-wallpaper
|
||||||
|
nm-applet
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
8
modules/nix/assets.nix
Normal file
8
modules/nix/assets.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
flake-file.inputs = {
|
||||||
|
assets = {
|
||||||
|
url = "path:./assets";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
22
modules/nix/flake-parts/flake-file.nix
Normal file
22
modules/nix/flake-parts/flake-file.nix
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
imports = [
|
||||||
|
inputs.flake-parts.flakeModules.modules
|
||||||
|
inputs.flake-file.flakeModules.default
|
||||||
|
];
|
||||||
|
|
||||||
|
flake-file.inputs = {
|
||||||
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
|
flake-file.url = "github:vic/flake-file";
|
||||||
|
import-tree.url = "github:vic/import-tree";
|
||||||
|
};
|
||||||
|
|
||||||
|
flake-file.outputs = ''
|
||||||
|
inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules)
|
||||||
|
'';
|
||||||
|
|
||||||
|
systems = [
|
||||||
|
# f Darwin >:(
|
||||||
|
"aarch64-linux"
|
||||||
|
"x86_64-linux"
|
||||||
|
];
|
||||||
|
}
|
||||||
33
modules/nix/flake-parts/lib.nix
Normal file
33
modules/nix/flake-parts/lib.nix
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
{ inputs
|
||||||
|
, lib
|
||||||
|
, ...
|
||||||
|
}: {
|
||||||
|
# Helper functions for creating system / home-manager configurations
|
||||||
|
|
||||||
|
options.flake.lib = lib.mkOption {
|
||||||
|
type = lib.types.attrsOf lib.types.unspecified;
|
||||||
|
default = { };
|
||||||
|
};
|
||||||
|
|
||||||
|
config.flake.lib = {
|
||||||
|
mkNixos = system: name: {
|
||||||
|
${name} = inputs.nixpkgs.lib.nixosSystem {
|
||||||
|
modules = [
|
||||||
|
inputs.self.modules.nixos.${name}
|
||||||
|
{ nixpkgs.hostPlatform = lib.mkDefault system; }
|
||||||
|
{ nixpkgs.config.allowUnfree = true; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
mkHomeManager = system: name: {
|
||||||
|
${name} = inputs.home-manager.lib.homeManagerConfiguration {
|
||||||
|
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
||||||
|
modules = [
|
||||||
|
inputs.self.modules.homeManager.${name}
|
||||||
|
{ nixpkgs.config.allowUnfree = true; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
23
modules/nix/tools/home-manager.nix
Normal file
23
modules/nix/tools/home-manager.nix
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{ inputs
|
||||||
|
, config
|
||||||
|
, ...
|
||||||
|
}: {
|
||||||
|
# Add home-manager input
|
||||||
|
flake-file.inputs = {
|
||||||
|
home-manager.url = "github:nix-community/home-manager/release-25.11";
|
||||||
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
imports = [ inputs.home-manager.flakeModules.home-manager ];
|
||||||
|
|
||||||
|
flake.modules.nixos.home-manager = {
|
||||||
|
imports = [
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
];
|
||||||
|
|
||||||
|
home-manager = {
|
||||||
|
verbose = true;
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
26
modules/nix/tools/secrets.nix
Normal file
26
modules/nix/tools/secrets.nix
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake-file.inputs = {
|
||||||
|
agenix = {
|
||||||
|
url = "github:ryantm/agenix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
inputs.home-manager.follows = "home-manager";
|
||||||
|
};
|
||||||
|
secrets = {
|
||||||
|
url = "path:./secrets";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.modules.nixos.secrets = { pkgs, ... }: {
|
||||||
|
imports = [
|
||||||
|
inputs.agenix.nixosModules.default
|
||||||
|
];
|
||||||
|
environment.systemPackages = [ inputs.agenix.packages.${pkgs.stdenv.hostPlatform.system}.default ];
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.modules.homeManager.secrets = { pkgs, ... }: {
|
||||||
|
imports = [
|
||||||
|
inputs.agenix.homeManagerModules.default
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
48
modules/programs/ashell.nix
Normal file
48
modules/programs/ashell.nix
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.ashell =
|
||||||
|
{ config
|
||||||
|
, lib
|
||||||
|
, ...
|
||||||
|
}: {
|
||||||
|
programs.ashell = {
|
||||||
|
enable = true;
|
||||||
|
systemd.enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
modules = {
|
||||||
|
left = [ "Workspaces" ];
|
||||||
|
center = [ "Clock" ];
|
||||||
|
right = [ "Tray" [ "SystemInfo" "Settings" ] ];
|
||||||
|
};
|
||||||
|
|
||||||
|
system_info.indicators = [ "Cpu" "Memory" "Temperature" "DownloadSpeed" "UploadSpeed" ];
|
||||||
|
|
||||||
|
settings.indicators = [ "Battery" ];
|
||||||
|
|
||||||
|
appearance = lib.mkIf config.catppuccin.enable {
|
||||||
|
success_color = "#a6e3a1";
|
||||||
|
text_color = "#cdd6f4";
|
||||||
|
workspace_colors = [ "#fab387" "#b4befe" "#cba6f7" ];
|
||||||
|
|
||||||
|
primary_color = {
|
||||||
|
base = "#fab387";
|
||||||
|
text = "#1e1e2e";
|
||||||
|
};
|
||||||
|
danger_color = {
|
||||||
|
base = "#f38ba8";
|
||||||
|
weak = "#f9e2af";
|
||||||
|
};
|
||||||
|
background_color = {
|
||||||
|
base = "#1e1e2e";
|
||||||
|
weak = "#313244";
|
||||||
|
strong = "#45475a";
|
||||||
|
};
|
||||||
|
secondary_color = {
|
||||||
|
base = "#11111b";
|
||||||
|
strong = "#1b1b25";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
14
modules/programs/browser.nix
Normal file
14
modules/programs/browser.nix
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake-file.inputs = {
|
||||||
|
zen-browser = {
|
||||||
|
url = "github:youwen5/zen-browser-flake";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.modules.homeManager.browser = { pkgs, ... }: {
|
||||||
|
home.packages = [
|
||||||
|
inputs.zen-browser.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
12
modules/programs/btop.nix
Normal file
12
modules/programs/btop.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.btop = { pkgs, ... }: {
|
||||||
|
programs.btop = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
vim_keys = true;
|
||||||
|
proc_tree = true;
|
||||||
|
proc_aggregate = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
48
modules/programs/catppuccin.nix
Normal file
48
modules/programs/catppuccin.nix
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake-file.inputs = {
|
||||||
|
catppuccin.url = "github:catppuccin/nix/release-25.11";
|
||||||
|
catppuccin.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.modules.nixos.catppuccin = {
|
||||||
|
imports = [
|
||||||
|
inputs.catppuccin.nixosModules.catppuccin
|
||||||
|
];
|
||||||
|
|
||||||
|
home-manager.sharedModules = [
|
||||||
|
inputs.self.modules.homeManager.catppuccin
|
||||||
|
];
|
||||||
|
|
||||||
|
catppuccin.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.modules.homeManager.catppuccin = { pkgs, ... }: {
|
||||||
|
imports = [
|
||||||
|
inputs.catppuccin.homeModules.catppuccin
|
||||||
|
];
|
||||||
|
|
||||||
|
# Catppuccin cursor
|
||||||
|
home.pointerCursor =
|
||||||
|
let
|
||||||
|
size = 24;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.catppuccin-cursors.mochaMauve;
|
||||||
|
name = "catppuccin-mocha-mauve-cursors";
|
||||||
|
inherit size;
|
||||||
|
|
||||||
|
dotIcons.enable = true;
|
||||||
|
gtk.enable = true;
|
||||||
|
hyprcursor.enable = true;
|
||||||
|
hyprcursor.size = size;
|
||||||
|
};
|
||||||
|
|
||||||
|
catppuccin.enable = true;
|
||||||
|
# Required for QT apps to use the catppuccin colors
|
||||||
|
qt = {
|
||||||
|
enable = true;
|
||||||
|
style.name = "kvantum";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
9
modules/programs/cli-tools.nix
Normal file
9
modules/programs/cli-tools.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.cli-tools = { pkgs, ... }: {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
git
|
||||||
|
htop
|
||||||
|
vim
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
21
modules/programs/development-tools/development-tools.nix
Normal file
21
modules/programs/development-tools/development-tools.nix
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake.modules.nixos.development-tools = { pkgs, ... }: {
|
||||||
|
imports = with inputs.self.modules.nixos; [
|
||||||
|
rust
|
||||||
|
];
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
cmake
|
||||||
|
gnumake
|
||||||
|
clang
|
||||||
|
gcc
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.direnv = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
silent = true;
|
||||||
|
nix-direnv.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
18
modules/programs/development-tools/rust.nix
Normal file
18
modules/programs/development-tools/rust.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake-file.inputs = {
|
||||||
|
rust-overlay = {
|
||||||
|
url = "github:oxalica/rust-overlay";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.modules.nixos.rust = { pkgs, ... }: {
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
inputs.rust-overlay.overlays.default
|
||||||
|
];
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
rust-bin.stable.latest.default
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
9
modules/programs/direnv.nix
Normal file
9
modules/programs/direnv.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.direnv = {
|
||||||
|
programs.direnv = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
nix-direnv.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
8
modules/programs/fzf.nix
Normal file
8
modules/programs/fzf.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.fzf = {
|
||||||
|
programs.fzf = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
16
modules/programs/git.nix
Normal file
16
modules/programs/git.nix
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.git = { pkgs, ... }: {
|
||||||
|
environment.systemPackages = [ pkgs.git ];
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.modules.homeManager.git = {
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
settings.user = {
|
||||||
|
email = "weckyy702@gmail.com";
|
||||||
|
name = "Weckyy702";
|
||||||
|
};
|
||||||
|
#TODO: signing
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
8
modules/programs/gnupg.nix
Normal file
8
modules/programs/gnupg.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.gnupg = {
|
||||||
|
programs.gnupg.agent = {
|
||||||
|
enable = true;
|
||||||
|
enableSSHSupport = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
20
modules/programs/hyprland/hyprland.nix
Normal file
20
modules/programs/hyprland/hyprland.nix
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake.modules.nixos.hyprland = {
|
||||||
|
programs.hyprland.enable = true;
|
||||||
|
# Force electron apps to use wayland
|
||||||
|
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||||
|
|
||||||
|
home-manager.sharedModules = [
|
||||||
|
inputs.self.modules.homeManager.hyprland
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.modules.homeManager.hyprland = { pkgs, ... }: {
|
||||||
|
wayland.windowManager.hyprland.enable = true;
|
||||||
|
services.hyprpolkitagent.enable = true;
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
hyprpicker
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
89
modules/programs/hyprland/settings.nix
Normal file
89
modules/programs/hyprland/settings.nix
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.hyprland = {
|
||||||
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
"$mod" = "SUPER";
|
||||||
|
"$browser" = "zen";
|
||||||
|
"$term" = "kitty";
|
||||||
|
|
||||||
|
general = {
|
||||||
|
border_size = 2;
|
||||||
|
gaps_in = 0;
|
||||||
|
gaps_out = 5;
|
||||||
|
layout = "dwindle";
|
||||||
|
allow_tearing = false;
|
||||||
|
resize_on_border = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
snap = { };
|
||||||
|
|
||||||
|
input = {
|
||||||
|
kb_layout = "de";
|
||||||
|
follow_mouse = 1;
|
||||||
|
};
|
||||||
|
|
||||||
|
exec-once = [
|
||||||
|
"hyprctl setcursor catppuccin-mocha-mauve-cursors 24"
|
||||||
|
];
|
||||||
|
|
||||||
|
bind =
|
||||||
|
[
|
||||||
|
"$mod, Q, exit"
|
||||||
|
"$mod, Return, exec, $term"
|
||||||
|
"$mod, D, exec, rofi -show drun -modes drun,calc"
|
||||||
|
"$mod, F2, exec, $browser"
|
||||||
|
"$mod, c, killactive"
|
||||||
|
"$mod, f, fullscreen"
|
||||||
|
"$mod, h, movefocus, l"
|
||||||
|
"$mod, j, movefocus, d"
|
||||||
|
"$mod, k, movefocus, u"
|
||||||
|
"$mod, l, movefocus, r"
|
||||||
|
"$mod+SHIFT, h, movewindow, l"
|
||||||
|
"$mod+SHIFT, j, movewindow, d"
|
||||||
|
"$mod+SHIFT, k, movewindow, u"
|
||||||
|
"$mod+SHIFT, l, movewindow, r"
|
||||||
|
", Print, exec, grim -g \"$(slurp)\" \"/home/weckyy702/Pictures/screenshots/$(date -Iseconds).png\""
|
||||||
|
"$mod+SHIFT, s, exec, hyprlock"
|
||||||
|
]
|
||||||
|
++
|
||||||
|
# Switch workspaces
|
||||||
|
(map (i: "$mod, ${builtins.toString i}, workspace, ${builtins.toString i}") [ 0 1 2 3 4 5 6 7 8 9 ])
|
||||||
|
++ (map (i: "$mod+SHIFT, ${builtins.toString i}, movetoworkspacesilent, ${builtins.toString i}") [ 0 1 2 3 4 5 6 7 8 9 ]);
|
||||||
|
|
||||||
|
bindm = [
|
||||||
|
"$mod, mouse:272, movewindow"
|
||||||
|
];
|
||||||
|
|
||||||
|
bindel = [
|
||||||
|
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"
|
||||||
|
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
||||||
|
];
|
||||||
|
|
||||||
|
bindl = [
|
||||||
|
", XF86AudioNext, exec, playerctl position 5+"
|
||||||
|
", XF86AudioPrev, exec, playerctl position 5-"
|
||||||
|
", XF86AudioPlay, exec, playerctl play-pause"
|
||||||
|
];
|
||||||
|
|
||||||
|
bindo = [
|
||||||
|
", XF86AudioNext, exec, playerctl next"
|
||||||
|
", XF86AudioPrev, exec, playerctl previous"
|
||||||
|
];
|
||||||
|
|
||||||
|
decoration = {
|
||||||
|
shadow.enabled = false;
|
||||||
|
blur.enabled = true;
|
||||||
|
active_opacity = 0.8;
|
||||||
|
inactive_opacity = 0.8;
|
||||||
|
};
|
||||||
|
|
||||||
|
animations.enabled = false;
|
||||||
|
|
||||||
|
misc.disable_hyprland_logo = true;
|
||||||
|
|
||||||
|
cursor.inactive_timeout = 3;
|
||||||
|
|
||||||
|
ecosystem.no_update_news = true;
|
||||||
|
ecosystem.no_donation_nag = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
5
modules/programs/kitty/config.nix
Normal file
5
modules/programs/kitty/config.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.kitty = {
|
||||||
|
#TODO: kitty config
|
||||||
|
};
|
||||||
|
}
|
||||||
14
modules/programs/kitty/kitty.nix
Normal file
14
modules/programs/kitty/kitty.nix
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.kitty = {
|
||||||
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
enableGitIntegration = true;
|
||||||
|
font = {
|
||||||
|
name = "JetBrains Mono";
|
||||||
|
size = 10;
|
||||||
|
};
|
||||||
|
shellIntegration.enableZshIntegration = true;
|
||||||
|
#TODO: kitty config
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
11
modules/programs/multimedia.nix
Normal file
11
modules/programs/multimedia.nix
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.multimedia = { pkgs, ... }: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
feh
|
||||||
|
mpv
|
||||||
|
playerctl
|
||||||
|
file
|
||||||
|
zathura
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
19
modules/programs/nixvim/_nixvim-config/default.nix
Normal file
19
modules/programs/nixvim/_nixvim-config/default.nix
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{ ... }: {
|
||||||
|
imports = [
|
||||||
|
./keymaps.nix
|
||||||
|
./options.nix
|
||||||
|
./plugins
|
||||||
|
];
|
||||||
|
|
||||||
|
clipboard.register = "unnamedplus";
|
||||||
|
|
||||||
|
colorschemes.catppuccin = {
|
||||||
|
enable = true;
|
||||||
|
settings.flavour = "mocha";
|
||||||
|
settings.integrations = {
|
||||||
|
gitsigns = true;
|
||||||
|
treesitter = true;
|
||||||
|
cmp = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
25
modules/programs/nixvim/_nixvim-config/keymaps.nix
Normal file
25
modules/programs/nixvim/_nixvim-config/keymaps.nix
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{ ... }: {
|
||||||
|
globals.mapleader = " ";
|
||||||
|
|
||||||
|
keymaps = [
|
||||||
|
{
|
||||||
|
key = "<esc>";
|
||||||
|
action = ":noh<CR>";
|
||||||
|
mode = "n";
|
||||||
|
options = {
|
||||||
|
silent = true;
|
||||||
|
desc = "Clear search highlight";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "j";
|
||||||
|
action = "gj";
|
||||||
|
mode = "n";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "k";
|
||||||
|
action = "gk";
|
||||||
|
mode = "n";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
50
modules/programs/nixvim/_nixvim-config/options.nix
Normal file
50
modules/programs/nixvim/_nixvim-config/options.nix
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
{ ... }: {
|
||||||
|
opts = {
|
||||||
|
# Expand tabs to 4 spaces
|
||||||
|
shiftwidth = 4;
|
||||||
|
softtabstop = 4;
|
||||||
|
expandtab = true;
|
||||||
|
|
||||||
|
signcolumn = "yes:3";
|
||||||
|
|
||||||
|
# automatically indent and try to be smart about it
|
||||||
|
autoindent = true;
|
||||||
|
smartindent = true;
|
||||||
|
|
||||||
|
# Relative line numbers
|
||||||
|
number = true;
|
||||||
|
relativenumber = true;
|
||||||
|
|
||||||
|
# See search result as you type
|
||||||
|
inccommand = "split";
|
||||||
|
|
||||||
|
# Visualize whitespace
|
||||||
|
list = true;
|
||||||
|
listchars = {
|
||||||
|
tab = "» ";
|
||||||
|
trail = "·";
|
||||||
|
nbsp = "␣";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Show which line the cursor is on
|
||||||
|
cursorline = true;
|
||||||
|
|
||||||
|
# Keep the cursor somewhat centered on the screen
|
||||||
|
scrolloff = 25;
|
||||||
|
|
||||||
|
# Ask if operations would fail due to unsaved buffers
|
||||||
|
confirm = true;
|
||||||
|
|
||||||
|
# ignore case in search unless multiple capital case letter have been typed
|
||||||
|
smartcase = true;
|
||||||
|
ignorecase = true;
|
||||||
|
|
||||||
|
completeopt = "menu,menuone,noselect";
|
||||||
|
|
||||||
|
# Persistent undos :)
|
||||||
|
undofile = true;
|
||||||
|
|
||||||
|
# enable resize by mouse
|
||||||
|
mouse = "n";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
{ ... }: {
|
||||||
|
imports = [
|
||||||
|
./keymaps.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
plugins = {
|
||||||
|
lspkind.enable = true;
|
||||||
|
|
||||||
|
cmp-nvim-lsp-signature-help.enable = true;
|
||||||
|
|
||||||
|
cmp = {
|
||||||
|
enable = true;
|
||||||
|
autoEnableSources = true;
|
||||||
|
autoLoad = true;
|
||||||
|
|
||||||
|
settings.sources = [
|
||||||
|
{ name = "nvim_lsp"; }
|
||||||
|
{ name = "nvim_lsp_signature_help"; }
|
||||||
|
{ name = "path"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
settings.mapping = {
|
||||||
|
"<Tab>" = "cmp.mapping.select_next_item()";
|
||||||
|
"<S-Tab>" = "cmp.mapping.select_prev_item()";
|
||||||
|
"<C-Space>" = "cmp.mapping.complete()";
|
||||||
|
"<C-S-Space>" = "cmp.mapping.close()";
|
||||||
|
"<CR>" = "cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Insert, select = true })";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
lsp-format.enable = true;
|
||||||
|
|
||||||
|
none-ls = {
|
||||||
|
enable = true;
|
||||||
|
enableLspFormat = true;
|
||||||
|
sources.formatting = {
|
||||||
|
alejandra.enable = true;
|
||||||
|
nixpkgs_fmt.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
{ ... }: {
|
||||||
|
keymaps = [
|
||||||
|
{
|
||||||
|
key = "grd";
|
||||||
|
action = "<cmd>Telescope lsp_definitions<CR>";
|
||||||
|
mode = "n";
|
||||||
|
options.desc = "LSP: [G]oto [D]efinition";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "gri";
|
||||||
|
action = "<cmd>Telescope lsp_implementations<CR>";
|
||||||
|
mode = "n";
|
||||||
|
options.desc = "LSP: [G]oto [I]mplementations";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
24
modules/programs/nixvim/_nixvim-config/plugins/default.nix
Normal file
24
modules/programs/nixvim/_nixvim-config/plugins/default.nix
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{ ... }: {
|
||||||
|
imports = [
|
||||||
|
./lsp.nix
|
||||||
|
./telescope
|
||||||
|
./cmp
|
||||||
|
];
|
||||||
|
|
||||||
|
plugins = {
|
||||||
|
lualine.enable = true;
|
||||||
|
|
||||||
|
web-devicons.enable = true;
|
||||||
|
|
||||||
|
treesitter = {
|
||||||
|
enable = true;
|
||||||
|
autoLoad = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
gitsigns.enable = true;
|
||||||
|
|
||||||
|
which-key.enable = true;
|
||||||
|
|
||||||
|
glow.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
36
modules/programs/nixvim/_nixvim-config/plugins/lsp.nix
Normal file
36
modules/programs/nixvim/_nixvim-config/plugins/lsp.nix
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
{ ... }: {
|
||||||
|
dependencies.rust-analyzer.enable = true;
|
||||||
|
|
||||||
|
lsp = {
|
||||||
|
inlayHints.enable = true;
|
||||||
|
servers = {
|
||||||
|
"*" = {
|
||||||
|
config.capabilities.textDocument.semanticTokens.multilineTokenSupport = true;
|
||||||
|
config.root_markers = [
|
||||||
|
".git"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
clangd = {
|
||||||
|
enable = true;
|
||||||
|
config.root_markers = [
|
||||||
|
"compile_commands.json"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
rust_analyzer = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
rnix.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
keymaps = [
|
||||||
|
{
|
||||||
|
key = "<leader>e";
|
||||||
|
action = "<cmd>lua vim.diagnostic.open_float()<CR>";
|
||||||
|
options.desc = "Open Diagnostics";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
plugins.lspconfig.enable = true;
|
||||||
|
plugins.clangd-extensions.enable = true;
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{ ... }: {
|
||||||
|
imports = [
|
||||||
|
./keymaps.nix
|
||||||
|
];
|
||||||
|
dependencies.ripgrep.enable = true;
|
||||||
|
|
||||||
|
plugins.telescope = {
|
||||||
|
enable = true;
|
||||||
|
extensions.file-browser = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
git_status = true;
|
||||||
|
hijack_netrw = true;
|
||||||
|
respect_gitignore = true;
|
||||||
|
fzf-native.enable = true;
|
||||||
|
fzf-native.settings.case_mode = "ignore_case";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{ ... }: {
|
||||||
|
keymaps = [
|
||||||
|
{
|
||||||
|
key = "<leader>sf";
|
||||||
|
action = "<cmd>Telescope find_files<CR>";
|
||||||
|
options.desc = "[S]earch [F]iles";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>sg";
|
||||||
|
action = "<cmd>Telescope live_grep<CR>";
|
||||||
|
options.desc = "[S]earch by [G]rep";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>sw";
|
||||||
|
action = "<cmd>Telescope grep_string<CR>";
|
||||||
|
options.desc = "[S]earch current [W]ord";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>q";
|
||||||
|
action = "<cmd>Telescope diagnostics<CR>";
|
||||||
|
options.desc = "Lsp Diagnostics";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
19
modules/programs/nixvim/nixvim.nix
Normal file
19
modules/programs/nixvim/nixvim.nix
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake-file.inputs = {
|
||||||
|
nixvim.url = "github:nix-community/nixvim/nixos-25.11";
|
||||||
|
nixvim.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.modules.homeManager.nixvim = {
|
||||||
|
imports = [
|
||||||
|
inputs.nixvim.homeModules.nixvim
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.nixvim = {
|
||||||
|
enable = true;
|
||||||
|
imports = [ ./_nixvim-config ];
|
||||||
|
};
|
||||||
|
|
||||||
|
home.sessionVariables.EDITOR = "nvim";
|
||||||
|
};
|
||||||
|
}
|
||||||
13
modules/programs/obsidian.nix
Normal file
13
modules/programs/obsidian.nix
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.obsidian = {
|
||||||
|
programs.obsidian = {
|
||||||
|
enable = true;
|
||||||
|
defaultSettings = {
|
||||||
|
communityPlugins = [
|
||||||
|
"excalidraw"
|
||||||
|
];
|
||||||
|
themes = [ ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
7
modules/programs/qbittorrent.nix
Normal file
7
modules/programs/qbittorrent.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.qbittorrent = { pkgs, ... }: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
qbittorrent
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
15
modules/programs/rofi.nix
Normal file
15
modules/programs/rofi.nix
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.rofi = { pkgs, ... }: {
|
||||||
|
programs.rofi = {
|
||||||
|
enable = true;
|
||||||
|
modes = [
|
||||||
|
"combi"
|
||||||
|
"drun"
|
||||||
|
"calc"
|
||||||
|
];
|
||||||
|
plugins = [
|
||||||
|
pkgs.rofi-calc
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
30
modules/programs/spicetify.nix
Normal file
30
modules/programs/spicetify.nix
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake-file.inputs = {
|
||||||
|
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
|
||||||
|
spicetify-nix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.modules.homeManager.spicetify = { pkgs, ... }: {
|
||||||
|
imports = [
|
||||||
|
inputs.spicetify-nix.homeManagerModules.default
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.spicetify =
|
||||||
|
let
|
||||||
|
spkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
enable = true;
|
||||||
|
enabledExtensions = with spkgs.extensions; [
|
||||||
|
fullAppDisplay
|
||||||
|
shuffle
|
||||||
|
aiBandBlocker
|
||||||
|
];
|
||||||
|
enabledCustomApps = with spkgs.apps; [
|
||||||
|
newReleases
|
||||||
|
];
|
||||||
|
theme = spkgs.themes.catppuccin;
|
||||||
|
colorScheme = "mocha";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
16
modules/programs/steam.nix
Normal file
16
modules/programs/steam.nix
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.steam = { pkgs, ... }: {
|
||||||
|
programs.steam = {
|
||||||
|
enable = true;
|
||||||
|
extraCompatPackages = [
|
||||||
|
pkgs.proton-ge-bin
|
||||||
|
];
|
||||||
|
protontricks = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
dedicatedServer.openFirewall = true;
|
||||||
|
localNetworkGameTransfers.openFirewall = true;
|
||||||
|
remotePlay.openFirewall = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
9
modules/programs/thunderbird.nix
Normal file
9
modules/programs/thunderbird.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# might make this bad boy a factory later
|
||||||
|
{
|
||||||
|
flake.modules.homeManager.thunderbird = {
|
||||||
|
programs.thunderbird = {
|
||||||
|
enable = true;
|
||||||
|
profiles.default.isDefault = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
5
modules/programs/vesktop.nix
Normal file
5
modules/programs/vesktop.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.vesktop = {
|
||||||
|
programs.vesktop.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
5
modules/programs/zathura.nix
Normal file
5
modules/programs/zathura.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.zathura = {
|
||||||
|
programs.zathura.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
9
modules/programs/zoxide.nix
Normal file
9
modules/programs/zoxide.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.zoxide = {
|
||||||
|
programs.zoxide = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
options = [ "--cmd cd" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
# Generated by Powerlevel10k configuration wizard on 2026-01-10 at 23:35 CET.
|
# Generated by Powerlevel10k configuration wizard on 2026-01-14 at 01:09 CET.
|
||||||
# Based on romkatv/powerlevel10k/config/p10k-lean.zsh.
|
# Based on romkatv/powerlevel10k/config/p10k-lean.zsh.
|
||||||
# Wizard options: nerdfont-v3 + powerline, small icons, unicode, lean, 2 lines,
|
# Wizard options: nerdfont-v3 + powerline, small icons, unicode, lean, 24h time,
|
||||||
# disconnected, no frame, compact, few icons, concise, transient_prompt,
|
# 2 lines, disconnected, no frame, compact, few icons, concise, transient_prompt,
|
||||||
# instant_prompt=verbose.
|
# instant_prompt=verbose.
|
||||||
# Type `p10k configure` to generate another config.
|
# Type `p10k configure` to generate another config.
|
||||||
#
|
#
|
||||||
@@ -35,6 +35,7 @@
|
|||||||
# os_icon # os identifier
|
# os_icon # os identifier
|
||||||
dir # current directory
|
dir # current directory
|
||||||
vcs # git status
|
vcs # git status
|
||||||
|
command_execution_time # duration of the last command
|
||||||
# =========================[ Line #2 ]=========================
|
# =========================[ Line #2 ]=========================
|
||||||
newline # \n
|
newline # \n
|
||||||
prompt_char # prompt symbol
|
prompt_char # prompt symbol
|
||||||
@@ -47,7 +48,6 @@
|
|||||||
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
|
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
|
||||||
# =========================[ Line #1 ]=========================
|
# =========================[ Line #1 ]=========================
|
||||||
status # exit code of the last command
|
status # exit code of the last command
|
||||||
command_execution_time # duration of the last command
|
|
||||||
background_jobs # presence of background jobs
|
background_jobs # presence of background jobs
|
||||||
direnv # direnv status (https://direnv.net/)
|
direnv # direnv status (https://direnv.net/)
|
||||||
asdf # asdf version manager (https://github.com/asdf-vm/asdf)
|
asdf # asdf version manager (https://github.com/asdf-vm/asdf)
|
||||||
@@ -106,7 +106,7 @@
|
|||||||
taskwarrior # taskwarrior task count (https://taskwarrior.org/)
|
taskwarrior # taskwarrior task count (https://taskwarrior.org/)
|
||||||
per_directory_history # Oh My Zsh per-directory-history local/global indicator
|
per_directory_history # Oh My Zsh per-directory-history local/global indicator
|
||||||
# cpu_arch # CPU architecture
|
# cpu_arch # CPU architecture
|
||||||
# time # current time
|
time # current time
|
||||||
# =========================[ Line #2 ]=========================
|
# =========================[ Line #2 ]=========================
|
||||||
newline
|
newline
|
||||||
# ip # ip address and bandwidth usage for a specified network interface
|
# ip # ip address and bandwidth usage for a specified network interface
|
||||||
53
modules/programs/zsh/zsh.nix
Normal file
53
modules/programs/zsh/zsh.nix
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake.modules.nixos.zsh = {
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
|
environment.pathsToLink = [ "/share/zsh" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.modules.homeManager.zsh = { pkgs, ... }: {
|
||||||
|
imports = with inputs.self.modules.homeManager; [
|
||||||
|
fzf
|
||||||
|
zoxide
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
autocd = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
autosuggestion.enable = true;
|
||||||
|
syntaxHighlighting.enable = true;
|
||||||
|
initContent = pkgs.lib.mkBefore ''
|
||||||
|
date
|
||||||
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||||
|
# Initialization code that may require console input (password prompts, [y/n]
|
||||||
|
# confirmations, etc.) must go above this block; everything else may go below.
|
||||||
|
if [[ -r "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh" ]]; then
|
||||||
|
source "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
plugins = [
|
||||||
|
{
|
||||||
|
name = "powerlevel10k";
|
||||||
|
src = "${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/";
|
||||||
|
file = "powerlevel10k.zsh-theme";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "p10k-config";
|
||||||
|
src = ./p10k;
|
||||||
|
file = "p10k.zsh";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
oh-my-zsh = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [
|
||||||
|
"git"
|
||||||
|
];
|
||||||
|
theme = "robbyrussell";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
8
modules/services/backlight.nix
Normal file
8
modules/services/backlight.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.backlight = {
|
||||||
|
programs.light = {
|
||||||
|
enable = true;
|
||||||
|
brightnessKeys.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
74
modules/services/borgmatic.nix
Normal file
74
modules/services/borgmatic.nix
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.borgmatic =
|
||||||
|
{ config
|
||||||
|
, osConfig
|
||||||
|
, pkgs
|
||||||
|
, lib
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
hostname = osConfig.networking.hostName;
|
||||||
|
username = config.home.username;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
libnotify
|
||||||
|
borgmatic
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.borgmatic = {
|
||||||
|
enable = true;
|
||||||
|
backups.default = {
|
||||||
|
location = {
|
||||||
|
repositories = [
|
||||||
|
{
|
||||||
|
label = "duke";
|
||||||
|
path = "ssh://borg@duke.veltnet:2222/home/borg/backups/${hostname}-${username}";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
excludeHomeManagerSymlinks = true;
|
||||||
|
patterns = [
|
||||||
|
#TODO: home.homeDirectory might be usable here
|
||||||
|
#TODO: should be user and machine specific
|
||||||
|
"R /home/${username}/Documents"
|
||||||
|
"R /home/${username}/.ssh"
|
||||||
|
"- /home/${username}/Documents/SteamLibrary"
|
||||||
|
"- /home/${username}/Documents/PrismLauncher instances"
|
||||||
|
"- /home/${username}/Documents/.Trash-1000"
|
||||||
|
"- /home/${username}/Documents/VMs/Data"
|
||||||
|
"- **/node_modules"
|
||||||
|
"- **/.git"
|
||||||
|
"- **/.cache"
|
||||||
|
"- **/*build"
|
||||||
|
"- **/target"
|
||||||
|
"- **/.venv"
|
||||||
|
"- **/venv"
|
||||||
|
"- **/.gradle"
|
||||||
|
"- **/out"
|
||||||
|
"- **/dist"
|
||||||
|
"- **/.pio"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
retention.keepWeekly = 2;
|
||||||
|
storage.extraConfig.ssh_command = "ssh -i /home/${username}/.ssh/id_ed25519_borg";
|
||||||
|
#FIXME: consistency checks!!!
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
#TODO: there is a services.borgmatic
|
||||||
|
|
||||||
|
systemd.user.services.borgmatic = {
|
||||||
|
Unit.Description = "Create a backup using borgmatic";
|
||||||
|
Service.ExecStart = "${pkgs.borgmatic}/bin/borgmatic create --stats";
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.user.timers.borgmatic = {
|
||||||
|
Unit.Description = "Create weekly backups using borgmatic";
|
||||||
|
Timer = {
|
||||||
|
OnCalendar = "Weekly";
|
||||||
|
Persistent = true;
|
||||||
|
};
|
||||||
|
Install.WantedBy = [ "timers.target" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
5
modules/services/debuginfo.nix
Normal file
5
modules/services/debuginfo.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.debuginfod = {
|
||||||
|
services.nixseparatedebuginfod2.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
47
modules/services/kanata.nix
Normal file
47
modules/services/kanata.nix
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.kanata = {
|
||||||
|
services.kanata = {
|
||||||
|
enable = true;
|
||||||
|
#TODO: move kanata config to module
|
||||||
|
keyboards.remap-specials = {
|
||||||
|
config = ''
|
||||||
|
(deflocalkeys-linux
|
||||||
|
ö 39
|
||||||
|
)
|
||||||
|
|
||||||
|
(defsrc
|
||||||
|
a s d j k l ö
|
||||||
|
)
|
||||||
|
|
||||||
|
(defvar
|
||||||
|
tap-time 200
|
||||||
|
hold-time 200
|
||||||
|
)
|
||||||
|
|
||||||
|
(defalias
|
||||||
|
a (tap-hold $tap-time $hold-time a lmet)
|
||||||
|
s (tap-hold $tap-time $hold-time s lctl)
|
||||||
|
d (tap-hold $tap-time $hold-time d lsft)
|
||||||
|
k (tap-hold $tap-time $hold-time k rsft)
|
||||||
|
l (tap-hold $tap-time $hold-time l rctl)
|
||||||
|
ö (tap-hold $tap-time $hold-time ö ralt)
|
||||||
|
|
||||||
|
activate (tap-dance $tap-time (j _ _ (layer-switch home-mods)))
|
||||||
|
deactivate (tap-dance $tap-time (j _ _ (layer-switch base)))
|
||||||
|
)
|
||||||
|
|
||||||
|
(deflayer base
|
||||||
|
a s d @activate k l ö
|
||||||
|
)
|
||||||
|
|
||||||
|
(deflayer home-mods
|
||||||
|
@a @s @d @deactivate @k @l @ö
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
extraDefCfg = ''
|
||||||
|
process-unmapped-keys yes
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
5
modules/services/mullvad.nix
Normal file
5
modules/services/mullvad.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.mullvad = {
|
||||||
|
services.mullvad-vpn.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
7
modules/services/networkmanager.nix
Normal file
7
modules/services/networkmanager.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.networkmanager = {
|
||||||
|
networking.networkmanager = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
5
modules/services/nm-applet.nix
Normal file
5
modules/services/nm-applet.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.nm-applet = {
|
||||||
|
services.network-manager-applet.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
6
modules/services/openssh.nix
Normal file
6
modules/services/openssh.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.openssh = { lib, ... }: {
|
||||||
|
services.openssh.enable = true;
|
||||||
|
services.openssh.openFirewall = lib.mkDefault false;
|
||||||
|
};
|
||||||
|
}
|
||||||
9
modules/services/pipewire.nix
Normal file
9
modules/services/pipewire.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.pipewire = {
|
||||||
|
services.pipewire = {
|
||||||
|
alsa.enable = true;
|
||||||
|
enable = true;
|
||||||
|
wireplumber.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
7
modules/services/tailscale.nix
Normal file
7
modules/services/tailscale.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.tailscale = {
|
||||||
|
services.tailscale = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
5
modules/services/upower.nix
Normal file
5
modules/services/upower.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.upower = {
|
||||||
|
services.upower.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
18
modules/system-settings/amd-gpu.nix
Normal file
18
modules/system-settings/amd-gpu.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.amd-gpu = { pkgs, ... }: {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
rocmPackages.amdsmi
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
|
||||||
|
hardware.graphics = {
|
||||||
|
enable = true;
|
||||||
|
extraPackages = [ pkgs.rocmPackages.clr.icd ];
|
||||||
|
};
|
||||||
|
hardware.amdgpu = {
|
||||||
|
initrd.enable = true;
|
||||||
|
opencl.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
23
modules/system-settings/i18n-de.nix
Normal file
23
modules/system-settings/i18n-de.nix
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.i18n-de = {
|
||||||
|
time.timeZone = "Europe/Berlin";
|
||||||
|
|
||||||
|
# Select internationalisation properties.
|
||||||
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
|
i18n.extraLocaleSettings = {
|
||||||
|
LC_ADDRESS = "de_DE.UTF-8";
|
||||||
|
LC_IDENTIFICATION = "de_DE.UTF-8";
|
||||||
|
LC_MEASUREMENT = "de_DE.UTF-8";
|
||||||
|
LC_MONETARY = "de_DE.UTF-8";
|
||||||
|
LC_NAME = "de_DE.UTF-8";
|
||||||
|
LC_NUMERIC = "de_DE.UTF-8";
|
||||||
|
LC_PAPER = "de_DE.UTF-8";
|
||||||
|
LC_TELEPHONE = "de_DE.UTF-8";
|
||||||
|
LC_TIME = "de_DE.UTF-8";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Configure console keymap
|
||||||
|
console.keyMap = "de";
|
||||||
|
};
|
||||||
|
}
|
||||||
15
modules/system-settings/intel-gpu.nix
Normal file
15
modules/system-settings/intel-gpu.nix
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.intel-gpu = {pkgs, ...}: {
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
|
||||||
|
hardware.graphics = {
|
||||||
|
enable = true;
|
||||||
|
extraPackages = with pkgs; [
|
||||||
|
intel-media-driver
|
||||||
|
intel-compute-runtime
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.sessionVariables.LIBVA_DRIVER_NAME = "iHD";
|
||||||
|
};
|
||||||
|
}
|
||||||
5
modules/system-settings/linux-latest.nix
Normal file
5
modules/system-settings/linux-latest.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.linux-latest = { pkgs, ... }: {
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
};
|
||||||
|
}
|
||||||
11
modules/system-settings/nerdfonts.nix
Normal file
11
modules/system-settings/nerdfonts.nix
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.nerdfonts = { pkgs, ... }: {
|
||||||
|
fonts = {
|
||||||
|
enableDefaultPackages = true;
|
||||||
|
packages = with pkgs; [
|
||||||
|
nerd-fonts.jetbrains-mono
|
||||||
|
];
|
||||||
|
fontDir.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
6
modules/system-settings/systemd-boot.nix
Normal file
6
modules/system-settings/systemd-boot.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.systemd-boot = {
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
9
modules/system-types/base/homeManager.nix
Normal file
9
modules/system-types/base/homeManager.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake.modules.homeManager.system-base = { config, ... }: {
|
||||||
|
imports = with inputs.self.modules.homeManager; [
|
||||||
|
];
|
||||||
|
|
||||||
|
home.homeDirectory = "/home/${config.home.username}";
|
||||||
|
home.stateVersion = "25.11";
|
||||||
|
};
|
||||||
|
}
|
||||||
65
modules/system-types/base/nixos.nix
Normal file
65
modules/system-types/base/nixos.nix
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake-file.inputs = {
|
||||||
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
||||||
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.modules.nixos.system-base = { pkgs, ... }: {
|
||||||
|
imports = with inputs.self.modules.nixos; [
|
||||||
|
home-manager
|
||||||
|
secrets
|
||||||
|
openssh
|
||||||
|
linux-latest
|
||||||
|
cli-tools
|
||||||
|
zsh
|
||||||
|
gnupg
|
||||||
|
];
|
||||||
|
|
||||||
|
# Make unstable nixpkgs available as pkgs.unstable
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(final: _prev: {
|
||||||
|
unstable = import inputs.nixpkgs-unstable {
|
||||||
|
inherit (final) config;
|
||||||
|
system = pkgs.stdenv.hostPlatform.system;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
nix.gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 7d";
|
||||||
|
};
|
||||||
|
|
||||||
|
nix.settings = {
|
||||||
|
substituters = [
|
||||||
|
# high priority since it's almost always used
|
||||||
|
"https://cache.nixos.org?priority=10"
|
||||||
|
"https://install.determinate.systems"
|
||||||
|
"https://nix-community.cachix.org"
|
||||||
|
];
|
||||||
|
|
||||||
|
trusted-public-keys = [
|
||||||
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||||
|
"cache.flakehub.com-3:hJuILl5sVK4iKm86JzgdXW12Y2Hwd5G07qKtHTOcDCM"
|
||||||
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
|
];
|
||||||
|
|
||||||
|
experimental-features = [
|
||||||
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
# "allow-import-from-derivation"
|
||||||
|
];
|
||||||
|
|
||||||
|
download-buffer-size = 1024 * 1024 * 1024;
|
||||||
|
|
||||||
|
trusted-users = [
|
||||||
|
"root"
|
||||||
|
"@wheel"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
system.stateVersion = "25.11";
|
||||||
|
};
|
||||||
|
}
|
||||||
28
modules/system-types/desktop/desktop.nix
Normal file
28
modules/system-types/desktop/desktop.nix
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake.modules.nixos.system-desktop = {
|
||||||
|
imports = with inputs.self.modules.nixos; [
|
||||||
|
system-base
|
||||||
|
hyprland
|
||||||
|
|
||||||
|
#TODO: moar aspects
|
||||||
|
];
|
||||||
|
|
||||||
|
home-manager.sharedModules = [
|
||||||
|
inputs.self.modules.homeManager.system-desktop
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.modules.homeManager.system-desktop = {
|
||||||
|
imports = with inputs.self.modules.homeManager; [
|
||||||
|
system-base
|
||||||
|
|
||||||
|
rofi
|
||||||
|
kitty
|
||||||
|
|
||||||
|
browser
|
||||||
|
multimedia
|
||||||
|
zsh
|
||||||
|
thunderbird
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
29
modules/users/weckyy702/weckyy702.nix
Normal file
29
modules/users/weckyy702/weckyy702.nix
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{ inputs
|
||||||
|
, self
|
||||||
|
, lib
|
||||||
|
, ...
|
||||||
|
}: {
|
||||||
|
flake.homeConfigurations = inputs.self.lib.mkHomeManager "x86_64-linux" "weckyy702";
|
||||||
|
|
||||||
|
flake.modules = lib.mkMerge [
|
||||||
|
(self.factory.user "weckyy702" true)
|
||||||
|
{
|
||||||
|
nixos.weckyy702 = {
|
||||||
|
imports = with self.modules.nixos; [
|
||||||
|
kanata
|
||||||
|
catppuccin
|
||||||
|
];
|
||||||
|
|
||||||
|
users.users.weckyy702.extraGroups = [ "networkmanager" "dialout" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
homeManager.weckyy702 = { pkgs, ... }: {
|
||||||
|
imports = with self.modules.homeManager; [
|
||||||
|
nixvim
|
||||||
|
btop
|
||||||
|
#TODO: moar aspects
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user