Compare commits
71 Commits
master
...
4b32b5a3e7
| Author | SHA1 | Date | |
|---|---|---|---|
| 4b32b5a3e7 | |||
| a87eb1994f | |||
| bdac2cafee | |||
| 86a1071b1b | |||
| 11048faa79 | |||
| 58eec1d59d | |||
| 00a830c3c4 | |||
| 94a2ed6c8a | |||
| 42d2399c42 | |||
| 8704160c10 | |||
| 74d813c5e8 | |||
| 0c7291d3eb | |||
| 10e69d4eff | |||
| 72ecac11b7 | |||
| db8f72308b | |||
| 59a6dc79f0 | |||
| 297b993992 | |||
| 0df6aee231 | |||
| 33d139bdf6 | |||
| effeddf963 | |||
| 79c8e5061b | |||
| 1636b715b5 | |||
| c00be80234 | |||
| 7fb7498acc | |||
| 449dbcff24 | |||
| 317bc368e9 | |||
| d3689592e8 | |||
| e6a810d833 | |||
| 21579b281f | |||
| 68bdc0c85e | |||
| 64973efb33 | |||
| bed86c50dd | |||
| df6268f8c3 | |||
| 09ff97278c | |||
| 445e6a8c8b | |||
| b860c0ead1 | |||
| ed863b4ab1 | |||
| 498fd77851 | |||
| 19537a1499 | |||
| b7c9ca3ccc | |||
| 8c66096e81 | |||
| e6b2a1d3ee | |||
| 93b4b2730f | |||
| e9988b21ff | |||
| d6e9904bfc | |||
| aea1919a44 | |||
| da7ad42da9 | |||
| 13e5c8410e | |||
| c8cfd433ae | |||
| 60dd114bcc | |||
| ac12242060 | |||
| c3f12243d8 | |||
| e296f298b1 | |||
| f656be3dfb | |||
| eb5b08c8f0 | |||
| fa9ca0ec63 | |||
| fd10360294 | |||
| 0237820306 | |||
| 64b6b6b763 | |||
| 78b1b26b91 | |||
| 44eb6492f2 | |||
| 597f51e7b2 | |||
| c1684a80f7 | |||
| f3a90a0fe8 | |||
| 11089070ba | |||
| 8697469f5f | |||
| fa6abcfd98 | |||
| 7f0629f313 | |||
| 1a088bc501 | |||
| 0f70cf9bbc | |||
| fbf6864350 |
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -4,6 +4,3 @@
|
|||||||
[submodule "machines/laptop"]
|
[submodule "machines/laptop"]
|
||||||
path = machines/laptop
|
path = machines/laptop
|
||||||
url = ssh://gitea@gitea.esotericbytes.com:2222/Blunkall-Technologies/laptop
|
url = ssh://gitea@gitea.esotericbytes.com:2222/Blunkall-Technologies/laptop
|
||||||
[submodule "machines/android"]
|
|
||||||
path = machines/android
|
|
||||||
url = ssh://gitea@gitea.esotericbytes.com:2222/Blunkall-Technologies/android
|
|
||||||
|
|||||||
12
flake-parts.nix
Normal file
12
flake-parts.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
inputs.home-manager.flakeModules.home-manager
|
||||||
|
inputs.disko.flakeModules.default
|
||||||
|
];
|
||||||
|
|
||||||
|
systems = [
|
||||||
|
"x86_64-linux"
|
||||||
|
"aarch64-linux"
|
||||||
|
];
|
||||||
|
}
|
||||||
316
flake.lock
generated
316
flake.lock
generated
@@ -20,11 +20,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769428758,
|
"lastModified": 1772292445,
|
||||||
"narHash": "sha256-0G/GzF7lkWs/yl82bXuisSqPn6sf8YGTnbEdFOXvOfU=",
|
"narHash": "sha256-4F1Q7U313TKUDDovCC96m/Za4wZcJ3yqtu4eSrj8lk8=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "aquamarine",
|
"repo": "aquamarine",
|
||||||
"rev": "def5e74c97370f15949a67c62e61f1459fcb0e15",
|
"rev": "1dbbba659c1cef0b0202ce92cadfe13bae550e8f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -33,6 +33,27 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"aurora": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-parts": "flake-parts",
|
||||||
|
"home-manager": "home-manager",
|
||||||
|
"import-tree": "import-tree",
|
||||||
|
"nixpkgs": "nixpkgs_2"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1775778260,
|
||||||
|
"narHash": "sha256-8tQ0BR6k0luCb7P9djLbaFT4QGAdKb+FiZQtzyKxD/8=",
|
||||||
|
"ref": "refs/heads/master",
|
||||||
|
"rev": "1f42ca1eaea5a96d2c9faa0631f42d1e38e20b54",
|
||||||
|
"revCount": 27,
|
||||||
|
"type": "git",
|
||||||
|
"url": "file:///home/nathan/Projects/Aurora"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "file:///home/nathan/Projects/Aurora"
|
||||||
|
}
|
||||||
|
},
|
||||||
"disko": {
|
"disko": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -40,11 +61,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769524058,
|
"lastModified": 1772699110,
|
||||||
"narHash": "sha256-zygdD6X1PcVNR2PsyK4ptzrVEiAdbMqLos7utrMDEWE=",
|
"narHash": "sha256-jkyo/9fZVB3F/PHk3fVK1ImxJBZ71DCOYZvAz4R4v4E=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "disko",
|
"repo": "disko",
|
||||||
"rev": "71a3fc97d80881e91710fe721f1158d3b96ae14d",
|
"rev": "42affa9d33750ac0a0a89761644af20d8d03e6ee",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -61,11 +82,11 @@
|
|||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "pkgs/firefox-addons",
|
"dir": "pkgs/firefox-addons",
|
||||||
"lastModified": 1770091431,
|
"lastModified": 1772824881,
|
||||||
"narHash": "sha256-9Sqq/hxq8ZDLRSzu+edn0OfWG+FAPWFpwMKaJobeLec=",
|
"narHash": "sha256-NqX+JCA8hRV3GoYrsqnHB2IWKte1eQ8NK2WVbJkORcw=",
|
||||||
"owner": "rycee",
|
"owner": "rycee",
|
||||||
"repo": "nur-expressions",
|
"repo": "nur-expressions",
|
||||||
"rev": "4f827ff035c6ddc58d04c45abe5b777d356b926a",
|
"rev": "07e1616c9b13fe4794dad4bcc33cd7088c554465",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -91,26 +112,46 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-compat_2": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1747046372,
|
|
||||||
"narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=",
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-parts": {
|
"flake-parts": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": "nixpkgs-lib"
|
"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": "nixpkgs-lib_2"
|
||||||
|
},
|
||||||
|
"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_3": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": "nixpkgs-lib_3"
|
||||||
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768135262,
|
"lastModified": 1768135262,
|
||||||
"narHash": "sha256-PVvu7OqHBGWN16zSi6tEmPwwHQ4rLPU9Plvs8/1TUBY=",
|
"narHash": "sha256-PVvu7OqHBGWN16zSi6tEmPwwHQ4rLPU9Plvs8/1TUBY=",
|
||||||
@@ -125,7 +166,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-parts_2": {
|
"flake-parts_4": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
"nixvim",
|
"nixvim",
|
||||||
@@ -170,17 +211,35 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1772845525,
|
||||||
|
"narHash": "sha256-Dp5Ir2u4jJDGCgeMRviHvEQDe+U37hMxp6RSNOoMMPc=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"rev": "27b93804fbef1544cb07718d3f0a451f4c4cd6c0",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"home-manager_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769580047,
|
"lastModified": 1772633058,
|
||||||
"narHash": "sha256-tNqCP/+2+peAXXQ2V8RwsBkenlfWMERb+Uy6xmevyhM=",
|
"narHash": "sha256-SO7JapRy2HPhgmqiLbfnW1kMx5rakPMKZ9z3wtRLQjI=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "366d78c2856de6ab3411c15c1cb4fb4c2bf5c826",
|
"rev": "080657a04188aca25f8a6c70a0fb2ea7e37f1865",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -235,11 +294,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769284023,
|
"lastModified": 1770511807,
|
||||||
"narHash": "sha256-xG34vwYJ79rA2wVC8KFuM8r36urJTG6/csXx7LiiSYU=",
|
"narHash": "sha256-suKmSbSk34uPOJDTg/GbPrKEJutzK08vj0VoTvAFBCA=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprgraphics",
|
"repo": "hyprgraphics",
|
||||||
"rev": "13c536659d46893596412d180449353a900a1d31",
|
"rev": "7c75487edd43a71b61adb01cae8326d277aab683",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -259,17 +318,17 @@
|
|||||||
"hyprutils": "hyprutils",
|
"hyprutils": "hyprutils",
|
||||||
"hyprwayland-scanner": "hyprwayland-scanner",
|
"hyprwayland-scanner": "hyprwayland-scanner",
|
||||||
"hyprwire": "hyprwire",
|
"hyprwire": "hyprwire",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs_3",
|
||||||
"pre-commit-hooks": "pre-commit-hooks",
|
"pre-commit-hooks": "pre-commit-hooks",
|
||||||
"systems": "systems",
|
"systems": "systems",
|
||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770079745,
|
"lastModified": 1772891233,
|
||||||
"narHash": "sha256-rQ4no/+LHuHlqDbJopj6fgS9GUsv1NSycrVhIoLPnbs=",
|
"narHash": "sha256-+cnUpHEmPxu0IizoeLWT/WB7LX5+f5NRShZ0zzpHFOs=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "30756d871845a6058a840642ab1a4c3979f6d782",
|
"rev": "73fca55e7c9dd19222c8c0cc331ddebf4c4bfddf",
|
||||||
"revCount": 6859,
|
"revCount": 7000,
|
||||||
"submodules": true,
|
"submodules": true,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/hyprwm/Hyprland"
|
"url": "https://github.com/hyprwm/Hyprland"
|
||||||
@@ -367,11 +426,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767983607,
|
"lastModified": 1771866172,
|
||||||
"narHash": "sha256-8C2co8NYfR4oMOUEsPROOJ9JHrv9/ktbJJ6X1WsTbXc=",
|
"narHash": "sha256-fYFoXhQLrm1rD8vSFKQBOEX4OGCuJdLt1amKfHd5GAw=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprlang",
|
"repo": "hyprlang",
|
||||||
"rev": "d4037379e6057246b408bbcf796cf3e9838af5b2",
|
"rev": "0b219224910e7642eb0ed49f0db5ec3d008e3e41",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -444,11 +503,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766253372,
|
"lastModified": 1771271487,
|
||||||
"narHash": "sha256-1+p4Kw8HdtMoFSmJtfdwjxM4bPxDK9yg27SlvUMpzWA=",
|
"narHash": "sha256-41gEiUS0Pyw3L/ge1l8MXn61cK14VAhgWB/JV8s/oNI=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprutils",
|
"repo": "hyprutils",
|
||||||
"rev": "51a4f93ce8572e7b12b7284eb9e6e8ebf16b4be9",
|
"rev": "340a792e3b3d482c4ae5f66d27a9096bdee6d76d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -469,11 +528,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763640274,
|
"lastModified": 1770501770,
|
||||||
"narHash": "sha256-Uan1Nl9i4TF/kyFoHnTq1bd/rsWh4GAK/9/jDqLbY5A=",
|
"narHash": "sha256-NWRM6+YxTRv+bT9yvlhhJ2iLae1B1pNH3mAL5wi2rlQ=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprwayland-scanner",
|
"repo": "hyprwayland-scanner",
|
||||||
"rev": "f6cf414ca0e16a4d30198fd670ec86df3c89f671",
|
"rev": "0bd8b6cde9ec27d48aad9e5b4deefb3746909d40",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -498,11 +557,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769202094,
|
"lastModified": 1771606233,
|
||||||
"narHash": "sha256-gdJr/vWWLRW85ucatSjoBULPB2dqBJd/53CZmQ9t91Q=",
|
"narHash": "sha256-F3PLUqQ/TwgR70U+UeOqJnihJZ2EuunzojYC4g5xHr0=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprwire",
|
"repo": "hyprwire",
|
||||||
"rev": "a45ca05050d22629b3c7969a926d37870d7dd75c",
|
"rev": "06c7f1f8c4194786c8400653c4efc49dc14c0f3a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -511,33 +570,43 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nix-minecraft": {
|
"import-tree": {
|
||||||
"inputs": {
|
|
||||||
"flake-compat": "flake-compat_2",
|
|
||||||
"nixpkgs": "nixpkgs_2",
|
|
||||||
"systems": "systems_2"
|
|
||||||
},
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770000653,
|
"lastModified": 1772344373,
|
||||||
"narHash": "sha256-QO/twGynxjOSUDtxbqJLshc/Q5/wImLH5O6KV2p9eoE=",
|
"narHash": "sha256-OQQ1MhB9t1J71b2wxRRTdH/Qd8UGG0p+dGspfCf5U1c=",
|
||||||
"owner": "Infinidoge",
|
"owner": "vic",
|
||||||
"repo": "nix-minecraft",
|
"repo": "import-tree",
|
||||||
"rev": "6a2ddb643aaf7949caa6158e718c5efc3dda7dc1",
|
"rev": "10fda59eee7d7970ec443b925f32a1bc7526648c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "Infinidoge",
|
"owner": "vic",
|
||||||
"repo": "nix-minecraft",
|
"repo": "import-tree",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"import-tree_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1772344373,
|
||||||
|
"narHash": "sha256-OQQ1MhB9t1J71b2wxRRTdH/Qd8UGG0p+dGspfCf5U1c=",
|
||||||
|
"owner": "vic",
|
||||||
|
"repo": "import-tree",
|
||||||
|
"rev": "10fda59eee7d7970ec443b925f32a1bc7526648c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "vic",
|
||||||
|
"repo": "import-tree",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769461804,
|
"lastModified": 1772542754,
|
||||||
"narHash": "sha256-msG8SU5WsBUfVVa/9RPLaymvi5bI8edTavbIq3vRlhI=",
|
"narHash": "sha256-WGV2hy+VIeQsYXpsLjdr4GvHv5eECMISX1zKLTedhdg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "bfc1b8a4574108ceef22f02bafcf6611380c100d",
|
"rev": "8c809a146a140c5c8806f13399592dbcb1bb5dc4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -548,6 +617,36 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-lib": {
|
"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-lib_2": {
|
||||||
|
"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-lib_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765674936,
|
"lastModified": 1765674936,
|
||||||
"narHash": "sha256-k00uTP4JNfmejrCLJOwdObYC9jHRrr/5M/a/8L2EIdo=",
|
"narHash": "sha256-k00uTP4JNfmejrCLJOwdObYC9jHRrr/5M/a/8L2EIdo=",
|
||||||
@@ -564,11 +663,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-us": {
|
"nixpkgs-us": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770019141,
|
"lastModified": 1772624091,
|
||||||
"narHash": "sha256-VKS4ZLNx4PNrABoB0L8KUpc1fE7CLpQXQs985tGfaCU=",
|
"narHash": "sha256-QKyJ0QGWBn6r0invrMAK8dmJoBYWoOWy7lN+UHzW1jc=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "cb369ef2efd432b3cdf8622b0ffc0a97a02f3137",
|
"rev": "80bdc1e5ce51f56b19791b52b2901187931f5353",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -580,11 +679,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769461804,
|
"lastModified": 1772433332,
|
||||||
"narHash": "sha256-msG8SU5WsBUfVVa/9RPLaymvi5bI8edTavbIq3vRlhI=",
|
"narHash": "sha256-izhTDFKsg6KeVBxJS9EblGeQ8y+O8eCa6RcW874vxEc=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "bfc1b8a4574108ceef22f02bafcf6611380c100d",
|
"rev": "cf59864ef8aa2e178cccedbe2c178185b0365705",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -596,11 +695,27 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770056022,
|
"lastModified": 1772198003,
|
||||||
"narHash": "sha256-yvCz+Qmci1bVucXEyac3TdoSPMtjqVJmVy5wro6j/70=",
|
"narHash": "sha256-I45esRSssFtJ8p/gLHUZ1OUaaTaVLluNkABkk6arQwE=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "dd9b079222d43e1943b6ebd802f04fd959dc8e61",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_4": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1772598333,
|
||||||
|
"narHash": "sha256-YaHht/C35INEX3DeJQNWjNaTcPjYmBwwjFJ2jdtr+5U=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "d04d8548aed39902419f14a8537006426dc1e4fa",
|
"rev": "fabb8c9deee281e50b1065002c9828f2cf7b2239",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -610,7 +725,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_4": {
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769461804,
|
"lastModified": 1769461804,
|
||||||
"narHash": "sha256-msG8SU5WsBUfVVa/9RPLaymvi5bI8edTavbIq3vRlhI=",
|
"narHash": "sha256-msG8SU5WsBUfVVa/9RPLaymvi5bI8edTavbIq3vRlhI=",
|
||||||
@@ -626,7 +741,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
"nixpkgs_6": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768875095,
|
"lastModified": 1768875095,
|
||||||
"narHash": "sha256-dYP3DjiL7oIiiq3H65tGIXXIT1Waiadmv93JS0sS+8A=",
|
"narHash": "sha256-dYP3DjiL7oIiiq3H65tGIXXIT1Waiadmv93JS0sS+8A=",
|
||||||
@@ -644,8 +759,8 @@
|
|||||||
},
|
},
|
||||||
"nixvim": {
|
"nixvim": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts_3",
|
||||||
"nixpkgs": "nixpkgs_4",
|
"nixpkgs": "nixpkgs_5",
|
||||||
"nixvim": "nixvim_2"
|
"nixvim": "nixvim_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
@@ -655,18 +770,18 @@
|
|||||||
"rev": "9d263b8208af5c1ffd4a3c639a34bfe290bce931",
|
"rev": "9d263b8208af5c1ffd4a3c639a34bfe290bce931",
|
||||||
"revCount": 38,
|
"revCount": 38,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://gitea.esotericbytes.com/Blunkall-Technologies/Moirai"
|
"url": "file:///home/nathan/Projects/Moirai"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://gitea.esotericbytes.com/Blunkall-Technologies/Moirai"
|
"url": "file:///home/nathan/Projects/Moirai"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixvim_2": {
|
"nixvim_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts_2",
|
"flake-parts": "flake-parts_4",
|
||||||
"nixpkgs": "nixpkgs_5",
|
"nixpkgs": "nixpkgs_6",
|
||||||
"systems": "systems_3"
|
"systems": "systems_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769644746,
|
"lastModified": 1769644746,
|
||||||
@@ -692,11 +807,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769069492,
|
"lastModified": 1772024342,
|
||||||
"narHash": "sha256-Efs3VUPelRduf3PpfPP2ovEB4CXT7vHf8W+xc49RL/U=",
|
"narHash": "sha256-+eXlIc4/7dE6EcPs9a2DaSY3fTA9AE526hGqkNID3Wg=",
|
||||||
"owner": "cachix",
|
"owner": "cachix",
|
||||||
"repo": "git-hooks.nix",
|
"repo": "git-hooks.nix",
|
||||||
"rev": "a1ef738813b15cf8ec759bdff5761b027e3e1d23",
|
"rev": "6e34e97ed9788b17796ee43ccdbaf871a5c2b476",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -707,12 +822,14 @@
|
|||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"aurora": "aurora",
|
||||||
"disko": "disko",
|
"disko": "disko",
|
||||||
"firefox-addons": "firefox-addons",
|
"firefox-addons": "firefox-addons",
|
||||||
"home-manager": "home-manager",
|
"flake-parts": "flake-parts_2",
|
||||||
|
"home-manager": "home-manager_2",
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
"nix-minecraft": "nix-minecraft",
|
"import-tree": "import-tree_2",
|
||||||
"nixpkgs": "nixpkgs_3",
|
"nixpkgs": "nixpkgs_4",
|
||||||
"nixpkgs-us": "nixpkgs-us",
|
"nixpkgs-us": "nixpkgs-us",
|
||||||
"nixvim": "nixvim",
|
"nixvim": "nixvim",
|
||||||
"sops-nix": "sops-nix"
|
"sops-nix": "sops-nix"
|
||||||
@@ -725,11 +842,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769921679,
|
"lastModified": 1772495394,
|
||||||
"narHash": "sha256-twBMKGQvaztZQxFxbZnkg7y/50BW9yjtCBWwdjtOZew=",
|
"narHash": "sha256-hmIvE/slLKEFKNEJz27IZ8BKlAaZDcjIHmkZ7GCEjfw=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "1e89149dcfc229e7e2ae24a8030f124a31e4f24f",
|
"rev": "1d9b98a29a45abe9c4d3174bd36de9f28755e3ff",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -768,21 +885,6 @@
|
|||||||
"type": "github"
|
"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"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"xdph": {
|
"xdph": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"hyprland-protocols": [
|
"hyprland-protocols": [
|
||||||
|
|||||||
188
flake.nix
188
flake.nix
@@ -21,187 +21,31 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
|
|
||||||
|
import-tree.url = "github:vic/import-tree";
|
||||||
|
|
||||||
firefox-addons = {
|
firefox-addons = {
|
||||||
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
|
|
||||||
|
|
||||||
#simple-nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-25.11";
|
|
||||||
|
|
||||||
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||||
|
|
||||||
nixvim.url = "git+https://gitea.esotericbytes.com/Blunkall-Technologies/Moirai";
|
#nixvim.url = "git+https://gitea.esotericbytes.com/Blunkall-Technologies/Moirai";
|
||||||
|
nixvim.url = "git+file:///home/nathan/Projects/Moirai";
|
||||||
|
|
||||||
self.submodules = true;
|
#aurora.url = "git+https://gitea.esotericbytes.com/Blunkall-Technologies/Aurora";
|
||||||
|
aurora.url = "git+file:///home/nathan/Projects/Aurora";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, ... } @ inputs: {
|
outputs = { ... } @ inputs:
|
||||||
|
inputs.flake-parts.lib.mkFlake { inherit inputs; }
|
||||||
profiles = let
|
(inputs.import-tree [
|
||||||
dir = builtins.readDir ./profiles;
|
./profiles
|
||||||
filtered = builtins.filter (x: dir.${x} == "directory") (builtins.attrNames dir);
|
./homes
|
||||||
in (builtins.listToAttrs
|
./system
|
||||||
(builtins.map
|
./templates/default.nix
|
||||||
(name: ({
|
./flake-parts.nix
|
||||||
inherit name;
|
]);
|
||||||
|
|
||||||
value = { ... }: {
|
|
||||||
imports = [
|
|
||||||
./system
|
|
||||||
./profiles/${name}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
})) filtered)
|
|
||||||
);
|
|
||||||
|
|
||||||
homes = let
|
|
||||||
dir = builtins.readDir ./homes;
|
|
||||||
filtered = builtins.filter (x: dir.${x} == "directory") (builtins.attrNames dir);
|
|
||||||
in (builtins.listToAttrs
|
|
||||||
(builtins.map
|
|
||||||
(name: ({
|
|
||||||
inherit name;
|
|
||||||
|
|
||||||
value = { ... } @ exputs: {
|
|
||||||
imports = [ (import ./homes/${name}/home-manager (exputs // inputs)) ];
|
|
||||||
};
|
|
||||||
|
|
||||||
})) filtered)
|
|
||||||
);
|
|
||||||
|
|
||||||
iso = (nixpkgs.lib.nixosSystem {
|
|
||||||
system = "x86_64-linux";
|
|
||||||
specialArgs = {
|
|
||||||
inputs = inputs // {
|
|
||||||
nathan = self.homes.nathan;
|
|
||||||
inherit self;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
modules = [
|
|
||||||
self.profiles.iso
|
|
||||||
];
|
|
||||||
}).config.system.build.isoImage;
|
|
||||||
|
|
||||||
templates = {
|
|
||||||
nixos = {
|
|
||||||
welcomeText = ''
|
|
||||||
#Welcome to Olympus!
|
|
||||||
Have Fun!
|
|
||||||
'';
|
|
||||||
|
|
||||||
description = ''
|
|
||||||
Generate this where you want your config.
|
|
||||||
'';
|
|
||||||
|
|
||||||
path = ./templates/nixos;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
home-manager = {
|
|
||||||
welcomeText = ''
|
|
||||||
#Welcome to Olympus!
|
|
||||||
Have Fun!
|
|
||||||
'';
|
|
||||||
|
|
||||||
description = ''
|
|
||||||
Generate this where you want your config.
|
|
||||||
'';
|
|
||||||
|
|
||||||
path = ./templates/home-manager;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
nix-on-droid = {
|
|
||||||
welcomeText = ''
|
|
||||||
#Welcome to Olympus!
|
|
||||||
Have Fun!
|
|
||||||
'';
|
|
||||||
|
|
||||||
description = ''
|
|
||||||
Generate this where you want your config.
|
|
||||||
'';
|
|
||||||
|
|
||||||
path = ./templates/nix-on-droid;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
machines = let
|
|
||||||
dir = builtins.readDir ./machines;
|
|
||||||
filtered = builtins.filter (x: dir.${x} == "directory") (builtins.attrNames dir);
|
|
||||||
in (builtins.listToAttrs
|
|
||||||
(builtins.map
|
|
||||||
(name: ({
|
|
||||||
inherit name;
|
|
||||||
|
|
||||||
value = {
|
|
||||||
welcomeText = ''
|
|
||||||
#Welcome to Olympus!
|
|
||||||
|
|
||||||
##Warning:
|
|
||||||
This is a config for ${name}, an established machine!
|
|
||||||
It may require significant alterations to be usable!
|
|
||||||
'';
|
|
||||||
|
|
||||||
description = ''
|
|
||||||
Generate this where you want your config.
|
|
||||||
'';
|
|
||||||
|
|
||||||
path = ./machines/${name};
|
|
||||||
};
|
|
||||||
|
|
||||||
})) filtered)
|
|
||||||
);
|
|
||||||
|
|
||||||
homes = let
|
|
||||||
dir = builtins.readDir ./homes;
|
|
||||||
filtered = builtins.filter (x: dir.${x} == "directory") (builtins.attrNames dir);
|
|
||||||
in (builtins.listToAttrs
|
|
||||||
(builtins.map
|
|
||||||
(name: ({
|
|
||||||
inherit name;
|
|
||||||
|
|
||||||
value = {
|
|
||||||
welcomeText = ''
|
|
||||||
#Welcome home, ${name}!
|
|
||||||
Your config is right here.
|
|
||||||
'';
|
|
||||||
|
|
||||||
description = ''
|
|
||||||
Generate this where you want your config.
|
|
||||||
'';
|
|
||||||
|
|
||||||
path = ./homes/${name};
|
|
||||||
};
|
|
||||||
|
|
||||||
})) filtered)
|
|
||||||
);
|
|
||||||
|
|
||||||
default = self.templates.nixos;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
nixosConfigurations = let
|
|
||||||
dir = builtins.readDir ./machines;
|
|
||||||
filtered = builtins.filter (x: dir.${x} == "directory" && x != "android") (builtins.attrNames dir);
|
|
||||||
in (builtins.listToAttrs
|
|
||||||
(builtins.map
|
|
||||||
(name: ({
|
|
||||||
inherit name;
|
|
||||||
|
|
||||||
value = nixpkgs.lib.nixosSystem {
|
|
||||||
specialArgs = inputs;
|
|
||||||
|
|
||||||
modules = [
|
|
||||||
{ sysconfig.host = name; }
|
|
||||||
./machines/${name}
|
|
||||||
self.profiles.${name}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
})) filtered)
|
|
||||||
);
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
{
|
|
||||||
|
|
||||||
description = "Home-Manager Configuration";
|
|
||||||
|
|
||||||
inputs = {
|
|
||||||
|
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
|
||||||
|
|
||||||
home-manager = {
|
|
||||||
url = "github:nix-community/home-manager/release-25.11";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
olympus = {
|
|
||||||
url = "git+https://gitea.esotericbytes.com/Blunkall-Technologies/Olympus";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
inputs.home-manager.follows = "home-manager";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, olympus, ... } @ inputs: {
|
|
||||||
|
|
||||||
homeConfigurations = {
|
|
||||||
nathan = home-manager.lib.homeManagerConfiguration {
|
|
||||||
pkgs = import nixpkgs {
|
|
||||||
system = builtins.currentSystem;
|
|
||||||
};
|
|
||||||
|
|
||||||
modules = [
|
|
||||||
olympus.homes.nathan
|
|
||||||
./home.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
extraSpecialArgs = {
|
|
||||||
inherit inputs;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,114 +1,113 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
|
|
||||||
imports = let
|
flake.homeModules.nathan = { config, lib, pkgs, ... }: {
|
||||||
dir = builtins.readDir ./.;
|
|
||||||
in (builtins.map (x: ./${x}) (builtins.filter
|
|
||||||
(file: (dir.${file} == "directory"))
|
|
||||||
(builtins.attrNames dir)
|
|
||||||
)) ++ [
|
|
||||||
inputs.sops-nix.homeManagerModules.sops
|
|
||||||
];
|
|
||||||
|
|
||||||
options.homeconfig = with lib; {
|
imports = [
|
||||||
|
inputs.sops-nix.homeManagerModules.sops
|
||||||
|
];
|
||||||
|
|
||||||
name = mkOption {
|
options.homeconfig = with lib; {
|
||||||
type = with types; nullOr str;
|
|
||||||
default = null;
|
|
||||||
};
|
|
||||||
|
|
||||||
graphical = mkOption {
|
name = mkOption {
|
||||||
type = with types; bool;
|
type = with types; nullOr str;
|
||||||
default = true;
|
default = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
standalone = mkOption {
|
graphical = mkOption {
|
||||||
type = with types; bool;
|
type = with types; bool;
|
||||||
default = false;
|
default = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
virtual-machines = mkOption {
|
standalone = mkOption {
|
||||||
type = with types; bool;
|
type = with types; bool;
|
||||||
default = false;
|
default = false;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
|
virtual-machines = mkOption {
|
||||||
config = {
|
type = with types; bool;
|
||||||
|
default = false;
|
||||||
homeconfig = {
|
|
||||||
name = "nathan";
|
|
||||||
|
|
||||||
mpd.enable = lib.mkDefault true;
|
|
||||||
calcurse.enable = lib.mkDefault true;
|
|
||||||
git.enable = lib.mkDefault true;
|
|
||||||
nh.enable = lib.mkDefault true;
|
|
||||||
|
|
||||||
minimal = lib.mkDefault false;
|
|
||||||
hyprland.enable = lib.mkDefault config.homeconfig.graphical;
|
|
||||||
hyprlock.enable = lib.mkDefault config.homeconfig.hyprland.enable;
|
|
||||||
wal.enable = lib.mkDefault config.homeconfig.graphical;
|
|
||||||
hyprpanel.enable = lib.mkDefault config.homeconfig.hyprland.enable;
|
|
||||||
rofi.enable = lib.mkDefault config.homeconfig.hyprland.enable;
|
|
||||||
firefox.enable = lib.mkDefault config.homeconfig.graphical;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.username = lib.mkDefault config.homeconfig.name;
|
|
||||||
|
|
||||||
home.homeDirectory = lib.mkDefault "/home/${config.home.username}";
|
|
||||||
|
|
||||||
home.stateVersion = "23.11";
|
|
||||||
|
|
||||||
home.pointerCursor = lib.mkIf config.homeconfig.graphical {
|
|
||||||
gtk.enable = true;
|
|
||||||
package = pkgs.bibata-cursors;
|
|
||||||
name = "Bibata-Modern-Classic";
|
|
||||||
size = 16;
|
|
||||||
};
|
|
||||||
|
|
||||||
dconf.settings = lib.mkIf config.homeconfig.virtual-machines {
|
|
||||||
"org/virt-manager/virt-manager/connections" = {
|
|
||||||
autoconnect = ["qemu:///system"];
|
|
||||||
uris = ["qemu:///system"];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
gtk = lib.mkIf (config.homeconfig.graphical && config.homeconfig.hyprland.enable) {
|
|
||||||
enable = true;
|
|
||||||
theme.name = "Tokyonight-Dark";
|
|
||||||
theme.package = pkgs.tokyonight-gtk-theme;
|
|
||||||
iconTheme.package = pkgs.rose-pine-icon-theme;
|
|
||||||
iconTheme.name = "rose-pine-moon";
|
|
||||||
};
|
|
||||||
|
|
||||||
sops = {
|
config = {
|
||||||
age.keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
|
|
||||||
defaultSopsFile = ./secrets.yaml;
|
|
||||||
defaultSopsFormat = "yaml";
|
|
||||||
|
|
||||||
#secrets."remoteBuildKey" = {};
|
homeconfig = {
|
||||||
};
|
name = "nathan";
|
||||||
|
|
||||||
services.mpris-proxy.enable = true;
|
mpd.enable = lib.mkDefault true;
|
||||||
|
calcurse.enable = lib.mkDefault true;
|
||||||
|
git.enable = lib.mkDefault true;
|
||||||
|
nh.enable = lib.mkDefault true;
|
||||||
|
|
||||||
programs.ssh = {
|
minimal = lib.mkDefault false;
|
||||||
enable = true;
|
hyprland.enable = lib.mkDefault config.homeconfig.graphical;
|
||||||
|
hypridle.enable = lib.mkDefault config.homeconfig.hyprland.enable;
|
||||||
|
wal.enable = lib.mkDefault config.homeconfig.graphical;
|
||||||
|
rofi.enable = lib.mkDefault config.homeconfig.hyprland.enable;
|
||||||
|
firefox.enable = lib.mkDefault config.homeconfig.graphical;
|
||||||
|
|
||||||
matchBlocks = {
|
aurora.enable = lib.mkDefault config.homeconfig.hyprland.enable;
|
||||||
"builder" = {
|
};
|
||||||
hostname = "esotericbytes.com";
|
|
||||||
user = "remote-builder";
|
home.username = lib.mkDefault config.homeconfig.name;
|
||||||
identityFile = "${config.home.homeDirectory}/.ssh/id_ed25519";
|
|
||||||
port = 22;
|
home.homeDirectory = lib.mkDefault "/home/${config.home.username}";
|
||||||
};
|
|
||||||
|
home.stateVersion = "23.11";
|
||||||
"remote" = {
|
|
||||||
hostname = "esotericbytes.com";
|
home.pointerCursor = lib.mkIf config.homeconfig.graphical {
|
||||||
user = "nathan";
|
gtk.enable = true;
|
||||||
identityFile = "${config.home.homeDirectory}/.ssh/id_ed25519";
|
package = pkgs.bibata-cursors;
|
||||||
port = 22;
|
name = "Bibata-Modern-Classic";
|
||||||
|
size = 16;
|
||||||
|
};
|
||||||
|
|
||||||
|
dconf.settings = lib.mkIf config.homeconfig.virtual-machines {
|
||||||
|
"org/virt-manager/virt-manager/connections" = {
|
||||||
|
autoconnect = ["qemu:///system"];
|
||||||
|
uris = ["qemu:///system"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
|
gtk = lib.mkIf (config.homeconfig.graphical && config.homeconfig.hyprland.enable) {
|
||||||
|
enable = true;
|
||||||
|
theme.name = "Tokyonight-Dark";
|
||||||
|
theme.package = pkgs.tokyonight-gtk-theme;
|
||||||
|
iconTheme.package = pkgs.rose-pine-icon-theme;
|
||||||
|
iconTheme.name = "rose-pine-moon";
|
||||||
|
};
|
||||||
|
|
||||||
|
sops = {
|
||||||
|
age.keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
|
||||||
|
defaultSopsFile = ./secrets.yaml;
|
||||||
|
defaultSopsFormat = "yaml";
|
||||||
|
|
||||||
|
#secrets."remoteBuildKey" = {};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.mpris-proxy.enable = true;
|
||||||
|
|
||||||
|
programs.ssh = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
matchBlocks = {
|
||||||
|
"builder" = {
|
||||||
|
hostname = "esotericbytes.com";
|
||||||
|
user = "remote-builder";
|
||||||
|
identityFile = "${config.home.homeDirectory}/.ssh/id_ed25519";
|
||||||
|
port = 22;
|
||||||
|
};
|
||||||
|
|
||||||
|
"remote" = {
|
||||||
|
hostname = "esotericbytes.com";
|
||||||
|
user = "nathan";
|
||||||
|
identityFile = "${config.home.homeDirectory}/.ssh/id_ed25519";
|
||||||
|
port = 22;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
{ config, lib, ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
home.file = {
|
flake.homeModules.nathan = { config, lib, ... }: {
|
||||||
".config/hypr" = lib.mkIf config.homeconfig.hyprland.enable { source = ./hypr; recursive = true; };
|
|
||||||
".config/hyprpanel" = lib.mkIf config.homeconfig.hyprpanel.enable { source = ./hyprpanel; recursive = true; };
|
|
||||||
".config/wal/templates" = lib.mkIf config.homeconfig.wal.enable { source = ./wal/templates; recursive = true; };
|
|
||||||
".config/ohmyposh" = { source = ./ohmyposh; recursive = true; };
|
|
||||||
".config/quickshell" = lib.mkIf config.homeconfig.quickshell.enable { source = ./quickshell; recursive = true; };
|
|
||||||
"Pictures/Wallpaper" = lib.mkIf config.homeconfig.graphical { source = ./Wallpaper; recursive = true; };
|
|
||||||
};
|
|
||||||
|
|
||||||
|
home.file = {
|
||||||
|
".config/hypr" = lib.mkIf config.homeconfig.hyprland.enable { source = ./hypr; recursive = true; };
|
||||||
|
".config/wal/templates" = lib.mkIf config.homeconfig.wal.enable { source = ./wal/templates; recursive = true; };
|
||||||
|
".config/ohmyposh" = { source = ./ohmyposh; recursive = true; };
|
||||||
|
"Pictures/Wallpaper" = lib.mkIf config.homeconfig.graphical { source = ./Wallpaper; recursive = true; };
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
35
homes/nathan/home-manager/dotfiles/hypr/dwindle.conf
Normal file
35
homes/nathan/home-manager/dotfiles/hypr/dwindle.conf
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
dwindle {
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||||
|
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||||
|
preserve_split = yes # you probably want this
|
||||||
|
}
|
||||||
|
|
||||||
|
bind = $mainMod, F1, submap, dwindle
|
||||||
|
|
||||||
|
submap = master
|
||||||
|
|
||||||
|
bind = $mainMod, F2, submap, master
|
||||||
|
bind = $mainMod, F3, submap, scrolling
|
||||||
|
bind = $mainMod, End, submap, reset
|
||||||
|
|
||||||
|
bind = $mainMod, down, workspace, r+1
|
||||||
|
bind = $mainMod, up, workspace, r-1
|
||||||
|
bind = $mainMod, left, layoutmsg, move -col
|
||||||
|
bind = $mainMod, right, layoutmsg, move +col
|
||||||
|
|
||||||
|
bind = $mainMod SHIFT, down, movetoworkspace, r+1
|
||||||
|
bind = $mainMod SHIFT, up, movetoworkspace, r-1
|
||||||
|
bind = $mainMod SHIFT, left, layoutmsg, swapcol l
|
||||||
|
bind = $mainMod SHIFT, right, layoutmsg, swapcol r
|
||||||
|
|
||||||
|
bind = $mainMod, H, layoutmsg, focus l
|
||||||
|
bind = $mainMod, J, workspace, e+1
|
||||||
|
bind = $mainMod, K, workspace, e-1
|
||||||
|
bind = $mainMod, L, layoutmsg, focus r
|
||||||
|
|
||||||
|
bind = $mainMod SHIFT, H, layoutmsg, swapcol l
|
||||||
|
bind = $mainMod SHIFT, J, movetoworkspace, e+1
|
||||||
|
bind = $mainMod SHIFT, K, movetoworkspace, e-1
|
||||||
|
bind = $mainMod SHIFT, L, layoutmsg, swapcol r
|
||||||
|
|
||||||
|
submap = reset
|
||||||
@@ -1,108 +0,0 @@
|
|||||||
# sample hyprlock.conf
|
|
||||||
# for more configuration options, refer https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock
|
|
||||||
#
|
|
||||||
# rendered text in all widgets supports pango markup (e.g. <b> or <i> tags)
|
|
||||||
# ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#general-remarks
|
|
||||||
#
|
|
||||||
# shortcuts to clear password buffer: ESC, Ctrl+U, Ctrl+Backspace
|
|
||||||
#
|
|
||||||
# you can get started by copying this config to ~/.config/hypr/hyprlock.conf
|
|
||||||
#
|
|
||||||
|
|
||||||
$font = Monospace
|
|
||||||
|
|
||||||
source = ~/.cache/wal/colors-hypr.conf
|
|
||||||
|
|
||||||
general {
|
|
||||||
hide_cursor = false
|
|
||||||
}
|
|
||||||
|
|
||||||
# uncomment to enable fingerprint authentication
|
|
||||||
# auth {
|
|
||||||
# fingerprint {
|
|
||||||
# enabled = true
|
|
||||||
# ready_message = Scan fingerprint to unlock
|
|
||||||
# present_message = Scanning...
|
|
||||||
# retry_delay = 250 # in milliseconds
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
|
|
||||||
animations {
|
|
||||||
enabled = true
|
|
||||||
bezier = linear, 1, 1, 0, 0
|
|
||||||
animation = fadeIn, 1, 5, linear
|
|
||||||
animation = fadeOut, 1, 5, linear
|
|
||||||
animation = inputFieldDots, 1, 2, linear
|
|
||||||
}
|
|
||||||
|
|
||||||
background {
|
|
||||||
monitor =
|
|
||||||
path = screenshot
|
|
||||||
blur_passes = 3
|
|
||||||
}
|
|
||||||
|
|
||||||
input-field {
|
|
||||||
monitor =
|
|
||||||
size = 20%, 5%
|
|
||||||
outline_thickness = 3
|
|
||||||
inner_color = rgba(0, 0, 0, 0.0) # no fill
|
|
||||||
|
|
||||||
outer_color = $color1 $color5 100deg
|
|
||||||
check_color = $color2 $color6 120deg
|
|
||||||
fail_color = $color3 $color7 40deg
|
|
||||||
|
|
||||||
font_color = rgb(143, 143, 143)
|
|
||||||
fade_on_empty = false
|
|
||||||
rounding = 15
|
|
||||||
|
|
||||||
font_family = $font
|
|
||||||
placeholder_text = Input password...
|
|
||||||
fail_text = $PAMFAIL
|
|
||||||
|
|
||||||
# uncomment to use a letter instead of a dot to indicate the typed password
|
|
||||||
# dots_text_format = *
|
|
||||||
# dots_size = 0.4
|
|
||||||
dots_spacing = 0.3
|
|
||||||
|
|
||||||
# uncomment to use an input indicator that does not show the password length (similar to swaylock's input indicator)
|
|
||||||
# hide_input = true
|
|
||||||
|
|
||||||
position = 0, -20
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
|
|
||||||
# TIME
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = $TIME # ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#variable-substitution
|
|
||||||
font_size = 90
|
|
||||||
font_family = $font
|
|
||||||
|
|
||||||
position = -30, 0
|
|
||||||
halign = right
|
|
||||||
valign = top
|
|
||||||
}
|
|
||||||
|
|
||||||
# DATE
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:60000] date +"%A, %d %B %Y" # update every 60 seconds
|
|
||||||
font_size = 25
|
|
||||||
font_family = $font
|
|
||||||
|
|
||||||
position = -30, -150
|
|
||||||
halign = right
|
|
||||||
valign = top
|
|
||||||
}
|
|
||||||
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = $LAYOUT[en,ru]
|
|
||||||
font_size = 24
|
|
||||||
onclick = hyprctl switchxkblayout all next
|
|
||||||
|
|
||||||
position = 250, -20
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
@@ -10,13 +10,15 @@
|
|||||||
# #
|
# #
|
||||||
#------------------------------------------------#
|
#------------------------------------------------#
|
||||||
|
|
||||||
exec-once = hyprrun onSystemStart
|
exec-once = onSystemStart
|
||||||
|
|
||||||
# Some default env vars.
|
# Some default env vars.
|
||||||
env = XCURSOR_SIZE,16
|
env = XCURSOR_SIZE,16
|
||||||
|
|
||||||
|
$mainMod = ALT
|
||||||
|
|
||||||
source = ~/.config/hypr/otf.conf
|
source = ~/.config/hypr/otf.conf
|
||||||
source = ~/.cache/wal/colors-hypr.conf
|
source = ~/.cache/wal/colors-hyprland.conf
|
||||||
|
|
||||||
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
||||||
input {
|
input {
|
||||||
@@ -48,7 +50,7 @@ general {
|
|||||||
col.active_border = $color1 $color5 100deg
|
col.active_border = $color1 $color5 100deg
|
||||||
col.inactive_border = $color0
|
col.inactive_border = $color0
|
||||||
|
|
||||||
layout = master
|
layout = scrolling
|
||||||
}
|
}
|
||||||
decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more
|
decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||||
|
|
||||||
@@ -77,21 +79,16 @@ animations {
|
|||||||
animation = border, 1, 10, default
|
animation = border, 1, 10, default
|
||||||
animation = borderangle, 1, 8, default
|
animation = borderangle, 1, 8, default
|
||||||
animation = fade, 1, 7, default
|
animation = fade, 1, 7, default
|
||||||
animation = workspaces, 1, 6, default
|
animation = workspaces, 1, 6, default, slidevert
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
source = ~/.config/hypr/dwindle.conf
|
||||||
|
|
||||||
dwindle {
|
source = ~/.config/hypr/master.conf
|
||||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
|
||||||
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
source = ~/.config/hypr/scroll.conf
|
||||||
preserve_split = yes # you probably want this
|
|
||||||
}
|
|
||||||
|
|
||||||
master {
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
|
||||||
new_status = "master"
|
|
||||||
}
|
|
||||||
|
|
||||||
misc {
|
misc {
|
||||||
disable_hyprland_logo = false
|
disable_hyprland_logo = false
|
||||||
@@ -105,13 +102,12 @@ ecosystem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Binds
|
# Binds
|
||||||
$mainMod = ALT
|
|
||||||
|
|
||||||
bind = $mainMod SHIFT, E, exec, colorPrefix hyprrun kitty
|
bind = $mainMod SHIFT, E, exec, colorPrefix kitty
|
||||||
|
|
||||||
bind = $mainMod, B, exec, hyprrun firefox
|
bind = $mainMod, B, exec, firefox
|
||||||
|
|
||||||
bind = $mainMod SHIFT, B, exec, hyprrun firefox --private-window
|
bind = $mainMod SHIFT, B, exec, firefox --private-window
|
||||||
|
|
||||||
bind = $mainMod, Q, killactive,
|
bind = $mainMod, Q, killactive,
|
||||||
|
|
||||||
@@ -119,20 +115,20 @@ bind = $mainMod, Q, killactive,
|
|||||||
|
|
||||||
#bind = $mainMod SHIFT, R, exec, colorPrefix kitty -e _homeRebuild
|
#bind = $mainMod SHIFT, R, exec, colorPrefix kitty -e _homeRebuild
|
||||||
|
|
||||||
bind = $mainMod, F, exec, hyprrun thunar
|
bind = $mainMod, F, exec, thunar
|
||||||
bind = $mainMod SHIFT, F, fullscreen
|
bind = $mainMod SHIFT, F, fullscreen
|
||||||
|
|
||||||
bind = $mainMod SHIFT, semicolon, exec, colorPrefix hyprrun kitty -e lf
|
bind = $mainMod SHIFT, semicolon, exec, colorPrefix kitty -e yazi
|
||||||
|
|
||||||
bind = $mainMod, Insert, exec, hyprrun libreoffice
|
bind = $mainMod, Insert, exec, libreoffice
|
||||||
|
|
||||||
bind = $mainMod, V, togglefloating,
|
bind = $mainMod, V, togglefloating,
|
||||||
|
|
||||||
bind = $mainMod SHIFT, V, exec, hyprrun vlc
|
bind = $mainMod SHIFT, V, exec, vlc
|
||||||
|
|
||||||
bind = , Menu, exec, rofi -show drun -show-icons -run-command 'hyprrun {cmd}'
|
bind = , Menu, exec, rofi -show drun -show-icons -run-command '{cmd}'
|
||||||
|
|
||||||
bind = $mainMod, Menu, exec, hyprrun hyprpanel -q; hyprrun hyprpanel
|
bind = $mainMod, Menu, exec, systemctl restart --user quickshell
|
||||||
|
|
||||||
#bind = $mainMod, P, pseudo, # dwindle
|
#bind = $mainMod, P, pseudo, # dwindle
|
||||||
#bind = $mainMod, Z, togglesplit, # dwindle
|
#bind = $mainMod, Z, togglesplit, # dwindle
|
||||||
@@ -140,34 +136,34 @@ bind = $mainMod, Menu, exec, hyprrun hyprpanel -q; hyprrun hyprpanel
|
|||||||
bind = $mainMod, N, layoutmsg, rollnext # master
|
bind = $mainMod, N, layoutmsg, rollnext # master
|
||||||
bind = $mainMod, P, layoutmsg, rollprev # master
|
bind = $mainMod, P, layoutmsg, rollprev # master
|
||||||
|
|
||||||
bind = $mainMod, M, exec, hyprrun spotify
|
bind = $mainMod, M, exec, spotify
|
||||||
|
|
||||||
bind = $mainMod SHIFT, M, exec, hyprrun firefox soundcloud.com/you/library
|
bind = $mainMod SHIFT, M, exec, firefox soundcloud.com/you/library
|
||||||
|
|
||||||
bind = $mainMod CTRL, M, exec, colorPrefix hyprrun kitty -e ncmpcpp -s browser
|
bind = $mainMod CTRL, M, exec, colorPrefix kitty -e ncmpcpp -s browser
|
||||||
|
|
||||||
bind = $mainMod, XF86AudioPlay, exec, hyprrun mpc load casual
|
bind = $mainMod, XF86AudioPlay, exec, mpc load casual
|
||||||
|
|
||||||
bind = , XF86AudioPlay, exec, hyprrun playerctl play-pause
|
bind = , XF86AudioPlay, exec, playerctl play-pause
|
||||||
|
|
||||||
bind = , XF86AudioPause, exec, hyprrun playerctl pause
|
bind = , XF86AudioPause, exec, playerctl pause
|
||||||
|
|
||||||
bind = , XF86AudioNext, exec, hyprrun playerctl next
|
bind = , XF86AudioNext, exec, playerctl next
|
||||||
|
|
||||||
bind = , XF86AudioPrev, exec, hyprrun playerctl previous
|
bind = , XF86AudioPrev, exec, playerctl previous
|
||||||
|
|
||||||
bind = , XF86Launch2, exec, hyprrun steam
|
bind = , XF86Launch2, exec, steam
|
||||||
bind = $mainMod, XF86Launch2, exec, hyprrun prismlauncher
|
bind = $mainMod, XF86Launch2, exec, prismlauncher
|
||||||
|
|
||||||
bind = , XF86Calculator, exec, hyprrun geogebra
|
bind = , XF86Calculator, exec, geogebra
|
||||||
|
|
||||||
bind = $mainMod SHIFT, Print, exec, hyprrun firefox localhost:631
|
bind = $mainMod SHIFT, Print, exec, firefox localhost:631
|
||||||
|
|
||||||
bind = $mainMod, Return, exec, hyprrun discord --enable-features=UseOzonePlatform --ozone-platform=wayland
|
bind = $mainMod, Return, exec, discord --enable-features=UseOzonePlatform --ozone-platform=wayland
|
||||||
|
|
||||||
bind = $mainMod CTRL, Return, exec, hyprrun firefox https://discord.com/app
|
bind = $mainMod CTRL, Return, exec, firefox https://discord.com/app
|
||||||
|
|
||||||
bind = , Home, exec, hyprrun setWallpaper
|
bind = , Home, exec, setWallpaper
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
# Move focus with mainMod + arrow keys
|
||||||
bind = $mainMod, W, movefocus, u
|
bind = $mainMod, W, movefocus, u
|
||||||
@@ -203,26 +199,25 @@ bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
|||||||
bind = $mainMod SHIFT, Home, movetoworkspace, 11
|
bind = $mainMod SHIFT, Home, movetoworkspace, 11
|
||||||
|
|
||||||
# Scroll through existing workspaces with mainMod + scroll
|
# Scroll through existing workspaces with mainMod + scroll
|
||||||
bind = $mainMod, right, workspace, e+1
|
bind = $mainMod, down, workspace, r+1
|
||||||
bind = $mainMod, left, workspace, e-1
|
bind = $mainMod, up, workspace, r-1
|
||||||
|
bind = $mainMod, left, layoutmsg, move -col
|
||||||
|
bind = $mainMod, right, layoutmsg, move +col
|
||||||
|
|
||||||
bind = $mainMod, H, exec, hyprctl keyword animation workspaces,1,6,default
|
bind = $mainMod SHIFT, down, movetoworkspace, r+1
|
||||||
bind = $mainMod, H, workspace, e-1
|
bind = $mainMod SHIFT, up, movetoworkspace, r-1
|
||||||
bind = $mainMod, J, exec, hyprctl keyword animation workspaces,1,6,default,slidevert
|
bind = $mainMod SHIFT, left, layoutmsg, swapcol l
|
||||||
|
bind = $mainMod SHIFT, right, layoutmsg, swapcol r
|
||||||
|
|
||||||
|
bind = $mainMod, H, layoutmsg, focus l
|
||||||
bind = $mainMod, J, workspace, e+1
|
bind = $mainMod, J, workspace, e+1
|
||||||
bind = $mainMod, K, exec, hyprctl keyword animation workspaces,1,6,default,slidevert
|
|
||||||
bind = $mainMod, K, workspace, e-1
|
bind = $mainMod, K, workspace, e-1
|
||||||
bind = $mainMod, L, exec, hyprctl keyword animation workspaces,1,6,default
|
bind = $mainMod, L, layoutmsg, focus r
|
||||||
bind = $mainMod, L, workspace, e+1
|
|
||||||
|
|
||||||
bind = $mainMod SHIFT, H, exec, hyprctl keyword animation workspaces,1,6,default
|
bind = $mainMod SHIFT, H, layoutmsg, swapcol l
|
||||||
bind = $mainMod SHIFT, H, movetoworkspace, e-1
|
|
||||||
bind = $mainMod SHIFT, J, exec, hyprctl keyword animation workspaces,1,6,default,slidevert
|
|
||||||
bind = $mainMod SHIFT, J, movetoworkspace, e+1
|
bind = $mainMod SHIFT, J, movetoworkspace, e+1
|
||||||
bind = $mainMod SHIFT, K, exec, hyprctl keyword animation workspaces,1,6,default,slidevert
|
|
||||||
bind = $mainMod SHIFT, K, movetoworkspace, e-1
|
bind = $mainMod SHIFT, K, movetoworkspace, e-1
|
||||||
bind = $mainMod SHIFT, L, exec, hyprctl keyword animation workspaces,1,6,default
|
bind = $mainMod SHIFT, L, layoutmsg, swapcol r
|
||||||
bind = $mainMod SHIFT, L, movetoworkspace, e+1
|
|
||||||
|
|
||||||
#switch network connections
|
#switch network connections
|
||||||
bind = CTRL SHIFT, Escape, exec, nmcli device down wlo1
|
bind = CTRL SHIFT, Escape, exec, nmcli device down wlo1
|
||||||
@@ -232,14 +227,18 @@ bind = CTRL SHIFT, 2, exec, nmcli connection up CXNK00813829
|
|||||||
bind = CTRL SHIFT, 3, exec, nmcli connection up ATT9MhT2ql
|
bind = CTRL SHIFT, 3, exec, nmcli connection up ATT9MhT2ql
|
||||||
|
|
||||||
#brightness keys
|
#brightness keys
|
||||||
bind = , XF86MonBrightnessUp, exec, brightnessctl set +10%
|
binde = SHIFT, XF86MonBrightnessUp, exec, brightnessctl set +2%
|
||||||
bind = , XF86MonBrightnessDown, exec, brightnessctl set 10%-
|
binde = SHIFT, XF86MonBrightnessDown, exec, brightnessctl set 2%-
|
||||||
|
binde = , XF86MonBrightnessUp, exec, brightnessctl set +10%
|
||||||
|
binde = , XF86MonBrightnessDown, exec, brightnessctl set 10%-
|
||||||
|
|
||||||
#volume keys
|
#volume keys
|
||||||
|
binde = SHIFT, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_SINK@ 2%+
|
||||||
|
binde = SHIFT, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_SINK@ 2%-
|
||||||
binde = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_SINK@ 10%+
|
binde = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_SINK@ 10%+
|
||||||
binde = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_SINK@ 10%-
|
binde = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_SINK@ 10%-
|
||||||
bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle
|
bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle
|
||||||
bind = $mainMod, F9, exec, hyprrun pavucontrol
|
bind = $mainMod, F9, exec, pavucontrol
|
||||||
|
|
||||||
#screen lock key
|
#screen lock key
|
||||||
#bind = $mainMod, F12, exec, swaylock
|
#bind = $mainMod, F12, exec, swaylock
|
||||||
@@ -257,29 +256,9 @@ bind = $mainMod SHIFT, D, movewindow, r
|
|||||||
bindm = $mainMod, mouse:272, movewindow
|
bindm = $mainMod, mouse:272, movewindow
|
||||||
bindm = $mainMod SHIFT, mouse:272, resizewindow
|
bindm = $mainMod SHIFT, mouse:272, resizewindow
|
||||||
|
|
||||||
$scratchpadsize = size (monitor_w*0.6) (monitor_h*0.8)
|
source = ~/.config/hypr/pypr.conf
|
||||||
|
|
||||||
$kitty = ^(scratchpad-kitty)$
|
bind = CTRL SHIFT, Home, exec, ssh nathan@esotericbytes.com -fL 5900:localhost:5900 sleep 10; vncviewer localhost:5900 -fullscreen
|
||||||
windowrule = float on, match:class $kitty
|
|
||||||
windowrule = $scratchpadsize, match:class $kitty
|
|
||||||
windowrule = workspace special silent, match:class $kitty
|
|
||||||
|
|
||||||
$lf = ^(scratchpad-lf)$
|
|
||||||
windowrule = float on, match:class $lf
|
|
||||||
windowrule = $scratchpadsize, match:class $lf
|
|
||||||
windowrule = workspace special silent, match:class $lf
|
|
||||||
|
|
||||||
$cal = ^(scratchpad-cal)$
|
|
||||||
windowrule = float on, match:class $cal
|
|
||||||
windowrule = $scratchpadsize, match:class $cal
|
|
||||||
windowrule = workspace special silent, match:class $cal
|
|
||||||
|
|
||||||
bind = $mainMod, semicolon, exec, pypr toggle lf
|
|
||||||
bind = $mainMod, E, exec, pypr toggle kitty
|
|
||||||
bind = $mainMod, C, exec, pypr toggle calendar
|
|
||||||
|
|
||||||
|
|
||||||
bind = CTRL SHIFT, Home, exec, hyprrun ssh nathan@esotericbytes.com -fL 5900:localhost:5900 sleep 10; vncviewer localhost:5900 -fullscreen
|
|
||||||
bind = CTRL SHIFT, Home, submap, clean
|
bind = CTRL SHIFT, Home, submap, clean
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
35
homes/nathan/home-manager/dotfiles/hypr/master.conf
Normal file
35
homes/nathan/home-manager/dotfiles/hypr/master.conf
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
|
||||||
|
master {
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||||
|
new_status = "master"
|
||||||
|
}
|
||||||
|
|
||||||
|
bind = $mainMod, F2, submap, master
|
||||||
|
|
||||||
|
submap = master
|
||||||
|
|
||||||
|
bind = $mainMod, F1, submap, dwindle
|
||||||
|
bind = $mainMod, F3, submap, scrolling
|
||||||
|
bind = $mainMod, End, submap, reset
|
||||||
|
|
||||||
|
bind = $mainMod, down, workspace, r+1
|
||||||
|
bind = $mainMod, up, workspace, r-1
|
||||||
|
bind = $mainMod, left, layoutmsg, move -col
|
||||||
|
bind = $mainMod, right, layoutmsg, move +col
|
||||||
|
|
||||||
|
bind = $mainMod SHIFT, down, movetoworkspace, r+1
|
||||||
|
bind = $mainMod SHIFT, up, movetoworkspace, r-1
|
||||||
|
bind = $mainMod SHIFT, left, layoutmsg, swapcol l
|
||||||
|
bind = $mainMod SHIFT, right, layoutmsg, swapcol r
|
||||||
|
|
||||||
|
bind = $mainMod, H, layoutmsg, focus l
|
||||||
|
bind = $mainMod, J, workspace, e+1
|
||||||
|
bind = $mainMod, K, workspace, e-1
|
||||||
|
bind = $mainMod, L, layoutmsg, focus r
|
||||||
|
|
||||||
|
bind = $mainMod SHIFT, H, layoutmsg, swapcol l
|
||||||
|
bind = $mainMod SHIFT, J, movetoworkspace, e+1
|
||||||
|
bind = $mainMod SHIFT, K, movetoworkspace, e-1
|
||||||
|
bind = $mainMod SHIFT, L, layoutmsg, swapcol r
|
||||||
|
|
||||||
|
submap = reset
|
||||||
21
homes/nathan/home-manager/dotfiles/hypr/pypr.conf
Normal file
21
homes/nathan/home-manager/dotfiles/hypr/pypr.conf
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
|
||||||
|
$scratchpadsize = size (monitor_w*0.6) (monitor_h*0.8)
|
||||||
|
|
||||||
|
$kitty = ^(scratchpad-kitty)$
|
||||||
|
windowrule = float on, match:class $kitty
|
||||||
|
windowrule = $scratchpadsize, match:class $kitty
|
||||||
|
windowrule = workspace special silent, match:class $kitty
|
||||||
|
|
||||||
|
$files = ^(scratchpad-files)$
|
||||||
|
windowrule = float on, match:class $files
|
||||||
|
windowrule = $scratchpadsize, match:class $files
|
||||||
|
windowrule = workspace special silent, match:class $files
|
||||||
|
|
||||||
|
$cal = ^(scratchpad-cal)$
|
||||||
|
windowrule = float on, match:class $cal
|
||||||
|
windowrule = $scratchpadsize, match:class $cal
|
||||||
|
windowrule = workspace special silent, match:class $cal
|
||||||
|
|
||||||
|
bind = $mainMod, semicolon, exec, pypr toggle files
|
||||||
|
bind = $mainMod, E, exec, pypr toggle kitty
|
||||||
|
bind = $mainMod, C, exec, pypr toggle calendar
|
||||||
@@ -3,11 +3,11 @@
|
|||||||
"scratchpads"
|
"scratchpads"
|
||||||
]
|
]
|
||||||
|
|
||||||
[scratchpads.lf]
|
[scratchpads.files]
|
||||||
animation = "fromTop"
|
animation = "fromTop"
|
||||||
command = "kitty --class scratchpad-lf lf ~"
|
command = "kitty --class scratchpad-files yazi ~"
|
||||||
lazy = true
|
lazy = true
|
||||||
class = "scratchpad-lf"
|
class = "scratchpad-files"
|
||||||
margin = 100
|
margin = 100
|
||||||
multi = true
|
multi = true
|
||||||
excludes = "*"
|
excludes = "*"
|
||||||
|
|||||||
35
homes/nathan/home-manager/dotfiles/hypr/scroll.conf
Normal file
35
homes/nathan/home-manager/dotfiles/hypr/scroll.conf
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
|
||||||
|
scrolling {
|
||||||
|
column_width = 0.7
|
||||||
|
direction = "right"
|
||||||
|
}
|
||||||
|
|
||||||
|
bind = $mainMod, F3, submap, scrolling
|
||||||
|
|
||||||
|
submap = scrolling
|
||||||
|
|
||||||
|
bind = $mainMod, F1, submap, dwindle
|
||||||
|
bind = $mainMod, F2, submap, master
|
||||||
|
bind = $mainMod, End, submap, reset
|
||||||
|
|
||||||
|
bind = $mainMod, down, workspace, r+1
|
||||||
|
bind = $mainMod, up, workspace, r-1
|
||||||
|
bind = $mainMod, left, layoutmsg, move -col
|
||||||
|
bind = $mainMod, right, layoutmsg, move +col
|
||||||
|
|
||||||
|
bind = $mainMod SHIFT, down, movetoworkspace, r+1
|
||||||
|
bind = $mainMod SHIFT, up, movetoworkspace, r-1
|
||||||
|
bind = $mainMod SHIFT, left, layoutmsg, swapcol l
|
||||||
|
bind = $mainMod SHIFT, right, layoutmsg, swapcol r
|
||||||
|
|
||||||
|
bind = $mainMod, H, layoutmsg, focus l
|
||||||
|
bind = $mainMod, J, workspace, e+1
|
||||||
|
bind = $mainMod, K, workspace, e-1
|
||||||
|
bind = $mainMod, L, layoutmsg, focus r
|
||||||
|
|
||||||
|
bind = $mainMod SHIFT, H, layoutmsg, swapcol l
|
||||||
|
bind = $mainMod SHIFT, J, movetoworkspace, e+1
|
||||||
|
bind = $mainMod SHIFT, K, movetoworkspace, e-1
|
||||||
|
bind = $mainMod SHIFT, L, layoutmsg, swapcol r
|
||||||
|
|
||||||
|
submap = reset
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
{
|
|
||||||
"theme.font.name": "FiraCode Nerd Font Mono",
|
|
||||||
"theme.font.label": "FiraCode Nerd Font Mono Medium",
|
|
||||||
"theme.bar.floating": true,
|
|
||||||
"bar.layouts": {
|
|
||||||
"*": {
|
|
||||||
"left": [
|
|
||||||
"dashboard",
|
|
||||||
"workspaces",
|
|
||||||
"windowtitle",
|
|
||||||
"submap",
|
|
||||||
"kbinput"
|
|
||||||
],
|
|
||||||
"middle": [
|
|
||||||
"volume",
|
|
||||||
"battery",
|
|
||||||
"hyprsunset",
|
|
||||||
"clock",
|
|
||||||
"hypridle",
|
|
||||||
"network",
|
|
||||||
"bluetooth"
|
|
||||||
],
|
|
||||||
"right": [
|
|
||||||
"ram",
|
|
||||||
"storage",
|
|
||||||
"systray",
|
|
||||||
"cava",
|
|
||||||
"notifications",
|
|
||||||
"power"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"theme.bar.opacity": 50,
|
|
||||||
"wallpaper.image": "/tmp/nathan/bg",
|
|
||||||
"wallpaper.enable": false,
|
|
||||||
"theme.matugen_settings.scheme_type": "content",
|
|
||||||
"theme.matugen_settings.variation": "standard_2",
|
|
||||||
"theme.matugen": true,
|
|
||||||
"bar.launcher.autoDetectIcon": true,
|
|
||||||
"bar.network.truncation_size": 10,
|
|
||||||
"bar.bluetooth.label": false,
|
|
||||||
"bar.clock.showIcon": false,
|
|
||||||
"bar.clock.format": "%A %H:%M:%S %m/%d/%C%y",
|
|
||||||
"bar.notifications.show_total": true,
|
|
||||||
"bar.notifications.hideCountWhenZero": true,
|
|
||||||
"menus.dashboard.shortcuts.left.shortcut2.command": "spotify",
|
|
||||||
"menus.dashboard.shortcuts.left.shortcut1.command": "$BROWSER",
|
|
||||||
"menus.dashboard.shortcuts.left.shortcut1.tooltip": "Browser",
|
|
||||||
"menus.dashboard.shortcuts.left.shortcut1.icon": "",
|
|
||||||
"menus.dashboard.directories.enabled": false,
|
|
||||||
"menus.dashboard.stats.enable_gpu": true,
|
|
||||||
"menus.power.lowBatteryNotification": true,
|
|
||||||
"bar.customModules.cava.leftClick": "menu:media",
|
|
||||||
"bar.customModules.cava.showIcon": false,
|
|
||||||
"bar.customModules.hypridle.label": false,
|
|
||||||
"bar.customModules.hyprsunset.label": false,
|
|
||||||
"bar.customModules.hyprsunset.temperature": "4000k",
|
|
||||||
"bar.customModules.netstat.dynamicIcon": true,
|
|
||||||
"bar.customModules.netstat.label": true,
|
|
||||||
"bar.workspaces.show_numbered": true,
|
|
||||||
"bar.workspaces.numbered_active_indicator": "highlight",
|
|
||||||
"bar.workspaces.ignored": "-\\d+",
|
|
||||||
"menus.clock.time.military": true,
|
|
||||||
"menus.clock.weather.enabled": false
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{}
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Widgets
|
|
||||||
import Quickshell.Hyprland
|
|
||||||
import Quickshell
|
|
||||||
|
|
||||||
Item {
|
|
||||||
implicitWidth: t.contentWidth + 10
|
|
||||||
implicitHeight: 30
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
anchors.fill: parent
|
|
||||||
Text {
|
|
||||||
id: t
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
text: {
|
|
||||||
if(hws.toplevels.values.length > 0) {
|
|
||||||
return Hyprland.activeToplevel.title
|
|
||||||
} else {
|
|
||||||
return " Desktop"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
property HyprlandWorkspace hws: Hyprland.focusedWorkspace
|
|
||||||
|
|
||||||
onHwsChanged: {
|
|
||||||
Hyprland.refreshToplevels()
|
|
||||||
Hyprland.refreshWorkspaces()
|
|
||||||
}
|
|
||||||
|
|
||||||
font.pointSize: 11
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,170 +0,0 @@
|
|||||||
import Quickshell // for PanelWindow
|
|
||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Widgets
|
|
||||||
import Quickshell.Wayland
|
|
||||||
|
|
||||||
PanelWindow {
|
|
||||||
anchors {
|
|
||||||
top: true
|
|
||||||
//left: true
|
|
||||||
//right: true
|
|
||||||
//bottom: true
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
id: bar
|
|
||||||
|
|
||||||
exclusionMode: ExclusionMode.Ignore
|
|
||||||
WlrLayershell.layer: WlrLayer.Background
|
|
||||||
|
|
||||||
color: "#a0706050"
|
|
||||||
|
|
||||||
|
|
||||||
implicitHeight: 40
|
|
||||||
implicitWidth: 1900
|
|
||||||
|
|
||||||
/*RowLayout {
|
|
||||||
width: bar.width
|
|
||||||
}*/
|
|
||||||
RowLayout {
|
|
||||||
//Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
|
||||||
id: left
|
|
||||||
x: 0
|
|
||||||
y: parent.y + (parent.height - height) / 2
|
|
||||||
//width: center.x
|
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
Launcher {
|
|
||||||
id: l
|
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
|
||||||
Layout.preferredWidth: width
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
Workspaces {
|
|
||||||
id: ws
|
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
/*ActiveWindow {
|
|
||||||
id: aw
|
|
||||||
Layout.margins: 5
|
|
||||||
|
|
||||||
Layout.maximumWidth: Math.min(implicitWidth, center.x - (parent.x + x + Layout.margins))
|
|
||||||
}*/
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
//Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
|
||||||
id: center
|
|
||||||
x: (parent.width - cl.width) / 2 + parent.x - centerLeft.width
|
|
||||||
//y: parent.y + (parent.height - height) / 2
|
|
||||||
y: parent.y + (parent.height - height) / 2
|
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
id: centerLeft
|
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
Volume {
|
|
||||||
id: v
|
|
||||||
window: bar
|
|
||||||
popupOffset: center.x
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
Battery {
|
|
||||||
id: bat
|
|
||||||
window: bar
|
|
||||||
popupOffset: center.x
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
Hyprsunset {
|
|
||||||
id: hs
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Clock {
|
|
||||||
id: cl
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
IdleInhibitor {
|
|
||||||
id: ii
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
Wifi {
|
|
||||||
id: wifi
|
|
||||||
window: bar
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
Bluetooth {
|
|
||||||
id: bt
|
|
||||||
window: bar
|
|
||||||
popupOffset: center.x + center.width
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
//Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
|
||||||
id: right
|
|
||||||
//implicitWidth: bar.width - (spacer.x + spacer.width)
|
|
||||||
x: bar.width - implicitWidth
|
|
||||||
y: parent.y + (parent.height - height) / 2
|
|
||||||
//Layout.maximumWidth: bar.width - (center.x + center.width)
|
|
||||||
//Layout.preferredWidth: 10
|
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
Media {
|
|
||||||
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
|
||||||
id: media
|
|
||||||
|
|
||||||
implicitWidth: Math.min(textWidth, bar.width - (righter.width) - (center.x + center.width) - 10)
|
|
||||||
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
id: righter
|
|
||||||
spacing: 0
|
|
||||||
Tray {
|
|
||||||
id: tray
|
|
||||||
window: bar
|
|
||||||
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
|
||||||
Layout.margins: 5
|
|
||||||
popupOffset: right.x + righter.x + x
|
|
||||||
}
|
|
||||||
|
|
||||||
Notifications {
|
|
||||||
id: notif
|
|
||||||
window: bar
|
|
||||||
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
Power {
|
|
||||||
id: power
|
|
||||||
window: bar
|
|
||||||
popupOffset: bar.width
|
|
||||||
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
import Quickshell // for PanelWindow
|
|
||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Widgets
|
|
||||||
import Quickshell.Hyprland
|
|
||||||
import Quickshell.Services.UPower
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
width: 100; height: 30
|
|
||||||
color: "red"
|
|
||||||
Button {
|
|
||||||
id: button
|
|
||||||
text: " " + Math.floor(UPower.displayDevice.percentage * 100) + "%"
|
|
||||||
font.pointSize: 12
|
|
||||||
implicitHeight: parent.height
|
|
||||||
//icon.color: "red"
|
|
||||||
//icon.source: "/nix/store/c4dcn4vl0v5njv4d587sazrad1xgyd9h-rose-pine-icon-theme-unstable-2022-09-01/share/icons/rose-pine/symbolic/devices/battery-symbolic.svg"
|
|
||||||
onClicked: {
|
|
||||||
menu.visible = true
|
|
||||||
grab.active = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
required property var window
|
|
||||||
required property real popupOffset
|
|
||||||
id: root
|
|
||||||
|
|
||||||
PopupWindow {
|
|
||||||
|
|
||||||
id: menu
|
|
||||||
|
|
||||||
anchor.window: window
|
|
||||||
anchor.rect.x: popupOffset
|
|
||||||
anchor.rect.y: 50
|
|
||||||
implicitWidth: 250
|
|
||||||
implicitHeight: 150
|
|
||||||
visible: false
|
|
||||||
|
|
||||||
color: "transparent"
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
|
|
||||||
implicitHeight: parent.height - 20
|
|
||||||
implicitWidth: parent.width
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
|
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
Button {
|
|
||||||
Layout.topMargin: 5
|
|
||||||
x: (parent.width - width) / 2
|
|
||||||
implicitWidth: parent.width - 10
|
|
||||||
implicitHeight: parent.height / 5 - parent.spacing
|
|
||||||
|
|
||||||
text: 'shutdown'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
HyprlandFocusGrab {
|
|
||||||
id: grab
|
|
||||||
windows: [ menu ]
|
|
||||||
onCleared: menu.visible = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,141 +0,0 @@
|
|||||||
import Quickshell // for PanelWindow
|
|
||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Widgets
|
|
||||||
import Quickshell.Hyprland
|
|
||||||
import Quickshell.Bluetooth
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
|
|
||||||
|
|
||||||
radius: 5
|
|
||||||
implicitWidth: 30; implicitHeight: 30
|
|
||||||
Button {
|
|
||||||
id: button
|
|
||||||
text: ""
|
|
||||||
font.pointSize: 16
|
|
||||||
|
|
||||||
onClicked: {
|
|
||||||
menu.visible = true
|
|
||||||
grab.active = true
|
|
||||||
}
|
|
||||||
implicitHeight: parent.height
|
|
||||||
}
|
|
||||||
|
|
||||||
required property PanelWindow window
|
|
||||||
required property real popupOffset
|
|
||||||
id: root
|
|
||||||
|
|
||||||
PopupWindow {
|
|
||||||
|
|
||||||
id: menu
|
|
||||||
|
|
||||||
anchor.window: window
|
|
||||||
anchor.rect.x: popupOffset - width
|
|
||||||
anchor.rect.y: 50
|
|
||||||
implicitWidth: 250
|
|
||||||
implicitHeight: 150
|
|
||||||
visible: false
|
|
||||||
|
|
||||||
color: "transparent"
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
|
|
||||||
implicitHeight: parent.height - 20
|
|
||||||
implicitWidth: parent.width
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
|
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
implicitWidth: parent.width - 2 * Layout.margins
|
|
||||||
implicitHeight: 30
|
|
||||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
|
||||||
Layout.margins: 5
|
|
||||||
color: "#ff3333aa"
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
Text {
|
|
||||||
text: 'Bluetooth'
|
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
Switch {
|
|
||||||
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
|
||||||
//Layout.margins: 5
|
|
||||||
checked: Bluetooth.defaultAdapter.enabled
|
|
||||||
onClicked: Bluetooth.defaultAdapter.enabled = checked
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
ScrollView {
|
|
||||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
|
||||||
Layout.margins: 5
|
|
||||||
|
|
||||||
implicitWidth: parent.width - 4 * Layout.margins
|
|
||||||
implicitHeight: menu.height / 2
|
|
||||||
|
|
||||||
id: scroll
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
Repeater {
|
|
||||||
|
|
||||||
id: rep
|
|
||||||
|
|
||||||
model: Bluetooth.devices.values
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
color: "#ff3333aa"
|
|
||||||
|
|
||||||
implicitWidth: menu.width - 3 * scroll.x
|
|
||||||
implicitHeight: 40
|
|
||||||
|
|
||||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
|
||||||
Layout.margins: 5
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
Text {
|
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
|
||||||
Layout.margins: 5
|
|
||||||
|
|
||||||
text: rep.model[index].name
|
|
||||||
}
|
|
||||||
|
|
||||||
Button {
|
|
||||||
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
|
||||||
Layout.rightMargin: 5
|
|
||||||
text: 'Connect'
|
|
||||||
|
|
||||||
onClicked: rep.model[index].connected = !rep.model[index].connected
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
HyprlandFocusGrab {
|
|
||||||
id: grab
|
|
||||||
windows: [ menu ]
|
|
||||||
onCleared: menu.visible = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Widgets
|
|
||||||
import Quickshell
|
|
||||||
|
|
||||||
Item {
|
|
||||||
implicitWidth: t.contentWidth + 10
|
|
||||||
implicitHeight: 30
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
anchors.fill: parent
|
|
||||||
Text {
|
|
||||||
id: t
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
text: Qt.formatDateTime(clock.date, "dddd HH:mm:ss MM/dd/yyyy")
|
|
||||||
font.pointSize: 11
|
|
||||||
|
|
||||||
SystemClock {
|
|
||||||
id: clock
|
|
||||||
precision: SystemClock.Seconds
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
import Quickshell // for PanelWindow
|
|
||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Widgets
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
implicitWidth: 30; height: 30
|
|
||||||
Button {
|
|
||||||
id: button
|
|
||||||
text: " "
|
|
||||||
font.pointSize: 16
|
|
||||||
Process {
|
|
||||||
id: idlent
|
|
||||||
running: false
|
|
||||||
command: ["hyprsunset", "-t", "4000"]
|
|
||||||
|
|
||||||
onExited: {
|
|
||||||
running = button.text == " " ? false : true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
onClicked: {
|
|
||||||
idlent.running = button.text == " " ? true : false
|
|
||||||
button.text = button.text == " " ? " " : " "
|
|
||||||
}
|
|
||||||
implicitHeight: parent.height
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
import Quickshell // for PanelWindow
|
|
||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Widgets
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
|
|
||||||
property real interval: 100
|
|
||||||
id: root
|
|
||||||
|
|
||||||
radius: 5
|
|
||||||
implicitWidth: 30; height: 30
|
|
||||||
Button {
|
|
||||||
id: button
|
|
||||||
text: " "
|
|
||||||
font.pointSize: 16
|
|
||||||
Process {
|
|
||||||
id: idlent
|
|
||||||
running: false
|
|
||||||
command: ["systemd-inhibit", "--what=idle", "sleep", root.interval.toString()]
|
|
||||||
|
|
||||||
onExited: {
|
|
||||||
running = button.text == " " ? false : true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
onClicked: {
|
|
||||||
idlent.running = button.text == " " ? true : false
|
|
||||||
button.text = button.text == " " ? " " : " "
|
|
||||||
}
|
|
||||||
implicitHeight: parent.height
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
import Quickshell // for PanelWindow
|
|
||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Widgets
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
width: 30; height: 30
|
|
||||||
Button {
|
|
||||||
id: button
|
|
||||||
text: " "
|
|
||||||
font.pointSize: 16
|
|
||||||
Process {
|
|
||||||
id: launcher
|
|
||||||
running: false
|
|
||||||
command: ["rofi", "-show", "drun"]
|
|
||||||
}
|
|
||||||
onClicked: launcher.running = true
|
|
||||||
implicitHeight: parent.height
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Services.Mpris
|
|
||||||
import Quickshell.Widgets
|
|
||||||
|
|
||||||
Item {
|
|
||||||
id: media
|
|
||||||
height: 30
|
|
||||||
|
|
||||||
readonly property real textWidth: info.contentWidth + 10
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
anchors.fill: parent
|
|
||||||
Text {
|
|
||||||
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
|
|
||||||
id: info
|
|
||||||
|
|
||||||
text: {
|
|
||||||
let s = ''
|
|
||||||
let players = []
|
|
||||||
|
|
||||||
Mpris.players.values.forEach((p) => {
|
|
||||||
if(p.isPlaying) players.push(p)
|
|
||||||
})
|
|
||||||
|
|
||||||
if(players[0]?.trackTitle) {
|
|
||||||
s += players[0].trackTitle
|
|
||||||
}
|
|
||||||
if(players[0]?.trackAlbum) {
|
|
||||||
s += ' - ' + players[0].trackAlbum
|
|
||||||
}
|
|
||||||
if(players[0]?.trackArtist) {
|
|
||||||
s += ' - ' + players[0].trackArtist
|
|
||||||
}
|
|
||||||
|
|
||||||
media.visible = players.length > 0
|
|
||||||
|
|
||||||
return s
|
|
||||||
}
|
|
||||||
font.pointSize: 11
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,183 +0,0 @@
|
|||||||
import Quickshell
|
|
||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Services.Notifications
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Widgets
|
|
||||||
import Quickshell.Hyprland
|
|
||||||
|
|
||||||
Item {
|
|
||||||
width: 50
|
|
||||||
height: 30
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
id: barbutton
|
|
||||||
radius: 5
|
|
||||||
anchors.fill: parent
|
|
||||||
Button {
|
|
||||||
id: button
|
|
||||||
text: ""
|
|
||||||
//text: server.trackedNotifications.values.length == 0 ? "" : ' ' + server.trackedNotifications.values.length
|
|
||||||
//icon.source: ''
|
|
||||||
font.pointSize: 16
|
|
||||||
|
|
||||||
onClicked: {
|
|
||||||
|
|
||||||
|
|
||||||
menu.visible = true
|
|
||||||
grab.active = true
|
|
||||||
}
|
|
||||||
implicitHeight: parent.height
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
NotificationServer {
|
|
||||||
id: server
|
|
||||||
persistenceSupported: true
|
|
||||||
imageSupported: true
|
|
||||||
actionsSupported: true
|
|
||||||
bodyImagesSupported: true
|
|
||||||
bodySupported: true
|
|
||||||
bodyHyperlinksSupported: true
|
|
||||||
inlineReplySupported: true
|
|
||||||
actionIconsSupported: true
|
|
||||||
|
|
||||||
onNotification: (n) => {
|
|
||||||
n.tracked = true
|
|
||||||
console.log(n?.body)
|
|
||||||
button.text = ' ' + (server.trackedNotifications.values.length + 1)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
required property PanelWindow window
|
|
||||||
id: root
|
|
||||||
|
|
||||||
PopupWindow {
|
|
||||||
|
|
||||||
id: menu
|
|
||||||
|
|
||||||
anchor.window: window
|
|
||||||
anchor.rect.x: window.width - width
|
|
||||||
anchor.rect.y: 50
|
|
||||||
implicitWidth: 400
|
|
||||||
implicitHeight: 1080 - anchor.rect.y
|
|
||||||
visible: false
|
|
||||||
|
|
||||||
color: "transparent"
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
|
|
||||||
color: "#ff706050"
|
|
||||||
|
|
||||||
implicitHeight: parent.height - 20
|
|
||||||
implicitWidth: parent.width
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
id: lay
|
|
||||||
|
|
||||||
spacing: 10
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
Layout.margins: 5
|
|
||||||
Layout.alignment: Qt.AlignVCenter | Qt.AlignTop
|
|
||||||
implicitWidth: menu.width - 2 * Layout.margins
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
width: parent.width
|
|
||||||
Text {
|
|
||||||
Layout.margins: 5
|
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
|
||||||
text: 'Notifications'
|
|
||||||
}
|
|
||||||
Button {
|
|
||||||
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
|
||||||
Layout.margins: 5
|
|
||||||
implicitWidth: 20
|
|
||||||
implicitHeight: 20
|
|
||||||
|
|
||||||
text: 'x'
|
|
||||||
|
|
||||||
onClicked: {
|
|
||||||
while(server.trackedNotifications.values.length > 0) {
|
|
||||||
server.trackedNotifications.values[0].dismiss()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Repeater {
|
|
||||||
id: rep
|
|
||||||
|
|
||||||
model: server.trackedNotifications.values
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
|
||||||
Layout.margins: 5
|
|
||||||
radius: 10
|
|
||||||
implicitWidth: parent.width - 2 * Layout.margins
|
|
||||||
implicitHeight: 100
|
|
||||||
MouseArea {
|
|
||||||
anchors.fill: parent
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
Image {
|
|
||||||
//anchors.fill: parent
|
|
||||||
source: {
|
|
||||||
let icon = rep.model[index].image
|
|
||||||
if (icon.includes("?path=")) {
|
|
||||||
const [name, path] = icon.split("?path=");
|
|
||||||
icon = Qt.resolvedUrl(`${path}/${name.slice(name.lastIndexOf("/") + 1)}`);
|
|
||||||
}
|
|
||||||
return icon
|
|
||||||
}
|
|
||||||
|
|
||||||
Layout.maximumWidth: 100
|
|
||||||
Layout.maximumHeight: 100
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
Layout.topMargin: 10
|
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
|
|
||||||
Text {
|
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
|
|
||||||
text: rep.model[index].summary
|
|
||||||
Layout.leftMargin: 10
|
|
||||||
font.pointSize: 14
|
|
||||||
}
|
|
||||||
Text {
|
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
|
||||||
text: rep.model[index].body
|
|
||||||
Layout.leftMargin: 10
|
|
||||||
font.pointSize: 12
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
|
||||||
|
|
||||||
onClicked: mouse => {
|
|
||||||
if(mouse.button == Qt.LeftButton) {
|
|
||||||
button.text = rep.count - 1 <= 0 ? "" : ' ' + (rep.count - 1)
|
|
||||||
rep.model[index].dismiss()
|
|
||||||
//button.text = server.trackedNotifications.values.length == 0 ? "" : ' ' + server.trackedNotifications.values.length
|
|
||||||
} else if(mouse.button == Qt.RightButton) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
HyprlandFocusGrab {
|
|
||||||
id: grab
|
|
||||||
windows: [ menu ]
|
|
||||||
onCleared: menu.visible = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,96 +0,0 @@
|
|||||||
import Quickshell
|
|
||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Hyprland
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Widgets
|
|
||||||
|
|
||||||
Item {
|
|
||||||
width: 30
|
|
||||||
height: 30
|
|
||||||
|
|
||||||
id: root
|
|
||||||
|
|
||||||
required property PanelWindow window
|
|
||||||
required property real popupOffset
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
width: 30; height: 30
|
|
||||||
Button {
|
|
||||||
id: button
|
|
||||||
text: " "
|
|
||||||
font.pointSize: 16
|
|
||||||
|
|
||||||
onClicked: {
|
|
||||||
menu.visible = true
|
|
||||||
grab.active = true
|
|
||||||
}
|
|
||||||
implicitHeight: parent.height
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
PopupWindow {
|
|
||||||
|
|
||||||
id: menu
|
|
||||||
|
|
||||||
anchor.window: window
|
|
||||||
anchor.rect.x: popupOffset
|
|
||||||
anchor.rect.y: 50
|
|
||||||
implicitWidth: 150
|
|
||||||
implicitHeight: 250
|
|
||||||
visible: false
|
|
||||||
|
|
||||||
color: "transparent"
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
|
|
||||||
implicitHeight: parent.height - 20
|
|
||||||
implicitWidth: parent.width
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
|
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
Button {
|
|
||||||
Layout.topMargin: 5
|
|
||||||
x: (parent.width - width) / 2
|
|
||||||
implicitWidth: parent.width - 10
|
|
||||||
implicitHeight: parent.height / 5 - parent.spacing
|
|
||||||
|
|
||||||
text: 'shutdown'
|
|
||||||
}
|
|
||||||
|
|
||||||
Button {
|
|
||||||
x: (parent.width - width) / 2
|
|
||||||
implicitWidth: parent.width - 10
|
|
||||||
implicitHeight: parent.height / 5 - parent.spacing
|
|
||||||
text: 'reboot'
|
|
||||||
}
|
|
||||||
|
|
||||||
Button {
|
|
||||||
x: (parent.width - width) / 2
|
|
||||||
implicitWidth: parent.width - 10
|
|
||||||
implicitHeight: parent.height / 5 - parent.spacing
|
|
||||||
text: 'logout'
|
|
||||||
}
|
|
||||||
|
|
||||||
Button {
|
|
||||||
Layout.bottomMargin: 10
|
|
||||||
x: (parent.width - width) / 2
|
|
||||||
implicitWidth: parent.width - 10
|
|
||||||
implicitHeight: parent.height / 5 - parent.spacing
|
|
||||||
text: 'sleep'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
HyprlandFocusGrab {
|
|
||||||
id: grab
|
|
||||||
windows: [ menu ]
|
|
||||||
onCleared: menu.visible = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,62 +0,0 @@
|
|||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Services.SystemTray
|
|
||||||
import Quickshell.Widgets
|
|
||||||
|
|
||||||
Item {
|
|
||||||
implicitWidth: 10 + rep.count * (2 * lay.spacing + 20)
|
|
||||||
height: 30
|
|
||||||
visible: SystemTray.items.values.length != 0
|
|
||||||
|
|
||||||
id: root
|
|
||||||
required property var window
|
|
||||||
required property real popupOffset
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
anchors.fill: parent
|
|
||||||
RowLayout {
|
|
||||||
id: lay
|
|
||||||
spacing: 4
|
|
||||||
Repeater {
|
|
||||||
id: rep
|
|
||||||
|
|
||||||
model: SystemTray.items
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
|
||||||
radius: 10
|
|
||||||
implicitWidth: 20
|
|
||||||
implicitHeight: 20
|
|
||||||
MouseArea {
|
|
||||||
anchors.fill: parent
|
|
||||||
|
|
||||||
Image {
|
|
||||||
anchors.fill: parent
|
|
||||||
source: {
|
|
||||||
let icon = SystemTray.items.values[index].icon
|
|
||||||
if (icon.includes("?path=")) {
|
|
||||||
const [name, path] = icon.split("?path=");
|
|
||||||
icon = Qt.resolvedUrl(`${path}/${name.slice(name.lastIndexOf("/") + 1)}`);
|
|
||||||
}
|
|
||||||
return icon
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
|
||||||
|
|
||||||
onClicked: (mouse) => {
|
|
||||||
if(mouse.button == Qt.LeftButton) {
|
|
||||||
SystemTray.items.values[index].activate()
|
|
||||||
} else if(mouse.button == Qt.RightButton) {
|
|
||||||
SystemTray.items.values[index].display(root.window, popupOffset, 40)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,97 +0,0 @@
|
|||||||
import Quickshell // for PanelWindow
|
|
||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Widgets
|
|
||||||
import Quickshell.Hyprland
|
|
||||||
import Quickshell.Services.Pipewire
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
width: 100; height: 30
|
|
||||||
Button {
|
|
||||||
id: button
|
|
||||||
text: " " + Math.floor(Pipewire.defaultAudioSink?.audio?.volume * 100) + "%"
|
|
||||||
font.pointSize: 12
|
|
||||||
implicitHeight: parent.height
|
|
||||||
|
|
||||||
PwObjectTracker {
|
|
||||||
objects: [ Pipewire.defaultAudioSink ]
|
|
||||||
}
|
|
||||||
|
|
||||||
onClicked: {
|
|
||||||
menu.visible = true
|
|
||||||
grab.active = true
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
required property var window
|
|
||||||
required property real popupOffset
|
|
||||||
id: root
|
|
||||||
|
|
||||||
PopupWindow {
|
|
||||||
|
|
||||||
id: menu
|
|
||||||
|
|
||||||
anchor.window: window
|
|
||||||
anchor.rect.x: popupOffset
|
|
||||||
anchor.rect.y: 50
|
|
||||||
implicitWidth: 250
|
|
||||||
implicitHeight: 150
|
|
||||||
visible: false
|
|
||||||
|
|
||||||
color: "transparent"
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
|
|
||||||
implicitHeight: parent.height - 20
|
|
||||||
implicitWidth: parent.width
|
|
||||||
|
|
||||||
ScrollView {
|
|
||||||
ColumnLayout {
|
|
||||||
|
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
Text {
|
|
||||||
text: 'Output Devices'
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
Text {
|
|
||||||
text: 'Input Devices'
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
/*Repeater {
|
|
||||||
id: in
|
|
||||||
|
|
||||||
model: {
|
|
||||||
set = []
|
|
||||||
Pipewire.nodes.values.forEach(n => { !n.isSink && !n.isStream ? set.push(n) : return })
|
|
||||||
return set
|
|
||||||
}
|
|
||||||
|
|
||||||
Text {
|
|
||||||
text: in.model[index].nickname
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
HyprlandFocusGrab {
|
|
||||||
id: grab
|
|
||||||
windows: [ menu ]
|
|
||||||
onCleared: menu.visible = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
import Quickshell
|
|
||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Hyprland
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Widgets
|
|
||||||
|
|
||||||
Item {
|
|
||||||
implicitWidth: 30
|
|
||||||
implicitHeight: 30
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
anchors.fill: parent
|
|
||||||
Button {
|
|
||||||
id: button
|
|
||||||
text: " "
|
|
||||||
font.pointSize: 16
|
|
||||||
|
|
||||||
onClicked: {
|
|
||||||
menu.visible = true
|
|
||||||
grab.active = true
|
|
||||||
}
|
|
||||||
implicitHeight: parent.height
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
property var window: null
|
|
||||||
id: root
|
|
||||||
|
|
||||||
PopupWindow {
|
|
||||||
|
|
||||||
id: menu
|
|
||||||
|
|
||||||
anchor.window: window
|
|
||||||
anchor.rect.x: root.parent.x + root.parent.width - width
|
|
||||||
anchor.rect.y: 50
|
|
||||||
implicitWidth: 250
|
|
||||||
implicitHeight: 150
|
|
||||||
visible: false
|
|
||||||
|
|
||||||
color: "transparent"
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
|
|
||||||
implicitHeight: parent.height - 20
|
|
||||||
implicitWidth: parent.width
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
|
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
Button {
|
|
||||||
Layout.topMargin: 5
|
|
||||||
x: (parent.width - width) / 2
|
|
||||||
implicitWidth: parent.width - 10
|
|
||||||
implicitHeight: parent.height / 5 - parent.spacing
|
|
||||||
|
|
||||||
text: 'shutdown'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
HyprlandFocusGrab {
|
|
||||||
id: grab
|
|
||||||
windows: [ menu ]
|
|
||||||
onCleared: menu.visible = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Hyprland
|
|
||||||
import Quickshell.Widgets
|
|
||||||
|
|
||||||
Item {
|
|
||||||
implicitWidth: 10 + rep.count * (2 * lay.spacing + 25)
|
|
||||||
implicitHeight: 30
|
|
||||||
|
|
||||||
Component.onCompleted: Hyprland.refreshWorkspaces()
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
anchors.fill: parent
|
|
||||||
RowLayout {
|
|
||||||
id: lay
|
|
||||||
Repeater {
|
|
||||||
id: rep
|
|
||||||
|
|
||||||
property var ws: {
|
|
||||||
let arr = [];
|
|
||||||
Hyprland.workspaces.values.forEach((w) => { if(w.id > 0) arr.push(w) })
|
|
||||||
return arr;
|
|
||||||
}
|
|
||||||
|
|
||||||
model: ws
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
|
||||||
radius: 10
|
|
||||||
implicitWidth: 25
|
|
||||||
Button {
|
|
||||||
background: Rectangle {
|
|
||||||
color: Hyprland.focusedWorkspace.id == rep.model[index].id ? "#ffff00ff" : "#ff7744dd"
|
|
||||||
anchors.fill: parent
|
|
||||||
}
|
|
||||||
text: rep.model[index].id
|
|
||||||
onClicked: rep.model[index].activate()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
//@ pragma Env QS_NO_RELOAD_POPUP=1
|
|
||||||
//@ pragma Env QSG_RENDER_LOOP=threaded
|
|
||||||
//@ pragma Env QT_QUICK_FLICKABLE_WHEEL_DECELERATION=10000
|
|
||||||
|
|
||||||
//@ pragma UseQApplication
|
|
||||||
|
|
||||||
import Quickshell // for ShellRoot
|
|
||||||
import qs.modules
|
|
||||||
|
|
||||||
ShellRoot {
|
|
||||||
Bar {
|
|
||||||
id: bar
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
$foregroundCol = 0xff{foreground.strip}
|
|
||||||
$backgroundCol = 0xff{background.strip}
|
|
||||||
$color0 = 0xff{color0.strip}
|
|
||||||
$color1 = 0xff{color1.strip}
|
|
||||||
$color2 = 0xff{color2.strip}
|
|
||||||
$color3 = 0xff{color3.strip}
|
|
||||||
$color4 = 0xff{color4.strip}
|
|
||||||
$color5 = 0xff{color5.strip}
|
|
||||||
$color6 = 0xff{color6.strip}
|
|
||||||
$color7 = 0xff{color7.strip}
|
|
||||||
$color8 = 0xff{color8.strip}
|
|
||||||
$color9 = 0xff{color9.strip}
|
|
||||||
$color10 = 0xff{color10.strip}
|
|
||||||
$color11 = 0xff{color11.strip}
|
|
||||||
$color12 = 0xff{color12.strip}
|
|
||||||
$color13 = 0xff{color13.strip}
|
|
||||||
$color14 = 0xff{color14.strip}
|
|
||||||
$color15 = 0xff{color15.strip}
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
set -g status-style 'fg={color0},bg={color3}'
|
||||||
|
|
||||||
|
set -g status-interval 1
|
||||||
|
|
||||||
|
set -g status-left-length 50
|
||||||
|
set -g status-left "#[fg={color12},bg={color1}] #[fg={color1},bg={color2}]◤#[fg={color14}]#{{user}}@#H#[fg={color2},bg={color4}]◤#[fg={color14}]#{{session_name}}#[fg={color4},bg={color3}]◤"
|
||||||
|
|
||||||
|
set -g status-right "#[fg={color2}]◥#[fg={color14},bg={color2}]%A %T#[fg={color1}]◥#[fg={color12},bg={color1}]%D "
|
||||||
|
|
||||||
|
set -g window-status-separator '/'
|
||||||
|
set -g window-status-format '#[fg={color3},bg={color3}]◢#[fg={color0},bg={color3}] #{{window_index}}: #{{window_name}} #[fg={color3},bg={color3}]◤'
|
||||||
|
set -g window-status-current-format '#[fg={color11},bg={color3}]◢#[fg={color0},bg={color11},bold] #{{window_index}}: #{{window_name}} #[fg={color11},bg={color3}]◤'
|
||||||
|
|
||||||
|
|
||||||
@@ -1,23 +1,21 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: let
|
{ inputs, ... }: {
|
||||||
system = "x86_64-linux";
|
|
||||||
|
flake.homeModules.nathan = { config, lib, pkgs, ... }: let
|
||||||
|
system = pkgs.stdenv.hostPlatform;
|
||||||
|
|
||||||
pkgs-us = import inputs.nixpkgs-us {
|
pkgs-us = import inputs.nixpkgs-us {
|
||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
in {
|
in {
|
||||||
|
|
||||||
imports = [
|
options.homeconfig.minimal = with lib; options.mkOption {
|
||||||
./scripts
|
type = with types; bool;
|
||||||
];
|
default = false;
|
||||||
|
};
|
||||||
|
|
||||||
options.homeconfig.minimal = with lib; options.mkOption {
|
config = with lib; mkMerge [
|
||||||
type = with types; bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = with lib; mkMerge [
|
|
||||||
{
|
{
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
@@ -26,14 +24,14 @@
|
|||||||
openssh
|
openssh
|
||||||
sops
|
sops
|
||||||
dig
|
dig
|
||||||
toybox
|
#toybox
|
||||||
btop
|
btop
|
||||||
zip
|
zip
|
||||||
unzip
|
unzip
|
||||||
rsync
|
rsync
|
||||||
curl
|
curl
|
||||||
|
|
||||||
(python313.withPackages (ps: with ps; [
|
(python314.withPackages (ps: with ps; [
|
||||||
gpustat
|
gpustat
|
||||||
numpy
|
numpy
|
||||||
matplotlib
|
matplotlib
|
||||||
@@ -41,7 +39,6 @@
|
|||||||
pandas
|
pandas
|
||||||
pyaudio
|
pyaudio
|
||||||
pyusb
|
pyusb
|
||||||
debugpy
|
|
||||||
requests
|
requests
|
||||||
]))
|
]))
|
||||||
];
|
];
|
||||||
@@ -49,71 +46,72 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
(mkIf config.homeconfig.graphical {
|
(mkIf config.homeconfig.graphical {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
||||||
grim
|
grim
|
||||||
slurp
|
slurp
|
||||||
xfce.thunar
|
xfce.thunar
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
blueberry
|
blueberry
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
|
||||||
(mkIf (!config.homeconfig.minimal) {
|
(mkIf (!config.homeconfig.minimal) {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
cava
|
cava
|
||||||
android-tools
|
android-tools
|
||||||
neovim-remote
|
neovim-remote
|
||||||
zulu
|
zulu
|
||||||
fastfetch
|
fastfetch
|
||||||
ncmpcpp
|
ncmpcpp
|
||||||
playerctl
|
playerctl
|
||||||
mpc
|
mpc
|
||||||
ffmpeg
|
ffmpeg
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
|
||||||
(mkIf (!config.homeconfig.minimal && config.homeconfig.graphical) {
|
(mkIf (!config.homeconfig.minimal && config.homeconfig.graphical) {
|
||||||
|
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
||||||
handbrake
|
|
||||||
quickemu
|
|
||||||
bottles
|
|
||||||
|
|
||||||
pkgs-us.runapp
|
handbrake
|
||||||
brightnessctl
|
quickemu
|
||||||
libdbusmenu-gtk3
|
bottles
|
||||||
lmms
|
|
||||||
|
brightnessctl
|
||||||
|
libdbusmenu-gtk3
|
||||||
|
lmms
|
||||||
|
|
||||||
#unfree {
|
#unfree {
|
||||||
geogebra
|
geogebra
|
||||||
spotify
|
spotify
|
||||||
discord
|
discord
|
||||||
#}
|
#}
|
||||||
rustdesk-flutter
|
rustdesk-flutter
|
||||||
mpv
|
mpv
|
||||||
vlc
|
vlc
|
||||||
pavucontrol
|
pavucontrol
|
||||||
rpi-imager
|
rpi-imager
|
||||||
tigervnc
|
tigervnc
|
||||||
keepassxc
|
keepassxc
|
||||||
|
localsend
|
||||||
|
|
||||||
#3D modeling/printing
|
#3D modeling/printing
|
||||||
blender
|
blender
|
||||||
freecad-wayland
|
freecad-wayland
|
||||||
cura-appimage
|
cura-appimage
|
||||||
|
|
||||||
#productivity
|
#productivity
|
||||||
libreoffice
|
libreoffice
|
||||||
|
|
||||||
#games
|
#games
|
||||||
prismlauncher
|
prismlauncher
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,135 +1,108 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: let
|
{ ... }: {
|
||||||
|
|
||||||
system = "x86_64-linux";
|
flake.homeModules.nathan = { config, lib, pkgs, ... }: {
|
||||||
|
|
||||||
pkgs-us = import inputs.nixpkgs-us {
|
options = {
|
||||||
inherit system;
|
homeconfig.scripts.enable = lib.options.mkOption {
|
||||||
config.allowUnfree = true;
|
type = lib.types.bool;
|
||||||
};
|
default = true;
|
||||||
|
};
|
||||||
in {
|
|
||||||
|
|
||||||
options = {
|
|
||||||
homeconfig.scripts.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
config = lib.mkMerge [
|
||||||
|
|
||||||
|
(lib.mkIf config.homeconfig.scripts.enable {
|
||||||
|
home.packages = [
|
||||||
|
|
||||||
|
#scripts
|
||||||
|
|
||||||
|
(pkgs.writeShellScriptBin "randWallpaper" ''
|
||||||
|
file=''$(ls ${config.home.homeDirectory}/Pictures/Wallpaper/ | shuf -n 1)
|
||||||
|
setWallpaper ${config.home.homeDirectory}/Pictures/Wallpaper/''$file
|
||||||
|
'')
|
||||||
|
|
||||||
|
(pkgs.writeShellScriptBin "setWallpaper" ''
|
||||||
|
|
||||||
|
if [[ ! -d /tmp/aurora ]]; then
|
||||||
|
mkdir /tmp/aurora
|
||||||
|
fi
|
||||||
|
|
||||||
|
img=''$(realpath "''${1:-$(find ~/Pictures/Wallpaper/* | rofi -dmenu)}")
|
||||||
|
n=''$(basename "''$img")
|
||||||
|
ext="''${n''\#''\#*.}"
|
||||||
|
out=''${3:-/dev/null}
|
||||||
|
|
||||||
|
if [[ ''$ext == "gif" || ''$ext == "mp4" ]]; then
|
||||||
|
yes | ${pkgs.ffmpeg}/bin/ffmpeg -i "''$img" -vframes 1 /tmp/aurora/tmp.jpg >> ''$out
|
||||||
|
pidof mpvpaper >> $out && pkill mpvpaper
|
||||||
|
${pkgs.swww}/bin/swww img /tmp/aurora/tmp.jpg -t wipe >> ''$out
|
||||||
|
sleep 0.6
|
||||||
|
hyprctl dispatch exec "${pkgs.mpvpaper}/bin/mpvpaper ALL ''$img -o loop"
|
||||||
|
else
|
||||||
|
yes | ${pkgs.ffmpeg}/bin/ffmpeg -i "''$img" /tmp/aurora/tmp.jpg >> ''$out
|
||||||
|
pidof mpvpaper >> $out && pkill mpvpaper
|
||||||
|
hyprctl dispatch exec "${pkgs.swww}/bin/swww img ''$img -t wipe" >> ''$out
|
||||||
|
fi
|
||||||
|
|
||||||
|
changeColors "''$img" "''$2" >> ''$out
|
||||||
|
'')
|
||||||
|
|
||||||
|
(pkgs.writeShellScriptBin "changeColors" ''
|
||||||
|
|
||||||
|
img=''$(realpath "''$1")
|
||||||
|
alpha=''${2:-70}
|
||||||
|
|
||||||
|
if [[ ''$alpha -lt 0 ]]; then
|
||||||
|
alpha=0
|
||||||
|
elif [[ ''$alpha -gt 100 ]]; then
|
||||||
|
alpha=100
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -f ~/.config/wal/colorschemes/dark/''$(basename "''$img")-''$alpha.json ]]; then
|
||||||
|
${pkgs.pywal16}/bin/wal -n -f "''$(basename "''$img")-''$alpha"
|
||||||
|
else
|
||||||
|
${pkgs.pywal16}/bin/wal -n -i "''$img" -a "''$alpha" --cols16 -p "''$(basename "''$img")-''$alpha"
|
||||||
|
fi
|
||||||
|
|
||||||
|
colorPrefix
|
||||||
|
'')
|
||||||
|
|
||||||
|
(pkgs.writeShellScriptBin "colorPrefix" ''
|
||||||
|
pidof firefox > /dev/null && ${pkgs.pywalfox-native}/bin/pywalfox update &
|
||||||
|
pidof kitty > /dev/null && pkill -USR1 kitty
|
||||||
|
kitten @ send-text --match cmdline:zsh \\r
|
||||||
|
pidof cava > /dev/null && pkill -USR1 cava
|
||||||
|
for i in ''$(ls /run/user/1000 | grep nvim); do
|
||||||
|
${pkgs.neovim-remote}/bin/nvr -s --servername /run/user/1000/''$i --remote-send '<cmd>colorscheme pywal<CR>';
|
||||||
|
done
|
||||||
|
|
||||||
|
eval "''$@"
|
||||||
|
'')
|
||||||
|
|
||||||
|
(pkgs.writeShellScriptBin "onSystemStart" ''
|
||||||
|
|
||||||
|
if [[ ! -d /tmp/aurora ]]; then
|
||||||
|
mkdir /tmp/aurora
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -f ${config.home.homeDirectory}/.local/share/calcurse/.calcurse.pid ]]; then
|
||||||
|
rm ${config.home.homeDirectory}/.local/share/calcurse/.calcurse.pid
|
||||||
|
fi
|
||||||
|
|
||||||
|
hyprctl --batch "\
|
||||||
|
dispatch exec ${pkgs.swww}/bin/swww-daemon ;\
|
||||||
|
dispatch exec setWallpaper ${config.home.homeDirectory}/Pictures/Wallpaper/bluescape.jpg ;\
|
||||||
|
dispatch exec ${pkgs.pyprland}/bin/pypr ;\
|
||||||
|
dispatch exec ${pkgs.netbird-ui}/bin/netbird-ui ;\
|
||||||
|
dispatch exec ${pkgs.hyprpolkitagent}/libexec/hyprpolkitagent ;\
|
||||||
|
setcursor Bibata-Modern-Classic 16"
|
||||||
|
sleep 3
|
||||||
|
hyprctl reload
|
||||||
|
'')
|
||||||
|
|
||||||
|
];
|
||||||
|
})
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkMerge [
|
|
||||||
(lib.mkIf (config.homeconfig.hyprland.enable && config.homeconfig.scripts.enable) {
|
|
||||||
home.packages = [
|
|
||||||
(pkgs.writeShellScriptBin "hyprrun" ''
|
|
||||||
${pkgs-us.runapp}/bin/runapp ''$@
|
|
||||||
#uwsm app -- ''$@
|
|
||||||
'')
|
|
||||||
];
|
|
||||||
})
|
|
||||||
|
|
||||||
(lib.mkIf (!config.homeconfig.hyprland.enable && config.homeconfig.scripts.enable) {
|
|
||||||
home.packages = [
|
|
||||||
(pkgs.writeShellScriptBin "hyprrun" ''
|
|
||||||
eval "''$@"
|
|
||||||
'')
|
|
||||||
];
|
|
||||||
})
|
|
||||||
|
|
||||||
(lib.mkIf config.homeconfig.scripts.enable {
|
|
||||||
home.packages = [
|
|
||||||
|
|
||||||
#scripts
|
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "randWallpaper" ''
|
|
||||||
file=''$(ls ${config.home.homeDirectory}/Pictures/Wallpaper/ | shuf -n 1)
|
|
||||||
setWallpaper ${config.home.homeDirectory}/Pictures/Wallpaper/''$file
|
|
||||||
'')
|
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "setWallpaper" ''
|
|
||||||
|
|
||||||
if [[ ! -d /tmp/nathan ]]; then
|
|
||||||
mkdir /tmp/nathan
|
|
||||||
fi
|
|
||||||
|
|
||||||
img=''$(realpath "''${1:-$(find ~/Pictures/Wallpaper/* | rofi -dmenu)}")
|
|
||||||
n=''$(basename "''$img")
|
|
||||||
ext="''${n''\#''\#*.}"
|
|
||||||
out=''${3:-/dev/null}
|
|
||||||
|
|
||||||
if [[ ''$ext == "gif" || ''$ext == "mp4" ]]; then
|
|
||||||
yes | ${pkgs.ffmpeg}/bin/ffmpeg -i "''$img" -vframes 1 /tmp/nathan/tmp.jpg >> ''$out
|
|
||||||
cp /tmp/nathan/tmp.jpg /tmp/nathan/tmp2.jpg
|
|
||||||
pidof mpvpaper && pkill mpvpaper
|
|
||||||
${pkgs.swww}/bin/swww img /tmp/nathan/tmp.jpg -t wipe >> ''$out
|
|
||||||
${pkgs.hyprpanel}/bin/hyprpanel sw /tmp/nathan/tmp2.jpg >> ''$out
|
|
||||||
sleep 0.3
|
|
||||||
hyprctl dispatch exec "${pkgs.mpvpaper}/bin/mpvpaper ALL ''$img -o loop"
|
|
||||||
${pkgs.hyprpanel}/bin/hyprpanel sw /tmp/nathan/tmp.jpg >> ''$out
|
|
||||||
rm /tmp/nathan/tmp2.jpg
|
|
||||||
else
|
|
||||||
pidof mpvpaper && pkill mpvpaper
|
|
||||||
hyprctl dispatch exec "${pkgs.swww}/bin/swww img ''$img -t wipe" >> ''$out
|
|
||||||
${pkgs.hyprpanel}/bin/hyprpanel sw "''$img" >> ''$out
|
|
||||||
fi
|
|
||||||
|
|
||||||
changeColors "''$img" "''$2" >> ''$out
|
|
||||||
'')
|
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "changeColors" ''
|
|
||||||
|
|
||||||
img=''$(realpath "''$1")
|
|
||||||
alpha=''${2:-70}
|
|
||||||
|
|
||||||
if [[ ''$alpha -lt 0 ]]; then
|
|
||||||
alpha=0
|
|
||||||
elif [[ ''$alpha -gt 100 ]]; then
|
|
||||||
alpha=100
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -f ~/.config/wal/colorschemes/dark/''$(basename "''$img")-''$alpha.json ]]; then
|
|
||||||
${pkgs.pywal16}/bin/wal -n -f "''$(basename "''$img")-''$alpha"
|
|
||||||
else
|
|
||||||
${pkgs.pywal16}/bin/wal -n -i "''$img" -a "''$alpha" --cols16 -p "''$(basename "''$img")-''$alpha"
|
|
||||||
fi
|
|
||||||
|
|
||||||
colorPrefix
|
|
||||||
'')
|
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "colorPrefix" ''
|
|
||||||
pidof firefox > /dev/null && ${pkgs.pywalfox-native}/bin/pywalfox update &
|
|
||||||
pidof kitty > /dev/null && pkill -USR1 kitty
|
|
||||||
pidof cava > /dev/null && pkill -USR1 cava
|
|
||||||
for i in ''$(ls /run/user/1000 | grep nvim); do
|
|
||||||
${pkgs.neovim-remote}/bin/nvr -s --servername /run/user/1000/''$i --remote-send '<cmd>colorscheme pywal<CR>';
|
|
||||||
done
|
|
||||||
|
|
||||||
eval "''$@"
|
|
||||||
'')
|
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "onSystemStart" ''
|
|
||||||
|
|
||||||
if [[ ! -d /tmp/nathan ]]; then
|
|
||||||
mkdir /tmp/nathan
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -f ${config.home.homeDirectory}/.local/share/calcurse/.calcurse.pid ]]; then
|
|
||||||
rm ${config.home.homeDirectory}/.local/share/calcurse/.calcurse.pid
|
|
||||||
fi
|
|
||||||
|
|
||||||
hyprctl --batch "\
|
|
||||||
dispatch exec ${pkgs.swww}/bin/swww-daemon ;\
|
|
||||||
dispatch exec setWallpaper ${config.home.homeDirectory}/Pictures/Wallpaper/bluescape.jpg ;\
|
|
||||||
dispatch exec ${pkgs.pyprland}/bin/pypr ;\
|
|
||||||
dispatch exec ${pkgs.netbird-ui}/bin/netbird-ui ;\
|
|
||||||
dispatch exec ${pkgs.hyprpolkitagent}/libexec/hyprpolkitagent ;\
|
|
||||||
setcursor Bibata-Modern-Classic 16"
|
|
||||||
sleep 3
|
|
||||||
hyprctl reload
|
|
||||||
hyprctl dispatch exec ${pkgs.pyprland}/bin/pypr toggle calendar
|
|
||||||
#tmux new-session -s hyprland
|
|
||||||
'')
|
|
||||||
|
|
||||||
];
|
|
||||||
})
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
25
homes/nathan/home-manager/programs/aurora/default.nix
Normal file
25
homes/nathan/home-manager/programs/aurora/default.nix
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
|
||||||
|
flake.homeModules.nathan = { config, lib, ... }: {
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
inputs.aurora.homeModules.default
|
||||||
|
];
|
||||||
|
|
||||||
|
options.homeconfig.aurora.enable = with lib; mkOption {
|
||||||
|
type = with types; bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.homeconfig.aurora.enable {
|
||||||
|
|
||||||
|
programs.aurora = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
systemd = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,14 +1,17 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
options.homeconfig.calcurse.enable = lib.options.mkOption {
|
flake.homeModules.nathan = { config, lib, pkgs, ... }: {
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.calcurse.enable {
|
options.homeconfig.calcurse.enable = lib.options.mkOption {
|
||||||
home.packages = with pkgs; [
|
type = lib.types.bool;
|
||||||
calcurse
|
default = false;
|
||||||
libnotify
|
};
|
||||||
];
|
|
||||||
|
config = lib.mkIf config.homeconfig.calcurse.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
calcurse
|
||||||
|
libnotify
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,19 +1,14 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
|
|
||||||
imports = let
|
flake.homeModules.nathan = { config, lib, pkgs, ... }: {
|
||||||
dir = builtins.readDir ./.;
|
|
||||||
in builtins.map (x: ./${x}) (builtins.filter
|
|
||||||
(file: (dir.${file} == "directory"))
|
|
||||||
(builtins.attrNames dir)
|
|
||||||
);
|
|
||||||
|
|
||||||
|
config = {
|
||||||
|
|
||||||
config = {
|
home.packages = lib.mkIf (!config.homeconfig.wal.enable) [
|
||||||
|
inputs.nixvim.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||||
|
];
|
||||||
|
|
||||||
home.packages = lib.mkIf (!config.homeconfig.wal.enable) [
|
home.sessionVariables.EDITOR = "nvim";
|
||||||
inputs.nixvim.packages.${pkgs.stdenv.hostPlatform.system}.default
|
};
|
||||||
];
|
|
||||||
|
|
||||||
home.sessionVariables.EDITOR = "nvim";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,59 +1,62 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
|
|
||||||
options.homeconfig.firefox.enable = lib.options.mkOption {
|
flake.homeModules.nathan = { config, lib, pkgs, ... }: {
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.firefox.enable {
|
options.homeconfig.firefox.enable = lib.options.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
|
||||||
home.sessionVariables.BROWSER = "${config.programs.firefox.package}/bin/firefox";
|
config = lib.mkIf config.homeconfig.firefox.enable {
|
||||||
|
|
||||||
home.packages = lib.mkIf config.homeconfig.wal.enable [
|
home.sessionVariables.BROWSER = "${config.programs.firefox.package}/bin/firefox";
|
||||||
pkgs.pywalfox-native
|
|
||||||
];
|
|
||||||
|
|
||||||
home.file.".mozilla/native-messaging-hosts/pywalfox.json".text = let
|
home.packages = lib.mkIf config.homeconfig.wal.enable [
|
||||||
pywalfox-wrapper = pkgs.writeShellScriptBin "pywalfox-wrapper" ''
|
pkgs.pywalfox-native
|
||||||
|
];
|
||||||
|
|
||||||
|
home.file.".mozilla/native-messaging-hosts/pywalfox.json".text = let
|
||||||
|
pywalfox-wrapper = pkgs.writeShellScriptBin "pywalfox-wrapper" ''
|
||||||
${pkgs.pywalfox-native}/bin/pywalfox start
|
${pkgs.pywalfox-native}/bin/pywalfox start
|
||||||
'';
|
'';
|
||||||
in lib.replaceStrings [ "<path>" ] [
|
in lib.replaceStrings [ "<path>" ] [
|
||||||
"${pywalfox-wrapper}/bin/pywalfox-wrapper"
|
"${pywalfox-wrapper}/bin/pywalfox-wrapper"
|
||||||
] (lib.readFile "${pkgs.pywalfox-native}/lib/python3.13/site-packages/pywalfox/assets/manifest.json");
|
] (lib.readFile "${pkgs.pywalfox-native}/lib/python3.13/site-packages/pywalfox/assets/manifest.json");
|
||||||
|
|
||||||
|
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
|
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.firefox;
|
package = pkgs.firefox;
|
||||||
|
|
||||||
profiles.nathan = {
|
profiles.nathan = {
|
||||||
search = {
|
search = {
|
||||||
default = "ddg";
|
default = "ddg";
|
||||||
privateDefault = "ddg";
|
privateDefault = "ddg";
|
||||||
force = true;
|
force = true;
|
||||||
};
|
};
|
||||||
bookmarks = {
|
bookmarks = {
|
||||||
force = true;
|
force = true;
|
||||||
settings = [
|
settings = [
|
||||||
{
|
{
|
||||||
name = "toolbar";
|
name = "toolbar";
|
||||||
toolbar = true;
|
toolbar = true;
|
||||||
bookmarks = [
|
bookmarks = [
|
||||||
{
|
{
|
||||||
name = "NixOS Search - Packages";
|
name = "NixOS Search - Packages";
|
||||||
url = "https://search.nixos.org/packages";
|
url = "https://search.nixos.org/packages";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
extensions.packages = with inputs.firefox-addons.packages.${pkgs.stdenv.hostPlatform.system}; [
|
||||||
|
ublock-origin
|
||||||
|
keepassxc-browser
|
||||||
|
pywalfox
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
extensions.packages = with inputs.firefox-addons.packages.${pkgs.stdenv.hostPlatform.system}; [
|
|
||||||
ublock-origin
|
|
||||||
keepassxc-browser
|
|
||||||
pywalfox
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,44 +1,47 @@
|
|||||||
{ config, lib, ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
options.homeconfig.git.enable = lib.options.mkOption {
|
flake.homeModules.nathan = { config, lib, ... }: {
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.git.enable {
|
options.homeconfig.git.enable = lib.options.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
sops = {
|
default = false;
|
||||||
secrets = {
|
|
||||||
"git/username" = {};
|
|
||||||
"git/email" = {};
|
|
||||||
};
|
|
||||||
|
|
||||||
templates.gitconfig.content = ''
|
|
||||||
[user]
|
|
||||||
name = "${config.sops.placeholder."git/username"}"
|
|
||||||
email = "${config.sops.placeholder."git/email"}"
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
includes = [
|
config = lib.mkIf config.homeconfig.git.enable {
|
||||||
{ path = "${config.sops.templates.gitconfig.path}"; }
|
|
||||||
];
|
sops = {
|
||||||
|
secrets = {
|
||||||
settings = {
|
"git/username" = {};
|
||||||
init = {
|
"git/email" = {};
|
||||||
defaultBranch = "master";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
safe.directory = "/etc/nixos";
|
templates.gitconfig.content = ''
|
||||||
|
[user]
|
||||||
|
name = "${config.sops.placeholder."git/username"}"
|
||||||
|
email = "${config.sops.placeholder."git/email"}"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
url = {
|
programs.git = {
|
||||||
"ssh://gitea@gitea.esotericbytes.com/" = {
|
enable = true;
|
||||||
insteadOf = [
|
|
||||||
"server:"
|
includes = [
|
||||||
];
|
{ path = "${config.sops.templates.gitconfig.path}"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
init = {
|
||||||
|
defaultBranch = "master";
|
||||||
|
};
|
||||||
|
|
||||||
|
safe.directory = "/etc/nixos";
|
||||||
|
|
||||||
|
url = {
|
||||||
|
"ssh://gitea@gitea.esotericbytes.com/" = {
|
||||||
|
insteadOf = [
|
||||||
|
"server:"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
51
homes/nathan/home-manager/programs/hypridle/default.nix
Normal file
51
homes/nathan/home-manager/programs/hypridle/default.nix
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
{ ... }: {
|
||||||
|
|
||||||
|
flake.homeModules.nathan = { config, lib, pkgs, ... }: {
|
||||||
|
|
||||||
|
options.homeconfig.hypridle.enable = lib.options.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.homeconfig.hypridle.enable {
|
||||||
|
|
||||||
|
services.hypridle = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
|
||||||
|
general = {
|
||||||
|
lock_cmd = "aurora ipc call lockscreen lock"; # avoid starting multiple hyprlock instances.
|
||||||
|
before_sleep_cmd = "loginctl lock-session"; # lock before suspend.
|
||||||
|
after_sleep_cmd = "hyprctl --instance 0 dispatch dpms on"; # to avoid having to press a key twice to turn on the display.
|
||||||
|
};
|
||||||
|
|
||||||
|
listener = [
|
||||||
|
|
||||||
|
{
|
||||||
|
timeout = 150; # 2.5min.
|
||||||
|
on-timeout = "brightnessctl -s set 10"; # set monitor backlight to minimum, avoid 0 on OLED monitor.
|
||||||
|
on-resume = "brightnessctl -r"; # monitor backlight restore.
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
timeout = 300; # 5min
|
||||||
|
on-timeout = "loginctl lock-session"; # lock screen when timeout has passed
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
timeout = 330; # 5.5min
|
||||||
|
on-timeout = "hyprctl --instance 0 dispatch dpms off"; # screen off when timeout has passed
|
||||||
|
on-resume = "hyprctl --instance 0 dispatch dpms on && brightnessctl -r"; # screen on when activity is detected after timeout has fired.
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
timeout = 1800; # 30min
|
||||||
|
on-timeout = "systemctl suspend"; # suspend pc
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,51 +1,55 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
options.homeconfig.hyprland.enable = lib.options.mkOption {
|
flake.homeModules.nathan = { config, lib, pkgs, ... }: {
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.hyprland.enable {
|
options.homeconfig.hyprland.enable = lib.options.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
|
||||||
home.sessionVariables.NIX_OZONE_WL = "1";
|
config = lib.mkIf config.homeconfig.hyprland.enable {
|
||||||
|
|
||||||
programs.kitty.enable = lib.mkDefault true;
|
home.sessionVariables.NIX_OZONE_WL = "1";
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
programs.kitty.enable = lib.mkDefault true;
|
||||||
pyprland
|
|
||||||
];
|
|
||||||
|
|
||||||
home.activation.extraHyprFile = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
home.packages = with pkgs; [
|
||||||
if [[ ! -f ${config.home.homeDirectory}/.config/hypr/otf.conf ]]; then
|
pyprland
|
||||||
touch ${config.home.homeDirectory}/.config/hypr/otf.conf
|
];
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ! -f ${config.home.homeDirectory}/.config/background ]]; then
|
home.activation.extraHyprFile = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||||
cp ${config.home.homeDirectory}/Pictures/Wallpaper/bluescape.jpg ${config.home.homeDirectory}/.config/background
|
if [[ ! -f ${config.home.homeDirectory}/.config/hypr/otf.conf ]]; then
|
||||||
chmod 600 ${config.home.homeDirectory}/.config/background
|
touch ${config.home.homeDirectory}/.config/hypr/otf.conf
|
||||||
fi
|
fi
|
||||||
'';
|
|
||||||
|
|
||||||
|
if [[ ! -f ${config.home.homeDirectory}/.config/background ]]; then
|
||||||
wayland.windowManager.hyprland = {
|
cp ${config.home.homeDirectory}/Pictures/Wallpaper/bluescape.jpg ${config.home.homeDirectory}/.config/background
|
||||||
|
chmod 600 ${config.home.homeDirectory}/.config/background
|
||||||
enable = true;
|
fi
|
||||||
|
|
||||||
systemd = {
|
|
||||||
enable = false;
|
|
||||||
variables = [ "--all" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
extraConfig = (if config.homeconfig.hyprpanel.enable then ''
|
|
||||||
bind = , Print, exec, bash -c ${pkgs.hyprpanel}/share/scripts/screenshot.sh"
|
|
||||||
'' else ''
|
|
||||||
bind = , Print, exec, grim -g "$(slurp)"
|
|
||||||
'') + ''
|
|
||||||
source = ${config.home.homeDirectory}/.config/hypr/main.conf
|
|
||||||
|
|
||||||
exec-shutdown = if [[ -f ${config.home.homeDirectory}/.local/share/calcurse/.calcurse.pid ]]; then rm ${config.home.homeDirectory}/.local/share/calcurse/.calcurse.pid; fi
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
||||||
|
wayland.windowManager.hyprland = {
|
||||||
|
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
package = null;
|
||||||
|
portalPackage = null;
|
||||||
|
|
||||||
|
systemd = {
|
||||||
|
enable = true;
|
||||||
|
variables = [ "--all" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
bind = , Print, exec, grim -g "$(slurp)" > ~/Pictures/screenshots/$(date +"%m-%d-%Y_%H:%M:%S").png
|
||||||
|
|
||||||
|
source = ${config.home.homeDirectory}/.config/hypr/main.conf
|
||||||
|
|
||||||
|
exec-shutdown = if [[ -f ${config.home.homeDirectory}/.local/share/calcurse/.calcurse.pid ]]; then rm ${config.home.homeDirectory}/.local/share/calcurse/.calcurse.pid; fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,52 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.hyprlock.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.hyprlock.enable {
|
|
||||||
|
|
||||||
programs.hyprlock = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.hypridle = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
|
|
||||||
general = {
|
|
||||||
lock_cmd = "pidof hyprlock || hyprlock"; # avoid starting multiple hyprlock instances.
|
|
||||||
before_sleep_cmd = "loginctl lock-session"; # lock before suspend.
|
|
||||||
after_sleep_cmd = "hyprctl --instance 0 dispatch dpms on"; # to avoid having to press a key twice to turn on the display.
|
|
||||||
};
|
|
||||||
|
|
||||||
listener = [
|
|
||||||
|
|
||||||
{
|
|
||||||
timeout = 150; # 2.5min.
|
|
||||||
on-timeout = "brightnessctl -s set 10"; # set monitor backlight to minimum, avoid 0 on OLED monitor.
|
|
||||||
on-resume = "brightnessctl -r"; # monitor backlight restore.
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
timeout = 300; # 5min
|
|
||||||
on-timeout = "loginctl lock-session"; # lock screen when timeout has passed
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
timeout = 330; # 5.5min
|
|
||||||
on-timeout = "hyprctl --instance 0 dispatch dpms off"; # screen off when timeout has passed
|
|
||||||
on-resume = "hyprctl --instance 0 dispatch dpms on && brightnessctl -r"; # screen on when activity is detected after timeout has fired.
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
timeout = 1800; # 30min
|
|
||||||
on-timeout = "systemctl suspend"; # suspend pc
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{ config, lib, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.hyprpanel.enable = with lib; mkOption {
|
|
||||||
type = with types; bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.hyprpanel.enable {
|
|
||||||
|
|
||||||
programs.hyprpanel = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,21 +1,24 @@
|
|||||||
{ config, lib, inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
|
|
||||||
options.homeconfig.nh.enable = lib.options.mkOption {
|
flake.homeModules.nathan = { config, lib, ... }: {
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.nh.enable {
|
options.homeconfig.nh.enable = lib.options.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
programs.nh = {
|
default = false;
|
||||||
enable = true;
|
};
|
||||||
package = let pkgs-us = import inputs.nixpkgs-us { system = "x86_64-linux"; }; in pkgs-us.nh;
|
|
||||||
#flake = "${config.home.homeDirectory}/Projects/Olympus";
|
|
||||||
|
|
||||||
clean = {
|
config = lib.mkIf config.homeconfig.nh.enable {
|
||||||
|
|
||||||
|
programs.nh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dates = "weekly";
|
package = let pkgs-us = import inputs.nixpkgs-us { system = "x86_64-linux"; }; in pkgs-us.nh;
|
||||||
extraArgs = "--keep 5 --keep-since 5d";
|
#flake = "${config.home.homeDirectory}/Projects/Olympus";
|
||||||
|
|
||||||
|
clean = {
|
||||||
|
enable = true;
|
||||||
|
dates = "weekly";
|
||||||
|
extraArgs = "--keep 5 --keep-since 5d";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,19 +1,22 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
|
|
||||||
options.homeconfig.wal.enable = lib.options.mkOption {
|
flake.homeModules.nathan = { config, lib, pkgs, ... }: {
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.wal.enable {
|
options.homeconfig.wal.enable = lib.options.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
config = lib.mkIf config.homeconfig.wal.enable {
|
||||||
inputs.nixvim.packages.${pkgs.stdenv.hostPlatform.system}.pywal
|
|
||||||
|
|
||||||
pywal16
|
home.packages = with pkgs; [
|
||||||
imagemagick
|
inputs.nixvim.packages.${pkgs.stdenv.hostPlatform.system}.pywal
|
||||||
];
|
|
||||||
|
|
||||||
|
pywal16
|
||||||
|
imagemagick
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
{ config, lib, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.quickshell.enable = with lib; mkOption {
|
|
||||||
type = with types; bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.quickshell.enable {
|
|
||||||
|
|
||||||
programs.quickshell = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
configs = {
|
|
||||||
|
|
||||||
default = config.homeDirectory + "/${config.home.file.".config/quickshell".target}";
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd = {
|
|
||||||
enable = true;
|
|
||||||
target = lib.mkIf config.homeconfig.hyprland.enable "wayland-session@Hyprland.target";
|
|
||||||
};
|
|
||||||
|
|
||||||
activeConfig = "default";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,19 +1,22 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
options.homeconfig.rofi.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.rofi.enable {
|
flake.homeModules.nathan = { config, lib, pkgs, ... }: {
|
||||||
programs.rofi = {
|
|
||||||
|
|
||||||
enable = true;
|
options.homeconfig.rofi.enable = lib.options.mkOption {
|
||||||
package = pkgs.rofi;
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
|
||||||
cycle = true;
|
config = lib.mkIf config.homeconfig.rofi.enable {
|
||||||
|
programs.rofi = {
|
||||||
|
|
||||||
theme = "/home/nathan/.cache/wal/colors-rofi-dark.rasi";
|
enable = true;
|
||||||
|
package = pkgs.rofi;
|
||||||
|
|
||||||
|
cycle = true;
|
||||||
|
|
||||||
|
theme = "/home/nathan/.cache/wal/colors-rofi-dark.rasi";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,31 +1,35 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
home.packages = with pkgs; [ oh-my-posh ];
|
flake.homeModules.nathan = { config, lib, pkgs, ... }: {
|
||||||
|
|
||||||
programs.bash = {
|
home.packages = with pkgs; [ oh-my-posh ];
|
||||||
enable = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
|
|
||||||
shellAliases = {
|
programs.bash = {
|
||||||
ls = "eza";
|
enable = true;
|
||||||
ll = "ls -l";
|
enableCompletion = true;
|
||||||
|
|
||||||
ksh = "kitten ssh";
|
shellAliases = {
|
||||||
|
ls = "eza";
|
||||||
|
ll = "ls -l";
|
||||||
|
|
||||||
vi = "nvim";
|
ksh = "kitten ssh";
|
||||||
vim = "nvim";
|
|
||||||
|
|
||||||
|
v = "nvim";
|
||||||
|
vi = "nvim";
|
||||||
|
vim = "nvim";
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
bashrcExtra = ''
|
||||||
|
source ${pkgs.blesh}/share/blesh/ble.sh
|
||||||
|
'';
|
||||||
|
|
||||||
|
initExtra = if config.homeconfig.wal.enable then (lib.mkBefore ''
|
||||||
|
cat ${config.home.homeDirectory}/.cache/wal/sequences
|
||||||
|
eval "$(oh-my-posh init bash --config ${config.home.homeDirectory}/.cache/wal/ohmyposh.toml)"
|
||||||
|
'') else (lib.mkBefore ''
|
||||||
|
eval "$(oh-my-posh init bash --config ${config.home.homeDirectory}/.config/ohmyposh/ohmyposh.toml)"
|
||||||
|
'');
|
||||||
};
|
};
|
||||||
|
|
||||||
bashrcExtra = ''
|
|
||||||
source ${pkgs.blesh}/share/blesh/ble.sh
|
|
||||||
'';
|
|
||||||
|
|
||||||
initExtra = if config.homeconfig.wal.enable then (lib.mkBefore ''
|
|
||||||
cat ${config.home.homeDirectory}/.cache/wal/sequences
|
|
||||||
eval "$(oh-my-posh init bash --config ${config.home.homeDirectory}/.cache/wal/ohmyposh.toml)"
|
|
||||||
'') else (lib.mkBefore ''
|
|
||||||
eval "$(oh-my-posh init bash --config ${config.home.homeDirectory}/.config/ohmyposh/ohmyposh.toml)"
|
|
||||||
'');
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +1,21 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
programs.bat = {
|
flake.homeModules.nathan = { config, lib, pkgs, ... }: {
|
||||||
|
|
||||||
enable = true;
|
programs.bat = {
|
||||||
|
|
||||||
extraPackages = with pkgs.bat-extras; [
|
enable = true;
|
||||||
batman
|
|
||||||
batpipe
|
extraPackages = with pkgs.bat-extras; [
|
||||||
batgrep
|
batman
|
||||||
batdiff
|
batpipe
|
||||||
batwatch
|
batgrep
|
||||||
prettybat
|
batdiff
|
||||||
];
|
batwatch
|
||||||
|
prettybat
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
./bat
|
|
||||||
./bash
|
|
||||||
./eza
|
|
||||||
./fzf
|
|
||||||
./lf
|
|
||||||
./tmux
|
|
||||||
./kitty
|
|
||||||
./zoxide
|
|
||||||
./zsh
|
|
||||||
./ssh
|
|
||||||
./ohmyposh
|
|
||||||
./opencode
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,17 +1,20 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
programs.eza = {
|
flake.homeModules.nathan = { config, lib, pkgs, ... }: {
|
||||||
|
|
||||||
enable = true;
|
programs.eza = {
|
||||||
|
|
||||||
enableZshIntegration = true;
|
enable = true;
|
||||||
|
|
||||||
extraOptions = [
|
enableZshIntegration = true;
|
||||||
"--color=auto"
|
|
||||||
];
|
|
||||||
|
|
||||||
git = true;
|
extraOptions = [
|
||||||
|
"--color=auto"
|
||||||
|
];
|
||||||
|
|
||||||
icons = "auto";
|
git = true;
|
||||||
};
|
|
||||||
|
icons = "auto";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,18 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
programs.fzf = {
|
flake.homeModules.nathan = { config, lib, pkgs, ... }: {
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
enableZshIntegration = true;
|
programs.fzf = {
|
||||||
|
|
||||||
tmux = {
|
enable = true;
|
||||||
#enableShellIntegration = true;
|
|
||||||
|
|
||||||
#shellIntegrationOptions = [];
|
enableZshIntegration = true;
|
||||||
|
|
||||||
|
tmux = {
|
||||||
|
#enableShellIntegration = true;
|
||||||
|
|
||||||
|
#shellIntegrationOptions = [];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,33 +1,38 @@
|
|||||||
{ config, ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
programs.kitty = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
font = {
|
flake.homeModules.nathan = { config, ... }: {
|
||||||
name = "FiraCode Nerd Font";
|
|
||||||
size = 12;
|
programs.kitty = {
|
||||||
|
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
font = {
|
||||||
|
name = "FiraCode Nerd Font";
|
||||||
|
size = 12;
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
|
||||||
|
confirm_os_window_close 0
|
||||||
|
|
||||||
|
include ${config.home.homeDirectory}/.cache/wal/colors-kitty.conf
|
||||||
|
|
||||||
|
disable_ligatures never
|
||||||
|
|
||||||
|
dynamic_background_opacity yes
|
||||||
|
|
||||||
|
tab_bar_edge top
|
||||||
|
|
||||||
|
map ctrl+shift+t new_tab
|
||||||
|
map ctrl+shift+w close_tab
|
||||||
|
|
||||||
|
map ctrl+tab next_tab
|
||||||
|
map ctrl+shift+tab previous_tab
|
||||||
|
|
||||||
|
allow_remote_control yes
|
||||||
|
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = ''
|
|
||||||
|
|
||||||
confirm_os_window_close 0
|
|
||||||
|
|
||||||
include ${config.home.homeDirectory}/.cache/wal/colors-kitty.conf
|
|
||||||
|
|
||||||
disable_ligatures never
|
|
||||||
|
|
||||||
dynamic_background_opacity yes
|
|
||||||
|
|
||||||
tab_bar_edge top
|
|
||||||
|
|
||||||
map ctrl+shift+t new_tab
|
|
||||||
map ctrl+shift+w close_tab
|
|
||||||
|
|
||||||
map ctrl+tab next_tab
|
|
||||||
map ctrl+shift+tab previous_tab
|
|
||||||
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
config = {
|
|
||||||
programs.lf = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,136 +1,146 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
flake.homeModules.nathan = { config, lib, pkgs, ... }: {
|
||||||
oh-my-posh
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.zsh = {
|
|
||||||
|
|
||||||
initContent = with lib; mkMerge [
|
|
||||||
(mkIf config.homeconfig.wal.enable (mkBefore ''
|
|
||||||
cat ${config.home.homeDirectory}/.cache/wal/sequences
|
|
||||||
eval "$(oh-my-posh init zsh --config ${config.home.homeDirectory}/.cache/wal/ohmyposh.toml)"
|
|
||||||
''))
|
|
||||||
|
|
||||||
(mkIf (!config.homeconfig.wal.enable) (mkBefore ''
|
home.packages = with pkgs; [
|
||||||
eval "$(oh-my-posh init zsh --config ${config.home.homeDirectory}/.config/ohmyposh/ohmyposh.toml)"
|
oh-my-posh
|
||||||
''))
|
];
|
||||||
];
|
|
||||||
|
|
||||||
};
|
programs.zsh = {
|
||||||
|
|
||||||
home.file.".config/wal/templates/ohmyposh.toml".text = ''
|
initContent = with lib; mkMerge [
|
||||||
|
(mkIf config.homeconfig.wal.enable (mkBefore ''
|
||||||
|
cat ${config.home.homeDirectory}/.cache/wal/sequences
|
||||||
|
eval "$(oh-my-posh init zsh --config ${config.home.homeDirectory}/.cache/wal/ohmyposh.toml)"
|
||||||
|
|
||||||
|
function _colorRefresh() {
|
||||||
|
eval $(oh-my-posh init zsh --config ~/.cache/wal/ohmyposh.toml)
|
||||||
|
zle accept-line
|
||||||
|
}
|
||||||
|
zle -N _colorRefresh
|
||||||
|
bindkey '\r' _colorRefresh
|
||||||
|
''))
|
||||||
|
|
||||||
|
(mkIf (!config.homeconfig.wal.enable) (mkBefore ''
|
||||||
|
eval "$(oh-my-posh init zsh --config ${config.home.homeDirectory}/.config/ohmyposh/ohmyposh.toml)"
|
||||||
|
''))
|
||||||
|
];
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
home.file.".config/wal/templates/ohmyposh.toml".text = ''
|
||||||
#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
|
#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
|
||||||
|
|
||||||
version = 2
|
version = 2
|
||||||
final_space = true
|
final_space = true
|
||||||
console_title_template = '{{{{ .Shell }}}} in {{{{ .Folder }}}}'
|
console_title_template = '{{{{ .Shell }}}} in {{{{ .Folder }}}}'
|
||||||
|
|
||||||
[[blocks]]
|
[[blocks]]
|
||||||
type = 'prompt'
|
type = 'prompt'
|
||||||
alignment = 'left'
|
alignment = 'left'
|
||||||
newline = true
|
newline = true
|
||||||
|
|
||||||
[[blocks.segments]]
|
[[blocks.segments]]
|
||||||
type = 'os'
|
type = 'os'
|
||||||
style = 'diamond'
|
style = 'diamond'
|
||||||
trailing_diamond = ''
|
trailing_diamond = ''
|
||||||
background = 'p:c1'
|
background = 'p:c1'
|
||||||
foreground = 'p:c12'
|
foreground = 'p:c12'
|
||||||
template = ' {{{{ .Icon }}}} '
|
template = ' {{{{ .Icon }}}} '
|
||||||
|
|
||||||
[[blocks.segments]]
|
[[blocks.segments]]
|
||||||
type = 'session'
|
type = 'session'
|
||||||
style = 'diamond'
|
style = 'diamond'
|
||||||
trailing_diamond = ''
|
trailing_diamond = ''
|
||||||
background = 'p:c2'
|
background = 'p:c2'
|
||||||
foreground = 'p:c14'
|
foreground = 'p:c14'
|
||||||
template = '{{{{ .UserName }}}}@{{{{ .HostName }}}}'
|
template = '{{{{ .UserName }}}}@{{{{ .HostName }}}}'
|
||||||
|
|
||||||
[[blocks.segments]]
|
[[blocks.segments]]
|
||||||
type = 'path'
|
type = 'path'
|
||||||
style = 'diamond'
|
style = 'diamond'
|
||||||
trailing_diamond = ''
|
trailing_diamond = ''
|
||||||
background = 'p:c4'
|
background = 'p:c4'
|
||||||
foreground = 'p:c13'
|
foreground = 'p:c13'
|
||||||
template = '{{{{ .Path }}}}'
|
template = '{{{{ .Path }}}}'
|
||||||
|
|
||||||
[blocks.segments.properties]
|
[blocks.segments.properties]
|
||||||
style = 'full'
|
style = 'full'
|
||||||
|
|
||||||
[[blocks]]
|
[[blocks]]
|
||||||
type = 'prompt'
|
type = 'prompt'
|
||||||
overflow = 'hidden'
|
overflow = 'hidden'
|
||||||
alignment = 'right'
|
alignment = 'right'
|
||||||
|
|
||||||
[[blocks.segments]]
|
[[blocks.segments]]
|
||||||
type = 'executiontime'
|
type = 'executiontime'
|
||||||
style = 'diamond'
|
style = 'diamond'
|
||||||
leading_diamond = ''
|
leading_diamond = ''
|
||||||
background = 'p:c4'
|
background = 'p:c4'
|
||||||
foreground = 'p:c13'
|
foreground = 'p:c13'
|
||||||
template = '{{{{ .FormattedMs }}}}'
|
template = '{{{{ .FormattedMs }}}}'
|
||||||
|
|
||||||
[[blocks.segments]]
|
[[blocks.segments]]
|
||||||
type = 'time'
|
type = 'time'
|
||||||
style = 'diamond'
|
style = 'diamond'
|
||||||
leading_diamond = ''
|
leading_diamond = ''
|
||||||
background = 'p:c2'
|
background = 'p:c2'
|
||||||
foreground = 'p:c14'
|
foreground = 'p:c14'
|
||||||
|
|
||||||
[[blocks.segments]]
|
[[blocks.segments]]
|
||||||
type = 'shell'
|
type = 'shell'
|
||||||
style = 'diamond'
|
style = 'diamond'
|
||||||
leading_diamond = ''
|
leading_diamond = ''
|
||||||
background = 'p:c1'
|
background = 'p:c1'
|
||||||
foreground = 'p:c12'
|
foreground = 'p:c12'
|
||||||
|
|
||||||
[[blocks]]
|
[[blocks]]
|
||||||
type = 'prompt'
|
type = 'prompt'
|
||||||
alignment = 'left'
|
alignment = 'left'
|
||||||
newline = true
|
newline = true
|
||||||
|
|
||||||
[[blocks.segments]]
|
[[blocks.segments]]
|
||||||
type = 'text'
|
type = 'text'
|
||||||
style = 'plain'
|
style = 'plain'
|
||||||
background = 'transparent'
|
background = 'transparent'
|
||||||
foreground_templates = [
|
foreground_templates = [
|
||||||
"{{{{ if gt .Code 0 }}}}p:c13{{{{end}}}}",
|
"{{{{ if gt .Code 0 }}}}p:c13{{{{end}}}}",
|
||||||
"{{{{ if eq .Code 0 }}}}p:c14{{{{end}}}}",
|
"{{{{ if eq .Code 0 }}}}p:c14{{{{end}}}}",
|
||||||
]
|
]
|
||||||
template = "{{{{ if gt .Code 0 }}}}!❭ {{{{else}}}}❭ {{{{end}}}}"
|
template = "{{{{ if gt .Code 0 }}}}!❭ {{{{else}}}}❭ {{{{end}}}}"
|
||||||
|
|
||||||
[transient_prompt]
|
[transient_prompt]
|
||||||
foreground_templates = [
|
foreground_templates = [
|
||||||
"{{{{ if gt .Code 0 }}}}p:c13{{{{end}}}}",
|
"{{{{ if gt .Code 0 }}}}p:c13{{{{end}}}}",
|
||||||
"{{{{ if eq .Code 0 }}}}p:c14{{{{end}}}}",
|
"{{{{ if eq .Code 0 }}}}p:c14{{{{end}}}}",
|
||||||
]
|
]
|
||||||
background = 'transparent'
|
background = 'transparent'
|
||||||
template = "{{{{ if gt .Code 0 }}}}!❭ {{{{else}}}}❭ {{{{end}}}}"
|
template = "{{{{ if gt .Code 0 }}}}!❭ {{{{else}}}}❭ {{{{end}}}}"
|
||||||
|
|
||||||
[secondary_prompt]
|
[secondary_prompt]
|
||||||
background = 'transparent'
|
background = 'transparent'
|
||||||
forground = 'p:c14'
|
forground = 'p:c14'
|
||||||
template = "❭❭ "
|
template = "❭❭ "
|
||||||
|
|
||||||
|
|
||||||
[palette]
|
[palette]
|
||||||
|
|
||||||
c0 = "{color0}"
|
c0 = "{color0}"
|
||||||
c1 = "{color1}"
|
c1 = "{color1}"
|
||||||
c2 = "{color2}"
|
c2 = "{color2}"
|
||||||
c3 = "{color3}"
|
c3 = "{color3}"
|
||||||
c4 = "{color4}"
|
c4 = "{color4}"
|
||||||
c5 = "{color5}"
|
c5 = "{color5}"
|
||||||
c6 = "{color6}"
|
c6 = "{color6}"
|
||||||
c7 = "{color7}"
|
c7 = "{color7}"
|
||||||
c8 = "{color8}"
|
c8 = "{color8}"
|
||||||
c9 = "{color9}"
|
c9 = "{color9}"
|
||||||
c10 = "{color10}"
|
c10 = "{color10}"
|
||||||
c11 = "{color11}"
|
c11 = "{color11}"
|
||||||
c12 = "{color12}"
|
c12 = "{color12}"
|
||||||
c13 = "{color13}"
|
c13 = "{color13}"
|
||||||
c14 = "{color14}"
|
c14 = "{color14}"
|
||||||
c15 = "{color15}"
|
c15 = "{color15}"
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,48 +1,51 @@
|
|||||||
{ config, lib, ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
options.homeconfig.opencode.enable = with lib; mkOption {
|
flake.homeModules.nathan = { config, lib, ... }: {
|
||||||
type = with types; bool;
|
|
||||||
default = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.opencode.enable {
|
options.homeconfig.opencode.enable = with lib; mkOption {
|
||||||
|
type = with types; bool;
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
|
||||||
programs.opencode = {
|
config = lib.mkIf config.homeconfig.opencode.enable {
|
||||||
enable = true;
|
|
||||||
|
|
||||||
settings = {
|
programs.opencode = {
|
||||||
theme = "system";
|
enable = true;
|
||||||
model = "ollama-remote/qwen3:8b";
|
|
||||||
|
|
||||||
provider = {
|
settings = {
|
||||||
ollama-local = {
|
theme = "system";
|
||||||
name = "Ollama (local)";
|
model = "ollama-remote/qwen3:8b";
|
||||||
|
|
||||||
npm = "@ai-sdk/openai-compatible";
|
provider = {
|
||||||
|
ollama-local = {
|
||||||
|
name = "Ollama (local)";
|
||||||
|
|
||||||
options.baseURL = "http://localhost:11434/v1";
|
npm = "@ai-sdk/openai-compatible";
|
||||||
|
|
||||||
|
options.baseURL = "http://localhost:11434/v1";
|
||||||
|
|
||||||
|
models = {
|
||||||
|
"ministral-3:8b".name = "Ministral 3 8B";
|
||||||
|
"llama3.2".name = "Llama 3.2";
|
||||||
|
"qwen3:8b".name = "Qwen 3";
|
||||||
|
};
|
||||||
|
|
||||||
models = {
|
|
||||||
"ministral-3:8b".name = "Ministral 3 8B";
|
|
||||||
"llama3.2".name = "Llama 3.2";
|
|
||||||
"qwen3:8b".name = "Qwen 3";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
ollama-remote = {
|
||||||
|
name = "Ollama (remote)";
|
||||||
|
|
||||||
ollama-remote = {
|
npm = "@ai-sdk/openai-compatible";
|
||||||
name = "Ollama (remote)";
|
|
||||||
|
|
||||||
npm = "@ai-sdk/openai-compatible";
|
options.baseURL = "https://ollama.esotericbytes.com/v1";
|
||||||
|
|
||||||
options.baseURL = "https://ollama.esotericbytes.com/v1";
|
models = {
|
||||||
|
"ministral-3:8b".name = "Ministral 3 8B";
|
||||||
|
"llama3.2".name = "Llama 3.2";
|
||||||
|
"qwen3:8b".name = "Qwen 3";
|
||||||
|
};
|
||||||
|
|
||||||
models = {
|
|
||||||
"ministral-3:8b".name = "Ministral 3 8B";
|
|
||||||
"llama3.2".name = "Llama 3.2";
|
|
||||||
"qwen3:8b".name = "Qwen 3";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{ ... }: {
|
||||||
|
|
||||||
|
flake.homeModules.nathan = { ... }: {
|
||||||
|
|
||||||
|
programs.ripgrep = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,24 +1,27 @@
|
|||||||
{ ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
programs.ssh = {
|
flake.homeModules.nathan = { ... }: {
|
||||||
|
|
||||||
enable = true;
|
programs.ssh = {
|
||||||
|
|
||||||
# defaults as of 25.11
|
enable = true;
|
||||||
matchBlocks."*" = {
|
|
||||||
forwardAgent = false;
|
# defaults as of 25.11
|
||||||
addKeysToAgent = "no";
|
matchBlocks."*" = {
|
||||||
compression = false;
|
forwardAgent = false;
|
||||||
serverAliveInterval = 0;
|
addKeysToAgent = "no";
|
||||||
serverAliveCountMax = 3;
|
compression = false;
|
||||||
hashKnownHosts = false;
|
serverAliveInterval = 0;
|
||||||
userKnownHostsFile = "~/.ssh/known_hosts";
|
serverAliveCountMax = 3;
|
||||||
controlMaster = "no";
|
hashKnownHosts = false;
|
||||||
controlPath = "~/.ssh/master-%r@%n:%p";
|
userKnownHostsFile = "~/.ssh/known_hosts";
|
||||||
controlPersist = "no";
|
controlMaster = "no";
|
||||||
|
controlPath = "~/.ssh/master-%r@%n:%p";
|
||||||
|
controlPersist = "no";
|
||||||
|
};
|
||||||
|
enableDefaultConfig = false;
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
};
|
};
|
||||||
enableDefaultConfig = false;
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,23 +1,68 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
programs.tmux = {
|
flake.homeModules.nathan = { config, lib, pkgs, ... }: {
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
clock24 = true;
|
|
||||||
|
|
||||||
mouse = true;
|
|
||||||
|
|
||||||
baseIndex = 1;
|
|
||||||
|
|
||||||
keyMode = "vi";
|
|
||||||
|
|
||||||
prefix = "C-b";
|
|
||||||
|
|
||||||
shell = "${pkgs.zsh}/bin/zsh";
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
programs.tmux = {
|
||||||
|
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
clock24 = true;
|
||||||
|
|
||||||
|
mouse = true;
|
||||||
|
|
||||||
|
baseIndex = 0;
|
||||||
|
|
||||||
|
keyMode = "vi";
|
||||||
|
|
||||||
|
prefix = "C-b";
|
||||||
|
|
||||||
|
shell = "${pkgs.zsh}/bin/zsh";
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
set -g status-position top
|
||||||
|
|
||||||
|
set -g @background '#0B0704'
|
||||||
|
set -g @foreground '#c2c1c0'
|
||||||
|
set -g @color0 '#0B0704'
|
||||||
|
set -g @color1 '#846550'
|
||||||
|
set -g @color2 '#4a526c'
|
||||||
|
set -g @color3 '#538281'
|
||||||
|
set -g @color4 '#7b8179'
|
||||||
|
set -g @color5 '#b4a589'
|
||||||
|
set -g @color6 '#78ada3'
|
||||||
|
set -g @color7 '#958d89'
|
||||||
|
set -g @color8 '#665b54'
|
||||||
|
set -g @color9 '#B1876B'
|
||||||
|
set -g @color10 '#636E90'
|
||||||
|
set -g @color11 '#6FAEAC'
|
||||||
|
set -g @color12 '#A5ADA2'
|
||||||
|
set -g @color13 '#F1DCB7'
|
||||||
|
set -g @color14 '#A1E7DA'
|
||||||
|
set -g @color15 '#c2c1c0'
|
||||||
|
|
||||||
|
set -g status-style 'fg=#0B0704,bg=#538281'
|
||||||
|
|
||||||
|
|
||||||
|
set -g @p '#(pwd)'
|
||||||
|
|
||||||
|
set -g status-interval 1
|
||||||
|
|
||||||
|
|
||||||
|
set -g status-left-length 50
|
||||||
|
set -g status-left "#[fg=@color12,bg=@color1] #[fg=@color1,bg=@color2]◤#[fg=@color14]#{user}@#H#[fg=@color2,bg=@color4]◤#[fg=@color2]#{s|/home/#{user}|~:@p}#[fg=@color4,bg=@background]◤"
|
||||||
|
|
||||||
|
set -g status-right "#[fg=@color2]◥#[fg=@color14,bg=@color2]%A %T#[fg=@color1]◥#[fg=@color12,bg=@color1]%D "
|
||||||
|
|
||||||
|
set -g window-status-separator '/'
|
||||||
|
set -g window-status-format '#[fg=@color3,bg=@color3]◢#[fg=@background,bg=@color3] #{window_index}: #{window_name} #[fg=@color3,bg=@color3]◤'
|
||||||
|
set -g window-status-current-format '#[fg=@color11,bg=@color3]◢#[fg=@background,bg=@color11,bold] #{window_index}: #{window_name} #[fg=@color11,bg=@color3]◤'
|
||||||
|
|
||||||
|
source ~/.cache/wal/colors-tmux.conf
|
||||||
|
'';
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
10
homes/nathan/home-manager/programs/terminal/yazi/default.nix
Normal file
10
homes/nathan/home-manager/programs/terminal/yazi/default.nix
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{ ... }: {
|
||||||
|
|
||||||
|
flake.homeModules.nathan = { ... }: {
|
||||||
|
config = {
|
||||||
|
programs.yazi = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,13 +1,16 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
programs.zoxide = {
|
flake.homeModules.nathan = { ... }: {
|
||||||
|
|
||||||
enable = true;
|
programs.zoxide = {
|
||||||
|
|
||||||
enableZshIntegration = true;
|
enable = true;
|
||||||
|
|
||||||
options = [
|
enableZshIntegration = true;
|
||||||
"--cmd cd"
|
|
||||||
];
|
options = [
|
||||||
};
|
"--cmd cd"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,37 +1,40 @@
|
|||||||
{ lib, ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
programs.zsh = {
|
flake.homeModules.nathan = { lib, ... }: {
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
initContent = lib.mkOrder 1200 ''
|
programs.zsh = {
|
||||||
bindkey ' ' magic-space
|
|
||||||
'';
|
|
||||||
|
|
||||||
enableCompletion = true;
|
|
||||||
|
|
||||||
autosuggestion.enable = true;
|
|
||||||
|
|
||||||
syntaxHighlighting.enable = true;
|
|
||||||
|
|
||||||
shellAliases = {
|
|
||||||
ls = "eza";
|
|
||||||
ll = "ls -l";
|
|
||||||
|
|
||||||
ksh = "kitten ssh";
|
enable = true;
|
||||||
|
|
||||||
vi = "nvim";
|
initContent = lib.mkOrder 1200 ''
|
||||||
vim = "nvim";
|
bindkey ' ' magic-space
|
||||||
|
'';
|
||||||
|
|
||||||
python = "python3.13";
|
enableCompletion = true;
|
||||||
python3 = "python3.13";
|
|
||||||
|
autosuggestion.enable = true;
|
||||||
|
|
||||||
|
syntaxHighlighting.enable = true;
|
||||||
|
|
||||||
|
shellAliases = {
|
||||||
|
ls = "eza";
|
||||||
|
ll = "ls -l";
|
||||||
|
|
||||||
|
ksh = "kitten ssh";
|
||||||
|
|
||||||
|
vi = "nvim";
|
||||||
|
vim = "nvim";
|
||||||
|
|
||||||
|
python = "python3.14";
|
||||||
|
python3 = "python3.14";
|
||||||
|
};
|
||||||
|
|
||||||
|
history = {
|
||||||
|
size = 5000;
|
||||||
|
ignoreAllDups = true;
|
||||||
|
ignoreSpace = true;
|
||||||
|
share = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
history = {
|
|
||||||
size = 5000;
|
|
||||||
ignoreAllDups = true;
|
|
||||||
ignoreSpace = true;
|
|
||||||
share = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
|
|
||||||
imports = let
|
|
||||||
dir = builtins.readDir ./.;
|
|
||||||
in builtins.map (x: ./${x}) (builtins.filter
|
|
||||||
(file: (dir.${file} == "directory"))
|
|
||||||
(builtins.attrNames dir)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -1,41 +1,44 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
options = {
|
flake.homeModules.nathan = { config, lib, pkgs, ... }: {
|
||||||
homeconfig.mpd.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
options = {
|
||||||
default = false;
|
homeconfig.mpd.enable = lib.options.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.mpd.enable {
|
config = lib.mkIf config.homeconfig.mpd.enable {
|
||||||
services.mpd = {
|
services.mpd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
network.startWhenNeeded = true;
|
network.startWhenNeeded = true;
|
||||||
network.port = 6600;
|
network.port = 6600;
|
||||||
network.listenAddress = "127.0.0.1";
|
network.listenAddress = "127.0.0.1";
|
||||||
musicDirectory = "/home/nathan/Music";
|
musicDirectory = "/home/nathan/Music";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
audio_output {
|
audio_output {
|
||||||
type "pipewire"
|
type "pipewire"
|
||||||
name "Audio1"
|
name "Audio1"
|
||||||
}
|
}
|
||||||
audio_output {
|
audio_output {
|
||||||
type "fifo"
|
type "fifo"
|
||||||
name "visualizer"
|
name "visualizer"
|
||||||
path "/tmp/mpd.fifo"
|
path "/tmp/mpd.fifo"
|
||||||
format "44100:16:1"
|
format "44100:16:1"
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
services.mpdris2 = {
|
||||||
|
enable = true;
|
||||||
|
mpd.host = "127.0.0.1";
|
||||||
|
mpd.port = 6600;
|
||||||
|
package = pkgs.mpdris2;
|
||||||
|
mpd.musicDirectory = "/home/nathan/Music";
|
||||||
|
notifications = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.mpdris2 = {
|
|
||||||
enable = true;
|
|
||||||
mpd.host = "127.0.0.1";
|
|
||||||
mpd.port = 6600;
|
|
||||||
package = pkgs.mpdris2;
|
|
||||||
mpd.musicDirectory = "/home/nathan/Music";
|
|
||||||
notifications = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,25 +1,38 @@
|
|||||||
{ lib, inputs, ... }:
|
{ self, inputs, ... }: {
|
||||||
|
|
||||||
{
|
flake.homeModules.nathan = { lib, ... }:
|
||||||
|
|
||||||
config = {
|
{
|
||||||
homeconfig = {
|
|
||||||
graphical = lib.mkDefault false;
|
|
||||||
minimal = lib.mkDefault false;
|
|
||||||
|
|
||||||
hyprland.enable = false;
|
config = {
|
||||||
};
|
homeconfig = {
|
||||||
|
graphical = lib.mkDefault false;
|
||||||
|
minimal = lib.mkDefault false;
|
||||||
|
|
||||||
|
hyprland.enable = lib.mkDefault false;
|
||||||
nix = {
|
|
||||||
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
|
||||||
settings = {
|
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
builders = "ssh://builder x86_64-linux,aarch64-linux /run/secrets/remoteBuildKey 1 1 nixos-test,benchmark,big-parallel,kvm - -";
|
|
||||||
builders-use-substituters = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
||||||
|
settings = {
|
||||||
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
builders = "ssh://builder x86_64-linux,aarch64-linux /run/secrets/remoteBuildKey 1 1 nixos-test,benchmark,big-parallel,kvm - -";
|
||||||
|
builders-use-substitutes = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.home-manager.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
flake.homeConfigurations.nathan = inputs.home-manager.lib.homeManagerConfiguration {
|
||||||
|
pkgs = import inputs.nixpkgs {
|
||||||
|
system = builtins.currentSystem;
|
||||||
|
};
|
||||||
|
|
||||||
|
modules = [
|
||||||
|
self.homeModules.nathan
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|||||||
Submodule machines/android deleted from 4ba07466f6
Submodule machines/homebox updated: b2a72f1a24...e3e98541fa
Submodule machines/laptop updated: 37e225fad4...ae51730c19
@@ -1,157 +1,159 @@
|
|||||||
{ config, pkgs, lib, inputs, ... }:
|
{ inputs, ... }: {
|
||||||
|
|
||||||
{
|
flake.nixosModules.container = { config, pkgs, lib, ... }:
|
||||||
imports =
|
|
||||||
[
|
|
||||||
|
|
||||||
inputs.home-manager.nixosModules.default
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
||||||
config = {
|
{
|
||||||
hardware.nvidia.open = true;
|
imports =
|
||||||
|
[
|
||||||
|
|
||||||
boot.isContainer = true;
|
inputs.home-manager.nixosModules.default
|
||||||
|
|
||||||
services = {
|
];
|
||||||
xserver = {
|
|
||||||
|
config = {
|
||||||
|
hardware.nvidia.open = true;
|
||||||
|
|
||||||
|
boot.isContainer = true;
|
||||||
|
|
||||||
|
services = {
|
||||||
|
xserver = {
|
||||||
#enable = true;
|
#enable = true;
|
||||||
videoDrivers = ["nvidia"];
|
videoDrivers = ["nvidia"];
|
||||||
};
|
|
||||||
displayManager = {
|
|
||||||
enable = true;
|
|
||||||
defaultSession = "plasma";
|
|
||||||
autoLogin = {
|
|
||||||
enable = true;
|
|
||||||
user = "nathan";
|
|
||||||
};
|
};
|
||||||
|
displayManager = {
|
||||||
|
enable = true;
|
||||||
|
defaultSession = "plasma";
|
||||||
|
autoLogin = {
|
||||||
|
enable = true;
|
||||||
|
user = "nathan";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
pulseaudio.enable = false;
|
||||||
};
|
};
|
||||||
pulseaudio.enable = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.extraConfig = "DefaultLimitNOFILE=2048";
|
systemd.extraConfig = "DefaultLimitNOFILE=2048";
|
||||||
/*
|
/*
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
WLR_BACKENDS = "headless";
|
WLR_BACKENDS = "headless";
|
||||||
WLR_LIBINPUT_NO_DEVICES = "1";
|
WLR_LIBINPUT_NO_DEVICES = "1";
|
||||||
};
|
};
|
||||||
*/
|
*/
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
environment.shells = with pkgs; [ zsh ];
|
environment.shells = with pkgs; [ zsh ];
|
||||||
users.defaultUserShell = pkgs.zsh;
|
users.defaultUserShell = pkgs.zsh;
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
hostPlatform = "x86_64-linux";
|
hostPlatform = "x86_64-linux";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "America/Chicago";
|
time.timeZone = "America/Chicago";
|
||||||
|
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
i18n.extraLocaleSettings = {
|
i18n.extraLocaleSettings = {
|
||||||
LC_ADDRESS = "en_US.UTF-8";
|
LC_ADDRESS = "en_US.UTF-8";
|
||||||
LC_IDENTIFICATION = "en_US.UTF-8";
|
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||||
LC_MEASUREMENT = "en_US.UTF-8";
|
LC_MEASUREMENT = "en_US.UTF-8";
|
||||||
LC_MONETARY = "en_US.UTF-8";
|
LC_MONETARY = "en_US.UTF-8";
|
||||||
LC_NAME = "en_US.UTF-8";
|
LC_NAME = "en_US.UTF-8";
|
||||||
LC_NUMERIC = "en_US.UTF-8";
|
LC_NUMERIC = "en_US.UTF-8";
|
||||||
LC_PAPER = "en_US.UTF-8";
|
LC_PAPER = "en_US.UTF-8";
|
||||||
LC_TELEPHONE = "en_US.UTF-8";
|
LC_TELEPHONE = "en_US.UTF-8";
|
||||||
LC_TIME = "en_US.UTF-8";
|
LC_TIME = "en_US.UTF-8";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.displayManager.sddm.settings.AutoLogin = {
|
services.displayManager.sddm.settings.AutoLogin = {
|
||||||
User = "nathan";
|
User = "nathan";
|
||||||
Session = "plasmawayland.desktop";
|
Session = "plasmawayland.desktop";
|
||||||
Relogin = true;
|
Relogin = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
firewall.allowedTCPPorts = [ 80 ];
|
firewall.allowedTCPPorts = [ 80 ];
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "25.05"; # Did you read the comment?
|
system.stateVersion = "25.05"; # Did you read the comment?
|
||||||
|
|
||||||
users.users."nathan" = {
|
users.users."nathan" = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|
||||||
initialPassword = "7567";
|
initialPassword = "7567";
|
||||||
|
|
||||||
#hashedPasswordFile = config.sops.secrets."nathan/pass".path;
|
#hashedPasswordFile = config.sops.secrets."nathan/pass".path;
|
||||||
|
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"wheel"
|
"wheel"
|
||||||
]; # Enable ‘sudo’ for the user.
|
]; # Enable ‘sudo’ for the user.
|
||||||
|
|
||||||
/*openssh.authorizedKeys.keys = [
|
/*openssh.authorizedKeys.keys = [
|
||||||
];*/
|
];*/
|
||||||
|
};
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
||||||
|
settings = {
|
||||||
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nix = {
|
/*sops = {
|
||||||
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
age.keyFile = "/home/nathan/.config/sops/age/keys.txt";
|
||||||
settings = {
|
defaultSopsFile = ./secrets.yaml;
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
defaultSopsFormat = "yaml";
|
||||||
|
|
||||||
|
secrets = {
|
||||||
|
"nathan/pass" = {
|
||||||
|
neededForUsers = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};*/
|
||||||
|
|
||||||
|
programs.fuse.userAllowOther = true;
|
||||||
|
|
||||||
|
home-manager = {
|
||||||
|
backupFileExtension = "backup";
|
||||||
|
extraSpecialArgs = {inherit inputs;};
|
||||||
|
users = {
|
||||||
|
"nathan" = lib.mkMerge [
|
||||||
|
inputs.nathan-home-manager
|
||||||
|
{
|
||||||
|
config.homeconfig = {
|
||||||
|
minimal = false;
|
||||||
|
hyprland.enable = false;
|
||||||
|
wal.enable = false;
|
||||||
|
hyprlock.enable = false;
|
||||||
|
mpd.enable = true;
|
||||||
|
calcurse.enable = true;
|
||||||
|
rofi.enable = true;
|
||||||
|
firefox.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sysconfig = {
|
||||||
|
opts = {
|
||||||
|
novnc.enable = true;
|
||||||
|
sddm.enable = true;
|
||||||
|
openssh.enable = true;
|
||||||
|
pipewire.enable = true;
|
||||||
|
hyprpanel.enable = false;
|
||||||
|
hyprland.enable = false;
|
||||||
|
kdePlasma6.enable = true;
|
||||||
|
git.enable = true;
|
||||||
|
nh.enable = true;
|
||||||
|
netbird.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
fonts.packages = with pkgs; [ nerd-fonts.fira-code ];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*sops = {
|
|
||||||
age.keyFile = "/home/nathan/.config/sops/age/keys.txt";
|
|
||||||
defaultSopsFile = ./secrets.yaml;
|
|
||||||
defaultSopsFormat = "yaml";
|
|
||||||
|
|
||||||
secrets = {
|
|
||||||
"nathan/pass" = {
|
|
||||||
neededForUsers = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};*/
|
|
||||||
|
|
||||||
programs.fuse.userAllowOther = true;
|
|
||||||
|
|
||||||
home-manager = {
|
|
||||||
backupFileExtension = "backup";
|
|
||||||
extraSpecialArgs = {inherit inputs;};
|
|
||||||
users = {
|
|
||||||
"nathan" = lib.mkMerge [
|
|
||||||
inputs.nathan-home-manager
|
|
||||||
{
|
|
||||||
config.homeconfig = {
|
|
||||||
minimal = false;
|
|
||||||
hyprland.enable = false;
|
|
||||||
wal.enable = false;
|
|
||||||
hyprpanel.enable = false;
|
|
||||||
hyprlock.enable = false;
|
|
||||||
mpd.enable = true;
|
|
||||||
calcurse.enable = true;
|
|
||||||
rofi.enable = true;
|
|
||||||
firefox.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
sysconfig = {
|
|
||||||
opts = {
|
|
||||||
novnc.enable = true;
|
|
||||||
sddm.enable = true;
|
|
||||||
openssh.enable = true;
|
|
||||||
pipewire.enable = true;
|
|
||||||
hyprpanel.enable = false;
|
|
||||||
hyprland.enable = false;
|
|
||||||
kdePlasma6.enable = true;
|
|
||||||
git.enable = true;
|
|
||||||
nh.enable = true;
|
|
||||||
netbird.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
fonts.packages = with pkgs; [ nerd-fonts.fira-code ];
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
7
profiles/homebox/.sops.yaml
Normal file
7
profiles/homebox/.sops.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
keys:
|
||||||
|
- &homebox age1640eg0pnmkruc89m5xguz0m8fek44fl4tzez6qwuzlz6kmapqewsp8esxd
|
||||||
|
creation_rules:
|
||||||
|
- path_regex: ^secrets.yaml$
|
||||||
|
key_groups:
|
||||||
|
- age:
|
||||||
|
- *homebox
|
||||||
131
profiles/homebox/config.nix
Normal file
131
profiles/homebox/config.nix
Normal file
@@ -0,0 +1,131 @@
|
|||||||
|
{ self, inputs, ... }: {
|
||||||
|
|
||||||
|
flake.nixosConfigurations."homebox" = inputs.nixpkgs.lib.nixosSystem {
|
||||||
|
|
||||||
|
modules = [
|
||||||
|
self.nixosModules.homebox
|
||||||
|
self.nixosModules.default
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.nixosModules.homebox = { config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
imports = [ # Include the results of the hardware scan.
|
||||||
|
|
||||||
|
(import ./disko.nix { device1 = "/dev/nvme0n1"; device2 = "/dev/nvme1n1"; device3 = "/dev/sda"; })
|
||||||
|
];
|
||||||
|
|
||||||
|
config = {
|
||||||
|
|
||||||
|
services = {
|
||||||
|
xserver = {
|
||||||
|
enable = false;
|
||||||
|
videoDrivers = ["nvidia"];
|
||||||
|
};
|
||||||
|
displayManager = {
|
||||||
|
enable = false;
|
||||||
|
defaultSession = "hyprland";
|
||||||
|
autoLogin = {
|
||||||
|
enable = true;
|
||||||
|
user = "nathan";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
pulseaudio.enable = false;
|
||||||
|
|
||||||
|
hardware.openrgb = {
|
||||||
|
enable = true;
|
||||||
|
motherboard = "amd";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware = {
|
||||||
|
nvidia = {
|
||||||
|
open = true;
|
||||||
|
modesetting.enable = true;
|
||||||
|
nvidiaPersistenced = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
bluetooth = {
|
||||||
|
enable = true;
|
||||||
|
powerOnBoot = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
sops = {
|
||||||
|
age.keyFile = "/var/lib/sops/age/keys.txt";
|
||||||
|
defaultSopsFile = ./secrets.yaml;
|
||||||
|
defaultSopsFormat = "yaml";
|
||||||
|
|
||||||
|
secrets = {
|
||||||
|
"nathan/pass" = {
|
||||||
|
neededForUsers = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
sysconfig = {
|
||||||
|
|
||||||
|
host = "homebox";
|
||||||
|
|
||||||
|
docker.nvidia = true;
|
||||||
|
|
||||||
|
remoteBuildClient = false;
|
||||||
|
|
||||||
|
users = {
|
||||||
|
nathan = {
|
||||||
|
isSuperuser = true;
|
||||||
|
extraGroups = [ "networkmanager" "docker" ];
|
||||||
|
ssh.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsU69CxfQk58CvItPN426h5Alnpb60SH37wet97Vb57 nathan@laptop"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEnUhN2uHwAJF/SLRX3wlGRmfhV3zpP88JQAYB+gh8jW nathan@localhost"
|
||||||
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCM7ZgIu4+ntHZbzo9iQPq5pUt7AhpOnfvvI0lWDgO4CgtkPGvyFrDnW87wjAKGKYkgKeHWHIkwq2hkEDqlPD+7xxtPpwzfyo7ZS23xlP31rL14HcG21jGHgx9SO7RmGDHHylu4PwJzz/KX59hcVmpSSV4hgB/mYA9UKe6VHv39X4y3HsjmiHwNBOKXltG4V+VkxOZD6HcZ62sgkyDTaqDpE7p+q8vHPbm6dVTKC9cMjtJmjB5EesMGKcEAy3VN2tA9M0EndtaLcBKM39vDXGpBsjURYZTu7NbQnncnO7L8kVL0nT4vA/d4mCjB51dPoXIcxn1ise0TOb9G7TxMbBQQO5YMOpiB2iuZRRvB3sYoKwbO8YfSxZi0EhvLcxkF9GBFw+pWPl0p0D2fPBbW88YQfEpoAt2EWvEu/pgaMJsTHpgaIuDwPLVQmDciX4MRoi324oElGSK8yN0P8IaCHhFchuehLBWvTi34Qot0GpnxeTzmlLzImICO9Yq0I7dk2rk= nathan@rpi-3dp"
|
||||||
|
];
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
hashedPasswordFile = config.sops.secrets."nathan/pass".path;
|
||||||
|
home-manager = {
|
||||||
|
enable = true;
|
||||||
|
standalone = false;
|
||||||
|
extraModules = [
|
||||||
|
{
|
||||||
|
homeconfig = {
|
||||||
|
minimal = false;
|
||||||
|
virtual-machines = true;
|
||||||
|
hyprland.enable = false;
|
||||||
|
hypridle.enable = false;
|
||||||
|
wal.enable = true;
|
||||||
|
mpd.enable = true;
|
||||||
|
calcurse.enable = true;
|
||||||
|
rofi.enable = false;
|
||||||
|
firefox.enable = false;
|
||||||
|
git.enable = true;
|
||||||
|
nh.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.hypridle.enable = lib.mkForce false;
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
wayvnc
|
||||||
|
openrgb
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# 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 = "23.05"; # Did you read the comment?
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,115 +1,116 @@
|
|||||||
{ config, pkgs, lib, disko, sops-nix, home-manager, ... }:
|
{ inputs, ... }: {
|
||||||
|
|
||||||
{
|
flake.nixosModules.homebox = { config, pkgs, lib, ... }:
|
||||||
imports =
|
|
||||||
[
|
|
||||||
disko.nixosModules.default
|
|
||||||
|
|
||||||
sops-nix.nixosModules.sops
|
|
||||||
|
|
||||||
home-manager.nixosModules.default
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
||||||
config = {
|
{
|
||||||
|
imports =
|
||||||
boot = {
|
[
|
||||||
kernelPackages = pkgs.linuxKernel.packages.linux_6_18;
|
inputs.disko.nixosModules.default
|
||||||
loader = {
|
|
||||||
systemd-boot.enable = true;
|
inputs.sops-nix.nixosModules.sops
|
||||||
efi.canTouchEfiVariables = true;
|
|
||||||
|
inputs.home-manager.nixosModules.default
|
||||||
|
|
||||||
|
];
|
||||||
|
|
||||||
|
config = {
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
kernelPackages = pkgs.linuxKernel.packages.linux_6_18;
|
||||||
|
loader = {
|
||||||
|
systemd-boot.enable = true;
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
binfmt.emulatedSystems = lib.mkIf config.sysconfig.remoteBuildHost [ "aarch64-linux" ];
|
||||||
};
|
};
|
||||||
binfmt.emulatedSystems = lib.mkIf config.sysconfig.remoteBuildHost [ "aarch64-linux" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.settings.Manager.DefaultLimitNOFILE = 2048;
|
systemd.settings.Manager.DefaultLimitNOFILE = 2048;
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
environment.shells = with pkgs; [ zsh bashInteractive ];
|
environment.shells = with pkgs; [ zsh bashInteractive ];
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
nameservers = lib.mkDefault [ "1.1.1.1" "1.0.0.1" ];
|
nameservers = lib.mkDefault [ "1.1.1.1" "1.0.0.1" ];
|
||||||
networkmanager = {
|
networkmanager = {
|
||||||
enable = true;
|
|
||||||
dns = "none";
|
|
||||||
};
|
|
||||||
useDHCP = false;
|
|
||||||
dhcpcd.enable = false;
|
|
||||||
|
|
||||||
nftables = {};
|
|
||||||
nat = {
|
|
||||||
enable = true;
|
|
||||||
internalInterfaces = [ "ve-.+" ];
|
|
||||||
externalInterface = "wlp7s0"; # wifi
|
|
||||||
#externalInterface = "enp6s0"; # ethernet
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
sysconfig = {
|
|
||||||
remoteBuildHost = true;
|
|
||||||
graphical = false;
|
|
||||||
|
|
||||||
services = {
|
|
||||||
sddm.enable = false;
|
|
||||||
openssh.enable = true;
|
|
||||||
pipewire.enable = true;
|
|
||||||
netbird.enable = true;
|
|
||||||
|
|
||||||
ollama.enable = false;
|
|
||||||
wyoming = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
piper = true;
|
dns = "none";
|
||||||
openwakeword = true;
|
};
|
||||||
faster-whisper = true;
|
useDHCP = false;
|
||||||
|
dhcpcd.enable = false;
|
||||||
|
|
||||||
|
nftables = {};
|
||||||
|
nat = {
|
||||||
|
enable = true;
|
||||||
|
internalInterfaces = [ "ve-.+" ];
|
||||||
|
externalInterface = "wlp7s0"; # wifi
|
||||||
|
#externalInterface = "enp6s0"; # ethernet
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
sysconfig = {
|
||||||
hyprland.enable = false;
|
remoteBuildHost = true;
|
||||||
hyprpanel.enable = false;
|
graphical = false;
|
||||||
steam.enable = false;
|
|
||||||
|
services = {
|
||||||
|
sddm.enable = false;
|
||||||
|
openssh.enable = true;
|
||||||
|
pipewire.enable = true;
|
||||||
|
netbird.enable = true;
|
||||||
|
|
||||||
|
ollama.enable = false;
|
||||||
|
avahi.enable = true;
|
||||||
|
wyoming = {
|
||||||
|
enable = true;
|
||||||
|
piper = true;
|
||||||
|
openwakeword = true;
|
||||||
|
faster-whisper = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
hyprland.enable = false;
|
||||||
|
steam.enable = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
docker = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
portainer.enable = true;
|
||||||
|
traefik.enable = true;
|
||||||
|
pihole.enable = true;
|
||||||
|
authentik.enable = true;
|
||||||
|
netbird.enable = true;
|
||||||
|
|
||||||
|
openwebui.enable = true;
|
||||||
|
ollama.enable = true;
|
||||||
|
searxng.enable = true;
|
||||||
|
home-assistant.enable = true;
|
||||||
|
n8n.enable = true;
|
||||||
|
|
||||||
|
nextcloud.enable = false;
|
||||||
|
jellyfin.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
containers = {
|
||||||
|
"esotericbytes.com".enable = true;
|
||||||
|
|
||||||
|
gitea.enable = true;
|
||||||
|
|
||||||
|
code-server.enable = true;
|
||||||
|
|
||||||
|
sandbox.enable = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
virtual-machines = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
docker = {
|
fonts.packages = with pkgs; [ nerd-fonts.fira-code ];
|
||||||
enable = true;
|
|
||||||
|
|
||||||
portainer.enable = true;
|
|
||||||
traefik.enable = true;
|
|
||||||
pihole.enable = true;
|
|
||||||
authentik.enable = true;
|
|
||||||
netbird.enable = true;
|
|
||||||
|
|
||||||
openwebui.enable = true;
|
|
||||||
ollama.enable = true;
|
|
||||||
searxng.enable = true;
|
|
||||||
home-assistant.enable = true;
|
|
||||||
n8n.enable = true;
|
|
||||||
|
|
||||||
nextcloud.enable = true;
|
|
||||||
jellyfin.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
containers = {
|
|
||||||
"esotericbytes.com".enable = true;
|
|
||||||
|
|
||||||
gitea.enable = true;
|
|
||||||
|
|
||||||
code-server.enable = true;
|
|
||||||
|
|
||||||
minecraft.enable = true;
|
|
||||||
|
|
||||||
sandbox.enable = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
virtual-machines = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
fonts.packages = with pkgs; [ nerd-fonts.fira-code ];
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
148
profiles/homebox/disko.nix
Normal file
148
profiles/homebox/disko.nix
Normal file
@@ -0,0 +1,148 @@
|
|||||||
|
{ ... }: {
|
||||||
|
|
||||||
|
flake.diskoConfigurations.homebox = {
|
||||||
|
device1 ? throw "Set this to your disk device, e.g. /dev/sda",
|
||||||
|
device2,
|
||||||
|
device3,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
disko.devices = {
|
||||||
|
disk = {
|
||||||
|
main = {
|
||||||
|
device = device1;
|
||||||
|
type = "disk";
|
||||||
|
content = {
|
||||||
|
type = "gpt";
|
||||||
|
partitions = {
|
||||||
|
boot = {
|
||||||
|
name = "boot";
|
||||||
|
size = "1M";
|
||||||
|
type = "EF02";
|
||||||
|
};
|
||||||
|
esp = {
|
||||||
|
name = "ESP";
|
||||||
|
size = "500M";
|
||||||
|
type = "EF00";
|
||||||
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "vfat";
|
||||||
|
mountpoint = "/boot";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
swap = {
|
||||||
|
size = "4G";
|
||||||
|
content = {
|
||||||
|
type = "swap";
|
||||||
|
resumeDevice = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
root = {
|
||||||
|
name = "root";
|
||||||
|
size = "100%";
|
||||||
|
content = {
|
||||||
|
type = "lvm_pv";
|
||||||
|
vg = "root_vg";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
ssd1 = {
|
||||||
|
device = device2;
|
||||||
|
type = "disk";
|
||||||
|
content = {
|
||||||
|
type = "gpt";
|
||||||
|
partitions = {
|
||||||
|
ssd1 = {
|
||||||
|
name = "ssd1";
|
||||||
|
size = "100%";
|
||||||
|
content = {
|
||||||
|
type = "lvm_pv";
|
||||||
|
vg = "ssd1_vg";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
hdd1 = {
|
||||||
|
device = device3;
|
||||||
|
type = "disk";
|
||||||
|
content = {
|
||||||
|
type = "gpt";
|
||||||
|
partitions = {
|
||||||
|
hdd1 = {
|
||||||
|
name = "hdd1";
|
||||||
|
size = "100%";
|
||||||
|
content = {
|
||||||
|
type = "lvm_pv";
|
||||||
|
vg = "hdd1_vg";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
lvm_vg = {
|
||||||
|
root_vg = {
|
||||||
|
type = "lvm_vg";
|
||||||
|
lvs = {
|
||||||
|
root = {
|
||||||
|
size = "100%FREE";
|
||||||
|
content = {
|
||||||
|
type = "btrfs";
|
||||||
|
extraArgs = ["-f"];
|
||||||
|
|
||||||
|
subvolumes = {
|
||||||
|
"/root" = {
|
||||||
|
mountpoint = "/";
|
||||||
|
};
|
||||||
|
|
||||||
|
"/nix" = {
|
||||||
|
mountOptions = ["subvol=nix" "noatime"];
|
||||||
|
mountpoint = "/nix";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
ssd1_vg = {
|
||||||
|
type = "lvm_vg";
|
||||||
|
lvs = {
|
||||||
|
ssd1 = {
|
||||||
|
size = "100%FREE";
|
||||||
|
content = {
|
||||||
|
type = "btrfs";
|
||||||
|
extraArgs = [ "-f" ];
|
||||||
|
subvolumes = {
|
||||||
|
"/ssd1" = {
|
||||||
|
mountOptions = [ "subvol=ssd1" "noatime" ];
|
||||||
|
mountpoint = "/ssd1";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
hdd1_vg = {
|
||||||
|
type = "lvm_vg";
|
||||||
|
lvs = {
|
||||||
|
hdd1 = {
|
||||||
|
size = "100%FREE";
|
||||||
|
content = {
|
||||||
|
type = "btrfs";
|
||||||
|
extraArgs = [ "-f" ];
|
||||||
|
subvolumes = {
|
||||||
|
"/hdd1" = {
|
||||||
|
mountOptions = [ "subvol=hdd1" "noatime" ];
|
||||||
|
mountpoint = "/hdd1";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
24
profiles/homebox/hardware-configuration.nix
Normal file
24
profiles/homebox/hardware-configuration.nix
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{ ... }: {
|
||||||
|
|
||||||
|
flake.nixosModules.homebox = { config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" "sr_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
};
|
||||||
|
}
|
||||||
44
profiles/homebox/secrets.yaml
Normal file
44
profiles/homebox/secrets.yaml
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
nathan:
|
||||||
|
pass: ENC[AES256_GCM,data:HP/kF665VvIUybXmqaluJikeHWR0lvTXjA8Ry/dpbjDd3VUfiDuWFKlBkUzIZ1brAc86PV1xl4JWu2CNEz7uc3TmPuJ+GsFFOA==,iv:uPQZE7s3PvfShOaVCNRnnhXlcvA5aIiXRxi7UPbXfdU=,tag:Wg0IuCm4ljSPBmB/H2OSFA==,type:str]
|
||||||
|
traefik:
|
||||||
|
cf_email: ENC[AES256_GCM,data:ujvdfobp/aTcyC+kUYeYYeaiXQnQhoHYhg==,iv:LBzvuMMt76jX70a68rzaMgkmzHtVE2TlbrJlWE7I6o8=,tag:cTO1ApZQ214zjJyumunvPg==,type:str]
|
||||||
|
cf_api_key: ENC[AES256_GCM,data:CrtkBlhUZT3rlZAqiEHz7/OhPaoQ5nAz+deWmrh2zmwJfAp95lGZCA==,iv:qPXTm5zjTVYupot/hUkI/pSe0QNs17rapDrvdweRDTQ=,tag:VL2Cnig8Ih0iSL7myqlTgA==,type:str]
|
||||||
|
authentik:
|
||||||
|
pass: ENC[AES256_GCM,data:pTjpwRgdUVU5543T199P7Zoy,iv:93WpIK6qq+A1LhaQdBvMQ4jzuAOmMUt575y/p8m8Ugk=,tag:jTg/JED3vpdOVHF8LdIyLg==,type:str]
|
||||||
|
secret_key: ENC[AES256_GCM,data:tIWDGtB/z7Ysizz9FPQJe2EeSTAxDPkeHJnaDfytDvbqvRaiCgg7qGpEF6hAQFdZ,iv:gloup5aI0qY+SYJt8V6lvUdE+18IWH09BXtz8dRi6JE=,tag:vFwF9h1Rsa/X1bjvdSRSfQ==,type:str]
|
||||||
|
pihole:
|
||||||
|
pass: ENC[AES256_GCM,data:hintZA==,iv:HA5K8mHYlLtf5s8iaLI/QRolYgcKwG8DWCH+LXnWI4k=,tag:DlnXxG0n9dBVpk2kILlPKg==,type:str]
|
||||||
|
gitea:
|
||||||
|
dbpass: ENC[AES256_GCM,data:hVRLXACRECNSnXRn8BEP0ZFT,iv:zuIvzStek6OEu+P4Nh8Wsq9eRVt/zP8KGVXYZWjSvW0=,tag:m4t8vKNGhz8NqkDWbCRgnA==,type:str]
|
||||||
|
keycloak:
|
||||||
|
dbpass: ENC[AES256_GCM,data:tc4wIAqzY7nonBhz8s+YdAux,iv:Wg0b0/xnl6cANLTOJWBsX+gw1iF8Q/GvO/iKyKwqJrM=,tag:LORKRmo4RjcrVbPNhk2A9Q==,type:str]
|
||||||
|
netbird:
|
||||||
|
secret_key: ENC[AES256_GCM,data:isJHGh/InvgJUSqISqxpWhZH0OMN/QG7WBbSS7WqHaWTdfZDBOh//PBP8g==,iv:j0D6feM3qnDjXijXRHgZPboFLHzPwWIhT5bYz3M+QMU=,tag:pOHRxOEdOUrL3n6DgqGDsA==,type:str]
|
||||||
|
gitlab:
|
||||||
|
db_pass: ENC[AES256_GCM,data:N3KvXkXql/PDjxZSpGo/Apr/,iv:OOzhR4BEmV3T01PA50vqdJMg7D2OGKHn/8hiqKEaOd4=,tag:jzdonXH/D/5kZ5Cld2W//w==,type:str]
|
||||||
|
root_pass: ENC[AES256_GCM,data:bALaUkoJw3N0ugZP/4MCnEsD,iv:LJdJpXlyzA6o00UVlK+l5WCCFIL/sT/fQNjI8wA5LAg=,tag:BYk1o/rjubyEpeHbgYA1Sg==,type:str]
|
||||||
|
secrets:
|
||||||
|
secret: ENC[AES256_GCM,data:3/26giCD58RErtEDxQ90KxRl3aa8oH4co2Urw21r7hHCKaoSti1VpYoBtlvHdr5j,iv:SwliwLWSFfTZoc31JSm9YKBDGKiPQE7ujkiGaZmCQUc=,tag:2KT5BpJukixvhb6tnZb6lw==,type:str]
|
||||||
|
otp: ENC[AES256_GCM,data:RWOkQVPRsrJgPVtx49hiWRMAxVOszKxaDl40XQDL+QoDuoZi03wSxHiu4Ix9X2BR,iv:uO+CTR5S4r1q7n1ycQw0hYdu8JflSrvkgLiBbCmT8mk=,tag:gqCwNOqD78lFtgxUPyUw3A==,type:str]
|
||||||
|
db: ENC[AES256_GCM,data:rF4IIp1uFSGa67LVm8fy4/qFOmZLInRcG2IAfnuZG3+xtS9Z2RXpNcTZNFBDdOaD,iv:/KYwf3ZH6w48L49rY/FmaGQOt3jGdOUTZ9vFhmLZG60=,tag:f38iYIgpgdjWF34qD1fz2w==,type:str]
|
||||||
|
jws: ENC[AES256_GCM,data:C+GVDeO319QGjq2+fBMr1LaY6/6Tuz6jWomkvFVul6ydJjmMFO3A9dYI66WWY6g2iZgYEWDKUikW1qDK5sGgU5ZAZzaqS01LUsSsPHUcMqIg/AjtcRfaEvHYODYPPSEwdISzhceDaim8yqhrNTIOHUHvOxcILvtUmsI61hNfVSnOQbqifIJDgGP7bKaf96t8+qcBvp/UBwP1qHj/m4jD83yc8Pdih+ZuPmyNdo3Ew0nbLTykYVX3XsrO1RlJ/Gp+KPfRSJzVGAnqUKr8mI+32LUpXSJ96bEGA67/blSh1dbBxSVo3K83aZYuY6vvXb+Et6qd4piZYKGCxA+waSrTkYHvSgS5vJRbCGWauXKCYFASxxqmdJ3cu+rbphbshBVA3SIPHhZxun6BWaP0qTYZyfB/YsSU4J+kYiE3UEYX9GYEAY9bsO89IYZSsTsmYke2EI4KMcjyUFstZ2WTYqCpwJ6CMAuerDEMHP6N3xCO5MVDZfE4sKKHpfSCVQg8ak7IxV+3jZvZi2tUbvZZf/tYORzPeTUSEpcC4cGwwAJd3XKUetaiuDwQVkLa13xotfL0d+Lwc6eZil0e/sureLqvQM6kpWhK7yscu2hKGOzxx/OZClry2Uyc1fL5iWWxvM8Djg+ShoAS5m3Nt0R+mcLdgaylkZvMl9gNWFO1uzlnhGnJQtekVaXCJ9f9QZt5RizJYwM9pMKhSDTZ0vd4y69iZpz3YXhKtkvYX02RIFtTiqsbyU0pXVjK0SpKsb5T+yphacGeZRwQS9QadW9dE6xQsxwwYC//swm5l6ke+DyZrcsc/J+MBHFuN71D2st+jtfywZYg/YT9EcCFOMjqEgfDq7YICgyqfqRGAdVWQy660T5Mi+gYKcHqbYXaaB3VNL2RGIu/uybih/7ynGRM2+0ro9oKJ+fEbdi1alSFFJ0IvA5lU6XHd2CSyizEC9ak+HBLkYeSqOPfItfLH82jRiUtrY5u4fIlioLQTA1aKHax6q8cIf30FCGenhjM6jMj2WpXKI16+1xK9Om9mg94YmFjM+erQh3o/fbPuMbkNaNJQwabupshBK2h3caaE0cDUnDukUFUANHz9q5LVxSkw39GTjGpovxQJiZHbSdeIC/AzFXRVA1ojhzkeuefygdP27Aa+fLjEBn2x8AcdhyP1n8lQyjy0Wnxq9hJDbVXJF93FIdcCmF/JGejgHcr3YZUMY4OFG9gzISDEdgR99fYvKM+A9Pj2JNtCQ5iKCctg5opIEKA1z4RIpRQs0KmXq3JgjWhU1LeOWaX2YzS5rCJWyhxnTJXGk4a/cMvhbLRjFOKcDNNMp8yJrXk1pth7nFOJ4Put6o67jtjbgpgnPuEdelnXEEaReCfJEo2z8zka63kYqbIvcG4W2pKwsA4tT0QctVwltRdYU8YyKuOpQJtKvVdlZL0oxOwxPioTT8fOebRBaecKhQKF4fp9UGlE/GStud6oFSbN685U2TKihvYNmfLRSWQk1Y/APyCRlhOmhFLaIzJxogdlKzpg4AEg/2SRoEZPsqyZThI8uhCIT1qG0UBiZBTjey322fsEEZtNxO5nX/JeBDOVty3sIGs1OKBTjMXSZ+nzU9AIH6dek9Bz+Fix7a90IkQUB5xtgrIYgCH34L4a0o1jWy5bzT9fl53VnbzrICcT/wdRU/GznYYjxlF2uRBKIu7s0glDmsPXCZuorqvJlr2hySgN/hJKOlrCghraUD14pRk4OfRVKULkPQ7betgaCVbsihXplodrAgJ0BdIbf3tKRC8Ghx8+mYAWNXj+PtWBydEjEirCH70SJu53gjF5mNgl2EIaHNK7jqBgXhDr2/7uH97Tl+S9ue+TDlpr067T5JAqU3fOqq+ZS4wqEvqMYRfXd/V2FjNbBpoH8UW6pMuFaM06DBI+6p9O9xBl1eP3Sy3vrBwK2pCwLbi0LdJ2apQTl/51ZXp2xaaUAAh1Fu/bM21V7ENa5sGxpSTYwdSLyPnd8usqECw9W1XDNUI2EmJnp9AelD/joNwuL6U7pydrNUCguCjxHfbd+m0vc/te53GerJlSXbjEWz53f3RjSB90AaA6sOGhi1BFiHYSAjzMdqVSj4M68r+UF3YIuEuoaOzrVrkb5st3tYD0dz+ORhxo44aKEzgohseha5fg0wcTz9orqkeP/FyoOeItG2UwNVAWWGh/lBtXh8c4ILUMolZ1m2DWiYj/pyDvODVnP96u6TvyMC0H8aolgGHn7nDMTi+mCIvNFQYeXdVrRCpWS9aQik=,iv:cxdargXx2a7pET7BjCSZ/yXL7AnxNqncyDQ7CR3E3AA=,tag:2xKXfhBjynDqlvH377lpSA==,type:str]
|
||||||
|
oidc:
|
||||||
|
id: ENC[AES256_GCM,data:b6o2cCCSXJ5bIhA47InfhqwjO5Tjr0Mls+7VT5cunFfEHkdOInxplw==,iv:txren/8jnAUvCI/k9cxN29ZkSgCuPEAo0IpyREf2E9A=,tag:BFOZrM18zUJMEACpLz7KRw==,type:str]
|
||||||
|
secret: ENC[AES256_GCM,data:4HPPbVBOeDjdL81d402Rz6Luk1DZbk8InHfO+Sx/OJIvUf/shkCRyp3hStIDC03bA8HV66GeejvWFte+vQ2b5X3Fl2GXfHQi7brMFVEYfYdR2XRdra0aOeSrHtW5uUn0MpVCRwYDb1JahIWhLyqcYyOpV91xjNiIVg8S3MHr+mo=,iv:c3Q4qPMxZJuoO5XRzUDZh5XJOtff9eiMTlOx+MDMSaE=,tag:07fIkN9YXXJMEV59QEFIag==,type:str]
|
||||||
|
nextcloud:
|
||||||
|
pass: ENC[AES256_GCM,data:U/VI/uHDT1a5O4iAHUVwsz/h,iv:W0hAXBddFKhXmDWHpCB2JhjPPTEGer7721WtIRxg4Zo=,tag:OE4wzibNaaXsbfFuk0dwTA==,type:str]
|
||||||
|
sops:
|
||||||
|
age:
|
||||||
|
- recipient: age1640eg0pnmkruc89m5xguz0m8fek44fl4tzez6qwuzlz6kmapqewsp8esxd
|
||||||
|
enc: |
|
||||||
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBDVFhtcWkreVV6UmJkcW1P
|
||||||
|
WUluUTlOcjYzME1yVVNpVWJldXVsWG1vN3dNCmlvYURNV285anlIa3FrbXRVTERB
|
||||||
|
dXZDWHhEbFp3YWw5d2w4Y09vbUVCNHcKLS0tIEF4ZU5ZdWI5MVBtN0FOUUZDQUR4
|
||||||
|
S0NMRGJSeks0Q0UrVnZmUVdyU2NqVm8KLu2kQpD1fJdU0fTdR9A2cTQzRp+waJ6M
|
||||||
|
8vA+E8xYb2U4d7m0YnwKkGzw0CBPb0BvdEgvWvqpFViftoDwRv5KGA==
|
||||||
|
-----END AGE ENCRYPTED FILE-----
|
||||||
|
lastmodified: "2026-02-01T12:56:37Z"
|
||||||
|
mac: ENC[AES256_GCM,data:clu/WnwHAQaowQ99Z8tNlIKKcVnLHYeYsgQK0meftXgiQKnLyLzqNipwfaU3qjITdm6fB7wY+TcySygpwFbY2f2TKrqAk7RxdnTFa61vQDqMF7rYPG90Ub79P+R5URZI8yjv69Hmrav0Y6z92vH8ItbPSRBLtgrbYZx36IFq0LU=,iv:qzBVA0xATM979tzu6cTvMrX77firvA5K0WU2hoUggoA=,tag:Fm3IqH0GUHBq9Din6ZW6ng==,type:str]
|
||||||
|
unencrypted_suffix: _unencrypted
|
||||||
|
version: 3.11.0
|
||||||
@@ -1,106 +1,110 @@
|
|||||||
{ lib, pkgs, inputs, modulesPath, ... }: {
|
{ inputs, ... }: {
|
||||||
|
|
||||||
imports = with inputs; [
|
flake.nixosModules.iso = { lib, pkgs, modulesPath, ... }: {
|
||||||
|
|
||||||
(modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix")
|
|
||||||
|
|
||||||
home-manager.nixosModules.default
|
|
||||||
|
|
||||||
];
|
imports = with inputs; [
|
||||||
|
|
||||||
config = {
|
(modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix")
|
||||||
|
|
||||||
fonts.fontconfig.enable = lib.mkForce true;
|
home-manager.nixosModules.default
|
||||||
|
|
||||||
fonts.packages = with pkgs; [ nerd-fonts.fira-code ];
|
|
||||||
environment.systemPackages = with pkgs; [ nerd-fonts.fira-code ];
|
|
||||||
|
|
||||||
system.stateVersion = "25.05";
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
];
|
||||||
|
|
||||||
users.users."nathan" = {
|
config = {
|
||||||
hashedPassword = "$y$j9T$F0pn6l4C45lz4a0FTZLqE0$Fc48Ptbmz/3MJCk/Jsaqop4ff.bY3J3GcjhmJx5R7k6";
|
|
||||||
packages = with pkgs; [
|
|
||||||
git
|
|
||||||
nerd-fonts.fira-code
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.nixos.enable = lib.mkForce false;
|
fonts.fontconfig.enable = lib.mkForce true;
|
||||||
|
|
||||||
services.getty.autologinUser = lib.mkForce null;
|
fonts.packages = with pkgs; [ nerd-fonts.fira-code ];
|
||||||
|
environment.systemPackages = with pkgs; [ nerd-fonts.fira-code ];
|
||||||
|
|
||||||
networking = {
|
system.stateVersion = "25.05";
|
||||||
nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
|
||||||
networkmanager.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
|
|
||||||
environment.shells = with pkgs; [ zsh bashInteractive ];
|
users.users."nathan" = {
|
||||||
|
hashedPassword = "$y$j9T$F0pn6l4C45lz4a0FTZLqE0$Fc48Ptbmz/3MJCk/Jsaqop4ff.bY3J3GcjhmJx5R7k6";
|
||||||
|
packages = with pkgs; [
|
||||||
|
git
|
||||||
|
nerd-fonts.fira-code
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
sysconfig = {
|
users.users.nixos.enable = lib.mkForce false;
|
||||||
host = "iso";
|
|
||||||
graphical = true;
|
services.getty.autologinUser = lib.mkForce null;
|
||||||
users = {
|
|
||||||
nathan = {
|
networking = {
|
||||||
extraGroups = [ "wheel" "networkmanager" ];
|
nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
||||||
shell = pkgs.zsh;
|
networkmanager.enable = true;
|
||||||
sshKeys = [
|
};
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsU69CxfQk58CvItPN426h5Alnpb60SH37wet97Vb57 nathan@laptop"
|
|
||||||
];
|
programs.zsh.enable = true;
|
||||||
home-manager = {
|
|
||||||
enable = true;
|
environment.shells = with pkgs; [ zsh bashInteractive ];
|
||||||
standalone = false;
|
|
||||||
extraModules = [
|
sysconfig = {
|
||||||
{
|
host = "iso";
|
||||||
homeconfig = {
|
graphical = true;
|
||||||
minimal = false;
|
users = {
|
||||||
hyprland.enable = true;
|
nathan = {
|
||||||
hyprlock.enable = true;
|
extraGroups = [ "wheel" "networkmanager" ];
|
||||||
wal.enable = true;
|
shell = pkgs.zsh;
|
||||||
mpd.enable = true;
|
sshKeys = [
|
||||||
hyprpanel.enable = true;
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsU69CxfQk58CvItPN426h5Alnpb60SH37wet97Vb57 nathan@laptop"
|
||||||
rofi.enable = true;
|
|
||||||
firefox.enable = true;
|
|
||||||
git.enable = false;
|
|
||||||
nh.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
home-manager = {
|
||||||
|
enable = true;
|
||||||
|
standalone = false;
|
||||||
|
extraModules = [
|
||||||
|
{
|
||||||
|
homeconfig = {
|
||||||
|
minimal = false;
|
||||||
|
hyprland.enable = true;
|
||||||
|
hyprlock.enable = true;
|
||||||
|
wal.enable = true;
|
||||||
|
mpd.enable = true;
|
||||||
|
rofi.enable = true;
|
||||||
|
firefox.enable = true;
|
||||||
|
git.enable = false;
|
||||||
|
nh.enable = true;
|
||||||
|
|
||||||
|
aurora.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
sddm.enable = true;
|
||||||
|
openssh.enable = true;
|
||||||
|
pipewire.enable = true;
|
||||||
|
#kdePlasma6.enable = true;
|
||||||
|
netbird.enable = true;
|
||||||
|
#ollama.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
#steam.enable = true;
|
||||||
|
hyprpanel.enable = true;
|
||||||
|
hyprland.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
virtualization = {
|
||||||
|
|
||||||
|
wyoming = {
|
||||||
|
enable = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
homeassistant = {
|
||||||
|
enable = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
|
||||||
sddm.enable = true;
|
|
||||||
openssh.enable = true;
|
|
||||||
pipewire.enable = true;
|
|
||||||
#kdePlasma6.enable = true;
|
|
||||||
netbird.enable = true;
|
|
||||||
#ollama.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = {
|
|
||||||
#steam.enable = true;
|
|
||||||
hyprpanel.enable = true;
|
|
||||||
hyprland.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
virtualization = {
|
|
||||||
|
|
||||||
wyoming = {
|
|
||||||
enable = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
homeassistant = {
|
|
||||||
enable = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,142 +1,132 @@
|
|||||||
{ config, pkgs, lib, inputs, ... }:
|
{ inputs, ... }: {
|
||||||
|
|
||||||
{
|
flake.nixosModules.jesstop = { config, pkgs, lib, ... }:
|
||||||
|
|
||||||
imports = [
|
{
|
||||||
./hardware-configuration.nix
|
|
||||||
|
|
||||||
#inputs.home-manager.nixosModules.default
|
imports = [
|
||||||
|
#inputs.home-manager.nixosModules.default
|
||||||
|
|
||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
];
|
|
||||||
|
|
||||||
config = {
|
|
||||||
|
|
||||||
nixpkgs.config = {
|
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Bootloader.
|
|
||||||
boot = {
|
|
||||||
loader = {
|
|
||||||
systemd-boot.enable = true;
|
|
||||||
efi.canTouchEfiVariables = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.extraConfig = "DefaultLimitNOFILE=2048";
|
|
||||||
|
|
||||||
hardware = {
|
|
||||||
graphics.enable = true;
|
|
||||||
|
|
||||||
#enable bluetooth
|
|
||||||
bluetooth.enable = true;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
services.pulseaudio.enable = false;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
alsa-utils
|
|
||||||
];
|
];
|
||||||
|
|
||||||
sysconfig.opts = {
|
config = {
|
||||||
sddm.enable = true;
|
|
||||||
openssh.enable = false;
|
|
||||||
steam.enable = true;
|
|
||||||
pipewire.enable = true;
|
|
||||||
hyprpanel.enable = false;
|
|
||||||
hyprland.enable = false;
|
|
||||||
git.enable = false;
|
|
||||||
nh.enable = true;
|
|
||||||
|
|
||||||
};
|
nixpkgs.config = {
|
||||||
|
allowUnfree = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Bootloader.
|
||||||
|
boot = {
|
||||||
|
loader = {
|
||||||
|
systemd-boot.enable = true;
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.extraConfig = "DefaultLimitNOFILE=2048";
|
||||||
|
|
||||||
|
hardware = {
|
||||||
|
graphics.enable = true;
|
||||||
|
|
||||||
|
#enable bluetooth
|
||||||
|
bluetooth.enable = true;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
services.pulseaudio.enable = false;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
alsa-utils
|
||||||
|
];
|
||||||
|
|
||||||
|
sysconfig.opts = {
|
||||||
|
sddm.enable = true;
|
||||||
|
openssh.enable = false;
|
||||||
|
steam.enable = true;
|
||||||
|
pipewire.enable = true;
|
||||||
|
hyprpanel.enable = false;
|
||||||
|
hyprland.enable = false;
|
||||||
|
git.enable = false;
|
||||||
|
nh.enable = true;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
desktopManager.enlightenment.enable = true;
|
desktopManager.enlightenment.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.acpid.enable = true;
|
services.acpid.enable = true;
|
||||||
|
|
||||||
services.displayManager.enable = true;
|
services.displayManager.enable = true;
|
||||||
|
|
||||||
services.avahi = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
ipv4 = true;
|
|
||||||
ipv6 = true;
|
|
||||||
openFirewall = true;
|
|
||||||
nssmdns4 = true;
|
|
||||||
wideArea = true;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
# Enable CUPS to print documents.
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
|
|
||||||
system.stateVersion = "23.05"; # Did you read the comment?
|
system.stateVersion = "23.05"; # Did you read the comment?
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "America/Chicago";
|
time.timeZone = "America/Chicago";
|
||||||
|
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
i18n.extraLocaleSettings = {
|
i18n.extraLocaleSettings = {
|
||||||
LC_ADDRESS = "en_US.UTF-8";
|
LC_ADDRESS = "en_US.UTF-8";
|
||||||
LC_IDENTIFICATION = "en_US.UTF-8";
|
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||||
LC_MEASUREMENT = "en_US.UTF-8";
|
LC_MEASUREMENT = "en_US.UTF-8";
|
||||||
LC_MONETARY = "en_US.UTF-8";
|
LC_MONETARY = "en_US.UTF-8";
|
||||||
LC_NAME = "en_US.UTF-8";
|
LC_NAME = "en_US.UTF-8";
|
||||||
LC_NUMERIC = "en_US.UTF-8";
|
LC_NUMERIC = "en_US.UTF-8";
|
||||||
LC_PAPER = "en_US.UTF-8";
|
LC_PAPER = "en_US.UTF-8";
|
||||||
LC_TELEPHONE = "en_US.UTF-8";
|
LC_TELEPHONE = "en_US.UTF-8";
|
||||||
LC_TIME = "en_US.UTF-8";
|
LC_TIME = "en_US.UTF-8";
|
||||||
};
|
|
||||||
|
|
||||||
networking = {
|
|
||||||
hostName = "jesstop";
|
|
||||||
nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
|
||||||
networkmanager.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
users.users."nickelback" = {
|
|
||||||
isNormalUser = true;
|
|
||||||
description = "Thomas Jefferson";
|
|
||||||
initialPassword = "89453712";
|
|
||||||
#hashedPasswordFile = config.sops.secrets."nathan/pass".path;
|
|
||||||
extraGroups = [
|
|
||||||
"wheel"
|
|
||||||
"networkmanager"
|
|
||||||
]; # Enable ‘sudo’ for the user.
|
|
||||||
openssh.authorizedKeys.keys = [];
|
|
||||||
|
|
||||||
packages = with pkgs; [
|
|
||||||
(writeShellScriptBin "beets" ''
|
|
||||||
bluetoothctl connect A4:16:C0:74:1F:55
|
|
||||||
'')
|
|
||||||
|
|
||||||
spotify
|
|
||||||
gnome-network-displays
|
|
||||||
discord
|
|
||||||
krita
|
|
||||||
rpcs3
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
nix = {
|
|
||||||
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
|
||||||
settings = {
|
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
hostName = "jesstop";
|
||||||
|
nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
||||||
|
networkmanager.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
users.users."nickelback" = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "Thomas Jefferson";
|
||||||
|
initialPassword = "89453712";
|
||||||
|
#hashedPasswordFile = config.sops.secrets."nathan/pass".path;
|
||||||
|
extraGroups = [
|
||||||
|
"wheel"
|
||||||
|
"networkmanager"
|
||||||
|
]; # Enable ‘sudo’ for the user.
|
||||||
|
openssh.authorizedKeys.keys = [];
|
||||||
|
|
||||||
|
packages = with pkgs; [
|
||||||
|
(writeShellScriptBin "beets" ''
|
||||||
|
bluetoothctl connect A4:16:C0:74:1F:55
|
||||||
|
'')
|
||||||
|
|
||||||
|
spotify
|
||||||
|
gnome-network-displays
|
||||||
|
discord
|
||||||
|
krita
|
||||||
|
rpcs3
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
||||||
|
settings = {
|
||||||
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
fonts.packages = with pkgs; [ nerd-fonts.fira-code ];
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
fonts.packages = with pkgs; [ nerd-fonts.fira-code ];
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,39 +1,39 @@
|
|||||||
# 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, ... }:
|
|
||||||
|
|
||||||
{
|
flake.nixosModules.jesstop = { config, lib, pkgs, modulesPath, ... }:
|
||||||
imports =
|
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "vmd" "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ];
|
{
|
||||||
boot.initrd.kernelModules = [ ];
|
imports =
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
boot.extraModulePackages = [ ];
|
];
|
||||||
|
|
||||||
fileSystems."/" =
|
boot.initrd.availableKernelModules = [ "vmd" "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ];
|
||||||
{ device = "/dev/disk/by-uuid/d76defe1-149f-4ea2-a5a1-d9cc2804cf72";
|
boot.initrd.kernelModules = [ ];
|
||||||
fsType = "ext4";
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/d76defe1-149f-4ea2-a5a1-d9cc2804cf72";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/D497-6455";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
|
||||||
{ device = "/dev/disk/by-uuid/D497-6455";
|
|
||||||
fsType = "vfat";
|
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
}
|
}
|
||||||
|
|||||||
7
profiles/laptop/.sops.yaml
Normal file
7
profiles/laptop/.sops.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
keys:
|
||||||
|
- &laptop age1yqgyp2uxz4lzrc9f9ka0mfjl5fr6ahf8nf24nlmran2wulg6fpvq9hyp9q
|
||||||
|
creation_rules:
|
||||||
|
- path_regex: ^secrets.yaml$
|
||||||
|
key_groups:
|
||||||
|
- age:
|
||||||
|
- *laptop
|
||||||
126
profiles/laptop/config.nix
Normal file
126
profiles/laptop/config.nix
Normal file
@@ -0,0 +1,126 @@
|
|||||||
|
{ self, inputs, ... }: {
|
||||||
|
|
||||||
|
flake.nixosConfigurations."laptop" = inputs.nixpkgs.lib.nixosSystem {
|
||||||
|
|
||||||
|
modules = [
|
||||||
|
self.nixosModules.laptop
|
||||||
|
self.nixosModules.default
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.nixosModules.laptop = { config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
config = {
|
||||||
|
|
||||||
|
boot.kernelParams = [ "snd-intel-dspcfg.dsp_driver=1" ];
|
||||||
|
|
||||||
|
hardware = {
|
||||||
|
nvidia = {
|
||||||
|
modesetting.enable = true;
|
||||||
|
powerManagement.enable = true;
|
||||||
|
powerManagement.finegrained = true;
|
||||||
|
open = false;
|
||||||
|
nvidiaSettings = true;
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
|
|
||||||
|
prime = {
|
||||||
|
# Make sure to use the correct Bus ID values for your system!
|
||||||
|
intelBusId = "PCI:0:2:0";
|
||||||
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
|
# WARNING: sync and offload are mutually exclusive.
|
||||||
|
# You can only pick one!!
|
||||||
|
#sync.enable = true;
|
||||||
|
offload = {
|
||||||
|
enable = true;
|
||||||
|
enableOffloadCmd = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
sops = {
|
||||||
|
defaultSopsFile = ./secrets.yaml;
|
||||||
|
secrets = {
|
||||||
|
"nathan/pass" = {
|
||||||
|
neededForUsers = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
remoteBuildKey = {};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.wyoming.satellite.user = "nathan";
|
||||||
|
|
||||||
|
sysconfig = {
|
||||||
|
|
||||||
|
host = "laptop";
|
||||||
|
|
||||||
|
services = {
|
||||||
|
wyoming = {
|
||||||
|
enable = true;
|
||||||
|
satellite = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
remoteBuildClient = true;
|
||||||
|
|
||||||
|
users = {
|
||||||
|
nathan = {
|
||||||
|
isSuperuser = true;
|
||||||
|
extraGroups = [ "networkmanager" ];
|
||||||
|
hashedPasswordFile = config.sops.secrets."nathan/pass".path;
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
home-manager = {
|
||||||
|
enable = true;
|
||||||
|
standalone = false;
|
||||||
|
extraModules = [
|
||||||
|
{
|
||||||
|
homeconfig = {
|
||||||
|
minimal = false;
|
||||||
|
graphical = true;
|
||||||
|
|
||||||
|
virtual-machines = true;
|
||||||
|
hyprland.enable = true;
|
||||||
|
hypridle.enable = true;
|
||||||
|
wal.enable = true;
|
||||||
|
mpd.enable = true;
|
||||||
|
calcurse.enable = true;
|
||||||
|
rofi.enable = true;
|
||||||
|
firefox.enable = true;
|
||||||
|
git.enable = true;
|
||||||
|
nh.enable = true;
|
||||||
|
|
||||||
|
aurora.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
#monitor=eDP-1, addreserved, 40,0,0,0
|
||||||
|
wayland.windowManager.hyprland.extraConfig = ''
|
||||||
|
monitor=eDP-1,1920x1080@60,0x0,1
|
||||||
|
bind = CTRL SHIFT, XF86Launch2, exec, bash -c 'if [[ $(hyprctl monitors | grep 0x0 | sed -n -e "s/\t*1920x1080@//" -e "s/.[1234567890]* at 0x0//p") == 300 ]]; then pkexec --user root /nix/var/nix/profiles/system/bin/switch-to-configuration switch; else pkexec --user root /nix/var/nix/profiles/system/specialisation/docked/bin/switch-to-configuration switch; fi'
|
||||||
|
bind = ALT, Escape, exec, if [[ $(hyprctl monitors | grep 0x0 | sed -n -e "s/\t*1920x1080@//" -e "s/.[1234567890]* at 0x0//p") == 300 ]]; then hyprctl keyword monitor eDP-1,1920x1080@60,0x0,1; else hyprctl keyword monitor eDP-1,1920x1080@300,0x0,1; fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
|
|
||||||
|
|
||||||
|
# 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 = "23.05"; # Did you read the comment?
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,125 +1,120 @@
|
|||||||
{ config, pkgs, lib, home-manager, sops-nix, ... }:
|
{ self, inputs, ... }: {
|
||||||
|
|
||||||
{
|
flake.nixosModules.laptop = { config, pkgs, lib, ... }:
|
||||||
|
|
||||||
imports = [
|
{
|
||||||
home-manager.nixosModules.default
|
|
||||||
|
|
||||||
sops-nix.nixosModules.sops
|
imports = [
|
||||||
];
|
inputs.home-manager.nixosModules.default
|
||||||
|
|
||||||
config = {
|
inputs.sops-nix.nixosModules.sops
|
||||||
|
|
||||||
nixpkgs.config = {
|
self.nixosModules.aurora-greeter
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Bootloader.
|
|
||||||
boot = {
|
|
||||||
kernelPackages = pkgs.linuxKernel.packages.linux_6_18;
|
|
||||||
loader = {
|
|
||||||
systemd-boot.enable = true;
|
|
||||||
efi.canTouchEfiVariables = true;
|
|
||||||
timeout = null;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.settings.Manager.DefaultLimitNOFILE = 2048;
|
|
||||||
|
|
||||||
hardware = {
|
|
||||||
graphics.enable = true;
|
|
||||||
|
|
||||||
firmware = with pkgs; [
|
|
||||||
sof-firmware
|
|
||||||
];
|
|
||||||
|
|
||||||
#enable bluetooth
|
|
||||||
bluetooth.enable = true;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
services.pulseaudio.enable = false;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
alsa-utils
|
|
||||||
];
|
];
|
||||||
|
|
||||||
sysconfig = with lib; {
|
config = {
|
||||||
remoteBuildClient = mkDefault true;
|
|
||||||
graphical = mkDefault true;
|
nixpkgs.config = {
|
||||||
|
allowUnfree = true;
|
||||||
services = {
|
|
||||||
sddm.enable = mkDefault true;
|
|
||||||
openssh.enable = mkDefault false;
|
|
||||||
pipewire.enable = mkDefault true;
|
|
||||||
netbird.enable = mkDefault true;
|
|
||||||
ollama.enable = mkDefault true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
# Bootloader.
|
||||||
steam.enable = mkDefault true;
|
boot = {
|
||||||
hyprpanel.enable = mkDefault true;
|
kernelPackages = pkgs.linuxKernel.packages.linux_6_18;
|
||||||
hyprland.enable = mkDefault true;
|
loader = {
|
||||||
};
|
systemd-boot.enable = true;
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
timeout = null;
|
||||||
containers = {
|
|
||||||
|
|
||||||
wyoming = {
|
|
||||||
enable = mkDefault false;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
virtual-machines = {
|
systemd.settings.Manager.DefaultLimitNOFILE = 2048;
|
||||||
enable = true;
|
|
||||||
|
hardware = {
|
||||||
|
graphics.enable = true;
|
||||||
|
|
||||||
|
firmware = with pkgs; [
|
||||||
|
sof-firmware
|
||||||
|
];
|
||||||
|
|
||||||
|
#enable bluetooth
|
||||||
|
bluetooth.enable = true;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.partition-manager.enable = true;
|
||||||
|
services.pulseaudio.enable = false;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
alsa-utils
|
||||||
|
];
|
||||||
|
|
||||||
|
sysconfig = with lib; {
|
||||||
|
remoteBuildClient = mkDefault true;
|
||||||
|
graphical = mkDefault true;
|
||||||
|
|
||||||
|
services = {
|
||||||
|
sddm.enable = mkDefault true;
|
||||||
|
openssh.enable = mkDefault false;
|
||||||
|
pipewire.enable = mkDefault true;
|
||||||
|
netbird.enable = mkDefault true;
|
||||||
|
ollama.enable = mkDefault true;
|
||||||
|
avahi.enable = mkDefault true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
steam.enable = mkDefault true;
|
||||||
|
hyprland.enable = mkDefault true;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
containers = {
|
||||||
|
|
||||||
|
wyoming = {
|
||||||
|
enable = mkDefault false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
virtual-machines = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.displayManager.enable = true;
|
services.displayManager.enable = true;
|
||||||
|
|
||||||
services.avahi = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
ipv4 = true;
|
|
||||||
ipv6 = true;
|
|
||||||
openFirewall = true;
|
|
||||||
nssmdns4 = true;
|
|
||||||
wideArea = true;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
environment.shells = with pkgs; [ zsh bashInteractive ];
|
environment.shells = with pkgs; [ zsh bashInteractive ];
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
# Enable CUPS to print documents.
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
|
|
||||||
programs.adb.enable = true;
|
programs.adb.enable = true;
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
nameservers = [
|
nameservers = [
|
||||||
"1.1.1.1"
|
"1.1.1.1"
|
||||||
"1.0.0.1"
|
"1.0.0.1"
|
||||||
];
|
];
|
||||||
networkmanager = {
|
networkmanager = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dns = "none";
|
dns = "none";
|
||||||
|
};
|
||||||
|
useDHCP = false;
|
||||||
|
dhcpcd.enable = false;
|
||||||
};
|
};
|
||||||
useDHCP = false;
|
|
||||||
dhcpcd.enable = false;
|
|
||||||
|
fonts.packages = with pkgs; [ nerd-fonts.fira-code ];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
fonts.packages = with pkgs; [ nerd-fonts.fira-code ];
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
39
profiles/laptop/hardware-configuration.nix
Normal file
39
profiles/laptop/hardware-configuration.nix
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
{ ... }: {
|
||||||
|
|
||||||
|
flake.nixosModules.laptop = { config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/78c0964d-c09e-4e31-8a73-eb719d79917a";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/AE5E-AC86";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
};
|
||||||
|
}
|
||||||
18
profiles/laptop/secrets.yaml
Normal file
18
profiles/laptop/secrets.yaml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
nathan:
|
||||||
|
pass: ENC[AES256_GCM,data:H/duNPyclGoCF/Z90TQcqaUymowHOLRDmcfDxSubNGdmijknsCq+UH5PaWUmXGZ7uZqcpYWBcsVbYfQO/98OHH/kbwAFD/Hgkw==,iv:74M2PQqVzAgMXA8Z4RVLJKawt0Lzh94IKbn8YCTx3tY=,tag:B/xgA4mrhWEccaXQ+qvjCA==,type:str]
|
||||||
|
remoteBuildKey: ENC[AES256_GCM,data:CN7AyOCV4iYzYrwVh2Af5YB0nwR4raXfj5FbbeIZg5Bfha0sUPnLAG+oqVUyzVQA3yftFhfwPGaALOyb6VlT13pTifG+uEoyiq1dQP6dimlmk/p/6kVtg4aiETJ/61EUeQF/HTVTZ3F7akgQRsKNFQYbF2srcurPQSY0Q2gjlkkFA3A3aLoN2LrkFPJvtnNP6SJzXDFHVOTPmbc/DvF9UbMiYu0viIlfiPqeBs26lAqcOWhrYlOxKqEL2IoP3kADDncedxT42c1rCPB/2kGvKg+mXSlaIH3a0Hb8hrnjVUB0edyqYnNCurVhPF8mg2yoqrtyaxRkZKvUsa5LBZwS+iL9bYQdU/4hxT9c7wRC+ZtWkwF4l/gy8Ggc+VuB+YT9JUCJY96o8f2wKFup0BS+oiYLGJKpcOLMFrPJLEtOMrqPN/Z6+gZ9LVbhlSliIV/yUTJAa26el0w6tP9Ebs6tHiFakpkMahsBbRxmHBmqkHW5zfa5YpvD5Ii/EC+F8Vb/Efn6LkBZBwSB6K33NSOy,iv:4i0bGQe7wiDSvmygY2VNSEhuYfYIi9YY1g7qLgDTcMo=,tag:MJqOovOcZ97COsVjxZus8w==,type:str]
|
||||||
|
sops:
|
||||||
|
age:
|
||||||
|
- recipient: age1yqgyp2uxz4lzrc9f9ka0mfjl5fr6ahf8nf24nlmran2wulg6fpvq9hyp9q
|
||||||
|
enc: |
|
||||||
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSB2MEIyRjR0a25UU3hnR2Zw
|
||||||
|
WXFaaXJYNWFSMmZsR1FsYVB1WlBkZWptSHhzCkRGRitnNkc3MEtjV05KRXlXT3RR
|
||||||
|
TVhnVlpUdzFiSEwxbHNOT3dyQ0dzbG8KLS0tIElMc3g4SHRxZTVnOCtVcktRb25D
|
||||||
|
Y2ZpR25VNGVoMi9ibW8wbW5rYTQ3R00Ka6/KLXSSRP9WJDV0RBHHS5nALfd/3xDu
|
||||||
|
y+QS+Ueh56kQT2zbYpYBRIPDgI3LZgwlTifQCDJ9ZPq0LGgu4XbEqQ==
|
||||||
|
-----END AGE ENCRYPTED FILE-----
|
||||||
|
lastmodified: "2025-08-23T03:46:50Z"
|
||||||
|
mac: ENC[AES256_GCM,data:QJLMqnmkrgtTqqmLN9NCfV8PPm5N/F0gtGw/XlX+nnfbesGVeYubSjtHmYWmY7ha41jEvLYu8rmIXaxDepfogyOf4wzuRPLkJxO7Wu0UVdr5uZlHNrcxZh4Ex6YGgg8Lbcjs0iVCev66lWfuhuxuvPOKsGLZvoNTq0V1hLpo/Fw=,iv:VFrL0L6tC1JvWM3BOJP4Dh+q1xSMBecCtPnNcY/loAU=,tag:p5VmBaGPTxyTmm1Ha9Le3Q==,type:str]
|
||||||
|
unencrypted_suffix: _unencrypted
|
||||||
|
version: 3.10.2
|
||||||
@@ -1,121 +1,124 @@
|
|||||||
{ pkgs, inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
|
|
||||||
imports = with inputs; [
|
flake.nixosModules.live = { pkgs, ... }: {
|
||||||
|
|
||||||
disko.nixosModules.default
|
|
||||||
|
|
||||||
(import ./disko.nix { device = "/dev/mmcblk0"; })
|
imports = with inputs; [
|
||||||
|
|
||||||
sops-nix.nixosModules.sops
|
disko.nixosModules.default
|
||||||
|
|
||||||
home-manager.nixosModules.default
|
(import ./disko.nix { device = "/dev/mmcblk0"; })
|
||||||
|
|
||||||
];
|
sops-nix.nixosModules.sops
|
||||||
|
|
||||||
config = {
|
home-manager.nixosModules.default
|
||||||
|
|
||||||
hardware.enableRedistributableFirmware = true;
|
];
|
||||||
hardware.enableAllHardware = true;
|
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
|
||||||
|
|
||||||
environment.shells = with pkgs; [ zsh bashInteractive ];
|
config = {
|
||||||
|
|
||||||
networking = {
|
hardware.enableRedistributableFirmware = true;
|
||||||
nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
hardware.enableAllHardware = true;
|
||||||
networkmanager.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
boot = {
|
environment.shells = with pkgs; [ zsh bashInteractive ];
|
||||||
loader = {
|
|
||||||
systemd-boot.enable = true;
|
networking = {
|
||||||
efi.canTouchEfiVariables = true;
|
nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
||||||
|
networkmanager.enable = true;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
users.users."nathan" = {
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
hashedPassword = "$y$j9T$F0pn6l4C45lz4a0FTZLqE0$Fc48Ptbmz/3MJCk/Jsaqop4ff.bY3J3GcjhmJx5R7k6";
|
|
||||||
packages = with pkgs; [
|
|
||||||
git
|
|
||||||
nerd-fonts.fira-code
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
sops = {
|
boot = {
|
||||||
age.keyFile = "/var/lib/sops/age/keys.txt";
|
loader = {
|
||||||
defaultSopsFile = ./secrets.yaml;
|
systemd-boot.enable = true;
|
||||||
defaultSopsFormat = "yaml";
|
efi.canTouchEfiVariables = true;
|
||||||
#secrets."nathan/pass".neededForUsers = true;
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
sysconfig = {
|
users.users."nathan" = {
|
||||||
#remoteBuildClient = true;
|
hashedPassword = "$y$j9T$F0pn6l4C45lz4a0FTZLqE0$Fc48Ptbmz/3MJCk/Jsaqop4ff.bY3J3GcjhmJx5R7k6";
|
||||||
host = "live";
|
packages = with pkgs; [
|
||||||
graphical = true;
|
git
|
||||||
users = {
|
nerd-fonts.fira-code
|
||||||
nathan = {
|
];
|
||||||
extraGroups = [ "wheel" "networkmanager" ];
|
};
|
||||||
#hashedPasswordFile = config.sops.secrets."nathan/pass".path;
|
|
||||||
shell = pkgs.zsh;
|
sops = {
|
||||||
sshKeys = [
|
age.keyFile = "/var/lib/sops/age/keys.txt";
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsU69CxfQk58CvItPN426h5Alnpb60SH37wet97Vb57 nathan@laptop"
|
defaultSopsFile = ./secrets.yaml;
|
||||||
];
|
defaultSopsFormat = "yaml";
|
||||||
home-manager = {
|
#secrets."nathan/pass".neededForUsers = true;
|
||||||
enable = true;
|
};
|
||||||
standalone = false;
|
|
||||||
extraModules = [
|
sysconfig = {
|
||||||
{
|
#remoteBuildClient = true;
|
||||||
homeconfig = {
|
host = "live";
|
||||||
minimal = false;
|
graphical = true;
|
||||||
hyprland.enable = true;
|
users = {
|
||||||
hyprlock.enable = true;
|
nathan = {
|
||||||
wal.enable = true;
|
extraGroups = [ "wheel" "networkmanager" ];
|
||||||
mpd.enable = true;
|
#hashedPasswordFile = config.sops.secrets."nathan/pass".path;
|
||||||
hyprpanel.enable = true;
|
shell = pkgs.zsh;
|
||||||
calcurse.enable = true;
|
sshKeys = [
|
||||||
rofi.enable = true;
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsU69CxfQk58CvItPN426h5Alnpb60SH37wet97Vb57 nathan@laptop"
|
||||||
firefox.enable = true;
|
|
||||||
#git.enable = true;
|
|
||||||
nh.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
home-manager = {
|
||||||
|
enable = true;
|
||||||
|
standalone = false;
|
||||||
|
extraModules = [
|
||||||
|
{
|
||||||
|
homeconfig = {
|
||||||
|
minimal = false;
|
||||||
|
hyprland.enable = true;
|
||||||
|
hyprlock.enable = true;
|
||||||
|
wal.enable = true;
|
||||||
|
mpd.enable = true;
|
||||||
|
calcurse.enable = true;
|
||||||
|
rofi.enable = true;
|
||||||
|
firefox.enable = true;
|
||||||
|
#git.enable = true;
|
||||||
|
nh.enable = true;
|
||||||
|
aurora.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
sddm.enable = true;
|
||||||
|
openssh.enable = true;
|
||||||
|
pipewire.enable = true;
|
||||||
|
#kdePlasma6.enable = true;
|
||||||
|
netbird.enable = true;
|
||||||
|
#ollama.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
#steam.enable = true;
|
||||||
|
hyprpanel.enable = true;
|
||||||
|
hyprland.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
virtualization = {
|
||||||
|
|
||||||
|
wyoming = {
|
||||||
|
enable = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
homeassistant = {
|
||||||
|
enable = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
system.stateVersion = "25.05";
|
||||||
sddm.enable = true;
|
|
||||||
openssh.enable = true;
|
|
||||||
pipewire.enable = true;
|
|
||||||
#kdePlasma6.enable = true;
|
|
||||||
netbird.enable = true;
|
|
||||||
#ollama.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = {
|
fonts.packages = with pkgs; [ nerd-fonts.fira-code ];
|
||||||
#steam.enable = true;
|
|
||||||
hyprpanel.enable = true;
|
|
||||||
hyprland.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
virtualization = {
|
|
||||||
|
|
||||||
wyoming = {
|
|
||||||
enable = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
homeassistant = {
|
|
||||||
enable = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "25.05";
|
|
||||||
|
|
||||||
fonts.packages = with pkgs; [ nerd-fonts.fira-code ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,66 +1,69 @@
|
|||||||
{
|
{ ... }: {
|
||||||
device1 ? throw "Set this to your disk device, e.g. /dev/sda",
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
disko.devices = {
|
|
||||||
disk = {
|
|
||||||
main = {
|
|
||||||
device = device1;
|
|
||||||
type = "disk";
|
|
||||||
content = {
|
|
||||||
type = "gpt";
|
|
||||||
partitions = {
|
|
||||||
boot = {
|
|
||||||
name = "boot";
|
|
||||||
size = "1M";
|
|
||||||
type = "EF02";
|
|
||||||
};
|
|
||||||
esp = {
|
|
||||||
name = "ESP";
|
|
||||||
size = "500M";
|
|
||||||
type = "EF00";
|
|
||||||
content = {
|
|
||||||
type = "filesystem";
|
|
||||||
format = "vfat";
|
|
||||||
mountpoint = "/boot";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
root = {
|
|
||||||
name = "root";
|
|
||||||
size = "100%";
|
|
||||||
content = {
|
|
||||||
type = "lvm_pv";
|
|
||||||
vg = "root_vg";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
lvm_vg = {
|
|
||||||
root_vg = {
|
|
||||||
type = "lvm_vg";
|
|
||||||
lvs = {
|
|
||||||
root = {
|
|
||||||
size = "100%FREE";
|
|
||||||
content = {
|
|
||||||
type = "btrfs";
|
|
||||||
extraArgs = ["-f"];
|
|
||||||
|
|
||||||
subvolumes = {
|
flake.diskoConfigurations.live = {
|
||||||
"/root" = {
|
device1 ? throw "Set this to your disk device, e.g. /dev/sda",
|
||||||
mountpoint = "/";
|
...
|
||||||
};
|
}: {
|
||||||
|
disko.devices = {
|
||||||
|
disk = {
|
||||||
|
main = {
|
||||||
|
device = device1;
|
||||||
|
type = "disk";
|
||||||
|
content = {
|
||||||
|
type = "gpt";
|
||||||
|
partitions = {
|
||||||
|
boot = {
|
||||||
|
name = "boot";
|
||||||
|
size = "1M";
|
||||||
|
type = "EF02";
|
||||||
|
};
|
||||||
|
esp = {
|
||||||
|
name = "ESP";
|
||||||
|
size = "500M";
|
||||||
|
type = "EF00";
|
||||||
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "vfat";
|
||||||
|
mountpoint = "/boot";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
root = {
|
||||||
|
name = "root";
|
||||||
|
size = "100%";
|
||||||
|
content = {
|
||||||
|
type = "lvm_pv";
|
||||||
|
vg = "root_vg";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
lvm_vg = {
|
||||||
|
root_vg = {
|
||||||
|
type = "lvm_vg";
|
||||||
|
lvs = {
|
||||||
|
root = {
|
||||||
|
size = "100%FREE";
|
||||||
|
content = {
|
||||||
|
type = "btrfs";
|
||||||
|
extraArgs = ["-f"];
|
||||||
|
|
||||||
"/nix" = {
|
subvolumes = {
|
||||||
mountOptions = ["subvol=nix" "noatime"];
|
"/root" = {
|
||||||
mountpoint = "/nix";
|
mountpoint = "/";
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
"/nix" = {
|
||||||
};
|
mountOptions = ["subvol=nix" "noatime"];
|
||||||
};
|
mountpoint = "/nix";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,145 +1,138 @@
|
|||||||
{ config, pkgs, inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
|
|
||||||
imports = [
|
flake.nixosModules.pi4 = { config, pkgs, ... }: {
|
||||||
./hardware-configuration.nix
|
|
||||||
|
|
||||||
inputs.disko.nixosModules.default
|
|
||||||
|
|
||||||
(import ./disko.nix { device1 = "/dev/mmcblk0"; })
|
|
||||||
|
|
||||||
inputs.home-manager.nixosModules.default
|
|
||||||
|
|
||||||
inputs.sops-nix.nixosModules.sops
|
|
||||||
];
|
|
||||||
|
|
||||||
config = {
|
imports = [
|
||||||
|
./hardware-configuration.nix
|
||||||
|
|
||||||
sysconfig = {
|
inputs.disko.nixosModules.default
|
||||||
remoteBuildClient = true;
|
|
||||||
|
|
||||||
users = {
|
(import ./disko.nix { device1 = "/dev/mmcblk0"; })
|
||||||
nathan = {
|
|
||||||
hashedPasswordFile = config.sops.secrets."nathan/pass".path;
|
inputs.home-manager.nixosModules.default
|
||||||
shell = pkgs.zsh;
|
|
||||||
sshKeys = [
|
inputs.sops-nix.nixosModules.sops
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsU69CxfQk58CvItPN426h5Alnpb60SH37wet97Vb57 nathan@laptop"
|
];
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEnUhN2uHwAJF/SLRX3wlGRmfhV3zpP88JQAYB+gh8jW nathan@localhost"
|
|
||||||
];
|
config = {
|
||||||
extraGroups = [
|
|
||||||
"wheel"
|
sysconfig = {
|
||||||
"networkmanager"
|
remoteBuildClient = true;
|
||||||
"gpio"
|
|
||||||
"spi"
|
users = {
|
||||||
"audio"
|
nathan = {
|
||||||
"pulse"
|
hashedPasswordFile = config.sops.secrets."nathan/pass".path;
|
||||||
"pulse-access"
|
shell = pkgs.zsh;
|
||||||
];
|
sshKeys = [
|
||||||
home-manager = {
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsU69CxfQk58CvItPN426h5Alnpb60SH37wet97Vb57 nathan@laptop"
|
||||||
enable = true;
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEnUhN2uHwAJF/SLRX3wlGRmfhV3zpP88JQAYB+gh8jW nathan@localhost"
|
||||||
standalone = false;
|
|
||||||
extraModules = [
|
|
||||||
{
|
|
||||||
homeconfig = {
|
|
||||||
scripts.enable = false;
|
|
||||||
minimal = true;
|
|
||||||
mpd.enable = true;
|
|
||||||
git.enable = true;
|
|
||||||
nh.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
extraGroups = [
|
||||||
|
"wheel"
|
||||||
|
"networkmanager"
|
||||||
|
"gpio"
|
||||||
|
"spi"
|
||||||
|
"audio"
|
||||||
|
"pulse"
|
||||||
|
"pulse-access"
|
||||||
|
];
|
||||||
|
home-manager = {
|
||||||
|
enable = true;
|
||||||
|
standalone = false;
|
||||||
|
extraModules = [
|
||||||
|
{
|
||||||
|
homeconfig = {
|
||||||
|
scripts.enable = false;
|
||||||
|
minimal = true;
|
||||||
|
mpd.enable = true;
|
||||||
|
git.enable = true;
|
||||||
|
nh.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
openssh.enable = true;
|
||||||
|
#pipewire.enable = true;
|
||||||
|
netbird.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
loader = {
|
||||||
|
grub.enable = false;
|
||||||
|
generic-extlinux-compatible.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
hostName = "pi4";
|
||||||
|
nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
||||||
|
networkmanager.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
time.timeZone = "America/Chicago";
|
||||||
|
|
||||||
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
|
i18n.extraLocaleSettings = {
|
||||||
|
LC_ADDRESS = "en_US.UTF-8";
|
||||||
|
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||||
|
LC_MEASUREMENT = "en_US.UTF-8";
|
||||||
|
LC_MONETARY = "en_US.UTF-8";
|
||||||
|
LC_NAME = "en_US.UTF-8";
|
||||||
|
LC_NUMERIC = "en_US.UTF-8";
|
||||||
|
LC_PAPER = "en_US.UTF-8";
|
||||||
|
LC_TELEPHONE = "en_US.UTF-8";
|
||||||
|
LC_TIME = "en_US.UTF-8";
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware = {
|
||||||
|
bluetooth.enable = true;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
|
environment.shells = with pkgs; [ zsh ];
|
||||||
|
|
||||||
|
users = {
|
||||||
|
groups.gpio = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
openssh.enable = true;
|
udev.extraRules = ''
|
||||||
#pipewire.enable = true;
|
SUBSYSTEM=="bcm2835-gpiomem", KERNEL=="gpiomem", GROUP="gpio",MODE="0660"
|
||||||
netbird.enable = true;
|
SUBSYSTEM=="gpio", KERNEL=="gpiochip*", ACTION=="add", RUN+="${pkgs.bash}/bin/bash -c 'chown root:gpio /sys/class/gpio/export /sys/class/gpio/unexport ; chmod 220 /sys/class/gpio/export /sys/class/gpio/unexport'"
|
||||||
};
|
SUBSYSTEM=="gpio", KERNEL=="gpio*", ACTION=="add",RUN+="${pkgs.bash}/bin/bash -c 'chown root:gpio /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value ; chmod 660 /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value'"
|
||||||
};
|
'';
|
||||||
|
|
||||||
boot = {
|
pulseaudio = {
|
||||||
loader = {
|
enable = true;
|
||||||
grub.enable = false;
|
extraConfig = ''
|
||||||
generic-extlinux-compatible.enable = true;
|
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1
|
||||||
};
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
|
||||||
hostName = "pi4";
|
|
||||||
nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
|
||||||
networkmanager.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
time.timeZone = "America/Chicago";
|
|
||||||
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
|
|
||||||
i18n.extraLocaleSettings = {
|
|
||||||
LC_ADDRESS = "en_US.UTF-8";
|
|
||||||
LC_IDENTIFICATION = "en_US.UTF-8";
|
|
||||||
LC_MEASUREMENT = "en_US.UTF-8";
|
|
||||||
LC_MONETARY = "en_US.UTF-8";
|
|
||||||
LC_NAME = "en_US.UTF-8";
|
|
||||||
LC_NUMERIC = "en_US.UTF-8";
|
|
||||||
LC_PAPER = "en_US.UTF-8";
|
|
||||||
LC_TELEPHONE = "en_US.UTF-8";
|
|
||||||
LC_TIME = "en_US.UTF-8";
|
|
||||||
};
|
|
||||||
|
|
||||||
hardware = {
|
|
||||||
bluetooth.enable = true;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
|
||||||
|
|
||||||
environment.shells = with pkgs; [ zsh ];
|
|
||||||
|
|
||||||
users = {
|
|
||||||
groups.gpio = {};
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
|
||||||
udev.extraRules = ''
|
|
||||||
SUBSYSTEM=="bcm2835-gpiomem", KERNEL=="gpiomem", GROUP="gpio",MODE="0660"
|
|
||||||
SUBSYSTEM=="gpio", KERNEL=="gpiochip*", ACTION=="add", RUN+="${pkgs.bash}/bin/bash -c 'chown root:gpio /sys/class/gpio/export /sys/class/gpio/unexport ; chmod 220 /sys/class/gpio/export /sys/class/gpio/unexport'"
|
|
||||||
SUBSYSTEM=="gpio", KERNEL=="gpio*", ACTION=="add",RUN+="${pkgs.bash}/bin/bash -c 'chown root:gpio /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value ; chmod 660 /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value'"
|
|
||||||
'';
|
|
||||||
|
|
||||||
pulseaudio = {
|
|
||||||
enable = true;
|
|
||||||
extraConfig = ''
|
|
||||||
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
services.avahi = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
ipv4 = true;
|
|
||||||
ipv6 = true;
|
|
||||||
openFirewall = true;
|
|
||||||
nssmdns4 = true;
|
|
||||||
wideArea = true;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sops = {
|
||||||
|
age.keyFile = "/var/lib/sops/age/keys.txt";
|
||||||
|
defaultSopsFile = ./secrets.yaml;
|
||||||
|
defaultSopsFormat = "yaml";
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
fonts.packages = with pkgs; [ nerd-fonts.fira-code ];
|
||||||
|
|
||||||
|
sound.enable = true;
|
||||||
|
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
|
system.stateVersion = "25.05";
|
||||||
};
|
};
|
||||||
|
|
||||||
sops = {
|
|
||||||
age.keyFile = "/var/lib/sops/age/keys.txt";
|
|
||||||
defaultSopsFile = ./secrets.yaml;
|
|
||||||
defaultSopsFormat = "yaml";
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
fonts.packages = with pkgs; [ nerd-fonts.fira-code ];
|
|
||||||
|
|
||||||
sound.enable = true;
|
|
||||||
|
|
||||||
security.rtkit.enable = true;
|
|
||||||
|
|
||||||
system.stateVersion = "25.05";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,66 +1,69 @@
|
|||||||
{
|
{ ... }: {
|
||||||
device1 ? throw "Set this to your disk device, e.g. /dev/sda",
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
disko.devices = {
|
|
||||||
disk = {
|
|
||||||
main = {
|
|
||||||
device = device1;
|
|
||||||
type = "disk";
|
|
||||||
content = {
|
|
||||||
type = "gpt";
|
|
||||||
partitions = {
|
|
||||||
boot = {
|
|
||||||
name = "boot";
|
|
||||||
size = "1M";
|
|
||||||
type = "EF02";
|
|
||||||
};
|
|
||||||
esp = {
|
|
||||||
name = "ESP";
|
|
||||||
size = "500M";
|
|
||||||
type = "EF00";
|
|
||||||
content = {
|
|
||||||
type = "filesystem";
|
|
||||||
format = "vfat";
|
|
||||||
mountpoint = "/boot";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
root = {
|
|
||||||
name = "root";
|
|
||||||
size = "100%";
|
|
||||||
content = {
|
|
||||||
type = "lvm_pv";
|
|
||||||
vg = "root_vg";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
lvm_vg = {
|
|
||||||
root_vg = {
|
|
||||||
type = "lvm_vg";
|
|
||||||
lvs = {
|
|
||||||
root = {
|
|
||||||
size = "100%FREE";
|
|
||||||
content = {
|
|
||||||
type = "btrfs";
|
|
||||||
extraArgs = ["-f"];
|
|
||||||
|
|
||||||
subvolumes = {
|
flake.diskoConfigurations.pi4 = {
|
||||||
"/root" = {
|
device1 ? throw "Set this to your disk device, e.g. /dev/sda",
|
||||||
mountpoint = "/";
|
...
|
||||||
};
|
}: {
|
||||||
|
disko.devices = {
|
||||||
|
disk = {
|
||||||
|
main = {
|
||||||
|
device = device1;
|
||||||
|
type = "disk";
|
||||||
|
content = {
|
||||||
|
type = "gpt";
|
||||||
|
partitions = {
|
||||||
|
boot = {
|
||||||
|
name = "boot";
|
||||||
|
size = "1M";
|
||||||
|
type = "EF02";
|
||||||
|
};
|
||||||
|
esp = {
|
||||||
|
name = "ESP";
|
||||||
|
size = "500M";
|
||||||
|
type = "EF00";
|
||||||
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "vfat";
|
||||||
|
mountpoint = "/boot";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
root = {
|
||||||
|
name = "root";
|
||||||
|
size = "100%";
|
||||||
|
content = {
|
||||||
|
type = "lvm_pv";
|
||||||
|
vg = "root_vg";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
lvm_vg = {
|
||||||
|
root_vg = {
|
||||||
|
type = "lvm_vg";
|
||||||
|
lvs = {
|
||||||
|
root = {
|
||||||
|
size = "100%FREE";
|
||||||
|
content = {
|
||||||
|
type = "btrfs";
|
||||||
|
extraArgs = ["-f"];
|
||||||
|
|
||||||
"/nix" = {
|
subvolumes = {
|
||||||
mountOptions = ["subvol=nix" "noatime"];
|
"/root" = {
|
||||||
mountpoint = "/nix";
|
mountpoint = "/";
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
"/nix" = {
|
||||||
};
|
mountOptions = ["subvol=nix" "noatime"];
|
||||||
};
|
mountpoint = "/nix";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,27 +1,27 @@
|
|||||||
# 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, ... }:
|
|
||||||
|
|
||||||
{
|
flake.nixosModules.pi4 = { config, lib, pkgs, modulesPath, ... }:
|
||||||
imports =
|
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" ];
|
{
|
||||||
boot.initrd.kernelModules = [ ];
|
imports =
|
||||||
boot.kernelModules = [ ];
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
boot.extraModulePackages = [ ];
|
];
|
||||||
|
|
||||||
swapDevices = [ ];
|
boot.initrd.availableKernelModules = [ "xhci_pci" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
swapDevices = [ ];
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.end0.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.end0.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,115 +1,112 @@
|
|||||||
{ config, lib, pkgs, nixpkgs, ... }: {
|
{ inputs, ... }: {
|
||||||
|
|
||||||
imports = let
|
flake.nixosModules.default = { config, lib, pkgs, ... }: {
|
||||||
dir = builtins.readDir ./.;
|
|
||||||
in builtins.map (x: ./${x}) (builtins.filter
|
|
||||||
(file: (dir.${file} == "directory"))
|
|
||||||
(builtins.attrNames dir)
|
|
||||||
);
|
|
||||||
|
|
||||||
options.sysconfig = with lib; {
|
options.sysconfig = with lib; {
|
||||||
host = mkOption {
|
host = mkOption {
|
||||||
type = with types; nullOr str;
|
type = with types; nullOr str;
|
||||||
default = null;
|
default = null;
|
||||||
};
|
|
||||||
graphical = mkOption {
|
|
||||||
type = with types; bool;
|
|
||||||
default = config.hardware.graphics.enable;
|
|
||||||
};
|
|
||||||
remoteBuildHost = mkOption {
|
|
||||||
type = with types; bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
remoteBuildClient = mkOption {
|
|
||||||
type = with types; bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = {
|
|
||||||
|
|
||||||
networking.hostName = lib.mkDefault config.sysconfig.host;
|
|
||||||
|
|
||||||
nix = {
|
|
||||||
nixPath = [ "nixpkgs=${nixpkgs}" ];
|
|
||||||
channel.enable = false;
|
|
||||||
settings = {
|
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
builders-use-substitutes = lib.mkIf config.sysconfig.remoteBuildClient true;
|
|
||||||
trusted-users = lib.mkIf config.sysconfig.remoteBuildHost [ "remote-builder" ];
|
|
||||||
|
|
||||||
substituters = lib.mkIf config.sysconfig.programs.hyprland.enable ["https://hyprland.cachix.org"];
|
|
||||||
trusted-substituters = lib.mkIf config.sysconfig.programs.hyprland.enable ["https://hyprland.cachix.org"];
|
|
||||||
trusted-public-keys = lib.mkIf config.sysconfig.programs.hyprland.enable ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
|
|
||||||
};
|
};
|
||||||
|
graphical = mkOption {
|
||||||
|
type = with types; bool;
|
||||||
|
default = config.hardware.graphics.enable;
|
||||||
|
};
|
||||||
|
remoteBuildHost = mkOption {
|
||||||
|
type = with types; bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
remoteBuildClient = mkOption {
|
||||||
|
type = with types; bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
distributedBuilds = config.sysconfig.remoteBuildClient;
|
config = {
|
||||||
buildMachines = lib.mkIf config.sysconfig.remoteBuildClient [
|
|
||||||
|
networking.hostName = lib.mkDefault config.sysconfig.host;
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
||||||
|
channel.enable = false;
|
||||||
|
settings = {
|
||||||
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
builders-use-substitutes = lib.mkIf config.sysconfig.remoteBuildClient true;
|
||||||
|
trusted-users = lib.mkIf config.sysconfig.remoteBuildHost [ "remote-builder" ];
|
||||||
|
|
||||||
|
substituters = lib.mkIf config.sysconfig.programs.hyprland.enable ["https://hyprland.cachix.org"];
|
||||||
|
trusted-substituters = lib.mkIf config.sysconfig.programs.hyprland.enable ["https://hyprland.cachix.org"];
|
||||||
|
trusted-public-keys = lib.mkIf config.sysconfig.programs.hyprland.enable ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
|
||||||
|
};
|
||||||
|
|
||||||
|
distributedBuilds = config.sysconfig.remoteBuildClient;
|
||||||
|
buildMachines = lib.mkIf config.sysconfig.remoteBuildClient [
|
||||||
{
|
{
|
||||||
hostName = "esotericbytes.com";
|
hostName = "esotericbytes.com";
|
||||||
sshUser = "remote-builder";
|
sshUser = "remote-builder";
|
||||||
sshKey = config.sops.secrets."remoteBuildKey".path;
|
sshKey = config.sops.secrets."remoteBuildKey".path;
|
||||||
supportedFeatures = [
|
supportedFeatures = [
|
||||||
"nixos-test"
|
"nixos-test"
|
||||||
"benchmark"
|
"benchmark"
|
||||||
"big-parallel"
|
"big-parallel"
|
||||||
"kvm"
|
"kvm"
|
||||||
];
|
];
|
||||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users."remote-builder" = lib.mkIf config.sysconfig.remoteBuildHost {
|
users.users."remote-builder" = lib.mkIf config.sysconfig.remoteBuildHost {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
createHome = false;
|
createHome = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
sops.secrets = let
|
sops.secrets = let
|
||||||
dir = builtins.readDir ../machines;
|
dir = builtins.readDir ../machines;
|
||||||
in lib.mkIf config.sysconfig.remoteBuildHost (builtins.listToAttrs
|
in lib.mkIf config.sysconfig.remoteBuildHost (builtins.listToAttrs
|
||||||
(builtins.map
|
(builtins.map
|
||||||
(y: { name = "remoteBuildClientKeys/${y}"; value = { sopsFile = ./secrets.yaml; }; })
|
(y: { name = "remoteBuildClientKeys/${y}"; value = { sopsFile = ./secrets.yaml; }; })
|
||||||
(builtins.filter
|
(builtins.filter
|
||||||
(x: dir.${x} == "directory" && (import ../machines/${x} { config = {}; inputs = {}; inherit lib pkgs; }).config.sysconfig.remoteBuildClient)
|
(x: dir.${x} == "directory" && (import ../machines/${x} { config = {}; inputs = {}; inherit lib pkgs; }).config.sysconfig.remoteBuildClient)
|
||||||
(builtins.attrNames dir)
|
(builtins.attrNames dir)
|
||||||
)
|
)
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
sops.templates."remote-builder" = lib.mkIf config.sysconfig.remoteBuildHost {
|
|
||||||
content = builtins.concatStringsSep ''''\n'' (builtins.map
|
|
||||||
(y: config.sops.placeholder.${y})
|
|
||||||
(builtins.filter
|
|
||||||
(x: (builtins.match "^remoteBuildClientKeys/.+" x) != null)
|
|
||||||
(builtins.attrNames config.sops.secrets)
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
path = "/etc/ssh/authorized_keys.d/remote-builder";
|
|
||||||
owner = "remote-builder";
|
|
||||||
};
|
|
||||||
|
|
||||||
sops = {
|
|
||||||
age.keyFile = "/var/lib/sops/age/keys.txt";
|
|
||||||
defaultSopsFormat = "yaml";
|
|
||||||
};
|
|
||||||
|
|
||||||
time.timeZone = lib.mkDefault "America/Chicago";
|
sops.templates."remote-builder" = lib.mkIf config.sysconfig.remoteBuildHost {
|
||||||
|
content = builtins.concatStringsSep ''''\n'' (builtins.map
|
||||||
|
(y: config.sops.placeholder.${y})
|
||||||
|
(builtins.filter
|
||||||
|
(x: (builtins.match "^remoteBuildClientKeys/.+" x) != null)
|
||||||
|
(builtins.attrNames config.sops.secrets)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
path = "/etc/ssh/authorized_keys.d/remote-builder";
|
||||||
|
owner = "remote-builder";
|
||||||
|
};
|
||||||
|
|
||||||
i18n = lib.mkDefault {
|
sops = {
|
||||||
defaultLocale = "en_US.UTF-8";
|
age.keyFile = "/var/lib/sops/age/keys.txt";
|
||||||
|
defaultSopsFormat = "yaml";
|
||||||
|
};
|
||||||
|
|
||||||
extraLocaleSettings = {
|
time.timeZone = lib.mkDefault "America/Chicago";
|
||||||
LC_ADDRESS = "en_US.UTF-8";
|
|
||||||
LC_IDENTIFICATION = "en_US.UTF-8";
|
i18n = lib.mkDefault {
|
||||||
LC_MEASUREMENT = "en_US.UTF-8";
|
defaultLocale = "en_US.UTF-8";
|
||||||
LC_MONETARY = "en_US.UTF-8";
|
|
||||||
LC_NAME = "en_US.UTF-8";
|
extraLocaleSettings = {
|
||||||
LC_NUMERIC = "en_US.UTF-8";
|
LC_ADDRESS = "en_US.UTF-8";
|
||||||
LC_PAPER = "en_US.UTF-8";
|
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||||
LC_TELEPHONE = "en_US.UTF-8";
|
LC_MEASUREMENT = "en_US.UTF-8";
|
||||||
LC_TIME = "en_US.UTF-8";
|
LC_MONETARY = "en_US.UTF-8";
|
||||||
|
LC_NAME = "en_US.UTF-8";
|
||||||
|
LC_NUMERIC = "en_US.UTF-8";
|
||||||
|
LC_PAPER = "en_US.UTF-8";
|
||||||
|
LC_TELEPHONE = "en_US.UTF-8";
|
||||||
|
LC_TIME = "en_US.UTF-8";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
{ ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
|
|
||||||
config = {
|
flake.nixosModules.default = { lib, ... }: {
|
||||||
|
|
||||||
|
config = {
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
{ pkgs, disko, ... }: {
|
{ inputs, ... }: {
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
flake.nixosModules.default = { pkgs, ... }: {
|
||||||
sops
|
|
||||||
disko.packages.${pkgs.stdenv.hostPlatform.system}.disko-install
|
environment.systemPackages = with pkgs; [
|
||||||
];
|
sops
|
||||||
|
inputs.disko.packages.${pkgs.stdenv.hostPlatform.system}.disko-install
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
./hyprland
|
|
||||||
./hyprpanel
|
|
||||||
./steam
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,28 +1,35 @@
|
|||||||
{ config, lib, pkgs, hyprland, ... }: {
|
{ inputs, ... }: {
|
||||||
|
|
||||||
options.sysconfig.programs.hyprland.enable = lib.options.mkOption {
|
flake.nixosModules.default = { config, lib, pkgs, ... }: {
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.sysconfig.programs.hyprland.enable {
|
options.sysconfig.programs.hyprland.enable = lib.options.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
|
||||||
sysconfig.services.sddm.enable = lib.mkDefault true;
|
config = lib.mkIf config.sysconfig.programs.hyprland.enable {
|
||||||
|
|
||||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
sysconfig.services.sddm.enable = lib.mkDefault true;
|
||||||
|
|
||||||
programs.hyprland = {
|
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||||
enable = true;
|
|
||||||
|
|
||||||
withUWSM = true;
|
programs.hyprland = let
|
||||||
|
system = pkgs.stdenv.hostPlatform.system;
|
||||||
|
#pkgs-us = import inputs.nixpkgs-us { inherit system; };
|
||||||
|
in {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
xwayland.enable = true;
|
withUWSM = false;
|
||||||
|
|
||||||
systemd.setPath.enable = true;
|
xwayland.enable = true;
|
||||||
|
|
||||||
package = hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
systemd.setPath.enable = true;
|
||||||
|
|
||||||
portalPackage = hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
package = inputs.hyprland.packages.${system}.hyprland;
|
||||||
|
|
||||||
|
portalPackage = inputs.hyprland.packages.${system}.xdg-desktop-portal-hyprland;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options.sysconfig.programs.hyprpanel.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.sysconfig.programs.hyprpanel.enable {
|
|
||||||
services = {
|
|
||||||
upower.enable = true;
|
|
||||||
gvfs.enable = true;
|
|
||||||
power-profiles-daemon.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
bluez
|
|
||||||
bluez-tools
|
|
||||||
libgtop
|
|
||||||
dart-sass
|
|
||||||
wl-clipboard
|
|
||||||
gtksourceview
|
|
||||||
libsoup_3
|
|
||||||
brightnessctl
|
|
||||||
swww
|
|
||||||
hyprpicker
|
|
||||||
hyprsunset
|
|
||||||
wf-recorder
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,14 +1,18 @@
|
|||||||
{ config, lib, ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
options.sysconfig.programs.steam.enable = lib.options.mkOption {
|
flake.nixosModules.default = { config, lib, ... }: {
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.sysconfig.programs.steam.enable {
|
options.sysconfig.programs.steam.enable = lib.options.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
programs.steam = {
|
default = false;
|
||||||
enable = true;
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.sysconfig.programs.steam.enable {
|
||||||
|
|
||||||
|
programs.steam = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
16
system/services/aurora-greeter/default.nix
Normal file
16
system/services/aurora-greeter/default.nix
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
|
||||||
|
flake.nixosModules.aurora-greeter = { config, lib, pkgs, ... }: {
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
inputs.aurora.nixosModules.default
|
||||||
|
];
|
||||||
|
|
||||||
|
config = {
|
||||||
|
|
||||||
|
services.aurora-greeter = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user