Compare commits
426
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df32d14ae8 | ||
|
|
d9be46e935 | ||
|
|
1bf5f5c4ed | ||
|
|
6c867a2af2 | ||
|
|
0b4afe3649 | ||
|
|
71efa635fc | ||
|
|
bf62802ffd | ||
|
|
12f53af7d8 | ||
|
|
de1311fbf9 | ||
|
|
53ed7ca778 | ||
|
|
d08adc5dfd | ||
|
|
b18b4a4453 | ||
|
|
d055a2972d | ||
|
|
69a7ec7da7 | ||
|
|
89e0f68275 | ||
|
|
06f2ce4136 | ||
|
|
888fc8a629 | ||
|
|
a4e437baf1 | ||
|
|
d55656c07c | ||
|
|
86ef02473e | ||
|
|
ff137d6ca1 | ||
|
|
b70c1fa751 | ||
|
|
5358bd35f8 | ||
|
|
98860419c7 | ||
|
|
53fbd3300f | ||
|
|
5eaed26ddd | ||
|
|
7892912f4d | ||
|
|
93bb0c3f3a | ||
|
|
382628f233 | ||
|
|
c6548fb88c | ||
|
|
52ae9d193b | ||
|
|
a27d701bac | ||
|
|
f703c93d3a | ||
|
|
988190eefe | ||
|
|
3f1b8a2b3e | ||
|
|
9f120c4352 | ||
|
|
bbb955f1c8 | ||
|
|
fd66b79b0b | ||
|
|
c7e04cd568 | ||
|
|
0e9442d116 | ||
|
|
a320dec5ff | ||
|
|
73e98c99f3 | ||
|
|
1268eb4db4 | ||
|
|
bfbe06e81c | ||
|
|
c38597d137 | ||
|
|
587c0d7b59 | ||
|
|
1fe4cbb045 | ||
|
|
043e1b8568 | ||
|
|
965583c2d8 | ||
|
|
38b07b9929 | ||
|
|
25d9e9a52c | ||
|
|
61997ac276 | ||
|
|
d6ab65dd0d | ||
|
|
72f872e2da | ||
|
|
6195a9e93f | ||
|
|
101044ca0e | ||
|
|
63d8298e17 | ||
|
|
a4aa3da89e | ||
|
|
c651ec9d31 | ||
|
|
99178584af | ||
|
|
c0831c51b3 | ||
|
|
c1fa9867b5 | ||
|
|
7e7ea16cd6 | ||
|
|
c60b9cef81 | ||
|
|
6766fd5de2 | ||
|
|
d475468865 | ||
|
|
73be72a937 | ||
|
|
a8a45e133f | ||
|
|
c2a304024d | ||
|
|
0b2b17a64f | ||
|
|
b9c42c7536 | ||
|
|
f3fa1b54a4 | ||
|
|
d1c3715c60 | ||
|
|
f6337b2d8c | ||
|
|
1fc2d86312 | ||
|
|
3ed9d26adc | ||
|
|
89ed7207c1 | ||
|
|
8609a4d16f | ||
|
|
8bb9c6586a | ||
|
|
5eebe93f72 | ||
|
|
8913c706c9 | ||
|
|
fc575ea414 | ||
|
|
2105694101 | ||
|
|
2473e1a1bc | ||
|
|
b937743dba | ||
|
|
4b06428bd0 | ||
|
|
7f7a3f3bd8 | ||
|
|
999e42207d | ||
|
|
c6a96b423a | ||
|
|
4c7463eddf | ||
|
|
15494d9974 | ||
|
|
91e8109117 | ||
|
|
8931401375 | ||
|
|
752ba68599 | ||
|
|
bc5adf74ff | ||
|
|
4ecf8b50b7 | ||
|
|
9f984247ac | ||
|
|
4a7cdd8548 | ||
|
|
02a5ee3ec3 | ||
|
|
5a89b7c485 | ||
|
|
895fd94b77 | ||
|
|
524f694ab0 | ||
|
|
d681937c89 | ||
|
|
52043e70ce | ||
|
|
073deff2d5 | ||
|
|
78d10d8e90 | ||
|
|
156aa066c6 | ||
|
|
1ebba4e639 | ||
|
|
45fd949e09 | ||
|
|
c69a2c51c3 | ||
|
|
ec5c4e2ef5 | ||
|
|
19d0edaed1 | ||
|
|
a094be6133 | ||
|
|
80f5faaed2 | ||
|
|
ea744f2530 | ||
|
|
f659558746 | ||
|
|
e39aff406b | ||
|
|
2645e0dceb | ||
|
|
50a49967e0 | ||
|
|
ba3dc73e0c | ||
|
|
35b0de17a9 | ||
|
|
831192ee63 | ||
|
|
5e2f64bfe2 | ||
|
|
1cfb7410a8 | ||
|
|
26dfd6ddc0 | ||
|
|
27b2b8b96a | ||
|
|
d26a481685 | ||
|
|
6ddf1846f6 | ||
|
|
dc8e0b81d9 | ||
|
|
25c575b534 | ||
|
|
9bb704fd0c | ||
|
|
0601780ab8 | ||
|
|
183e2dff20 | ||
|
|
725ad8289e | ||
|
|
d41e5e7594 | ||
|
|
3acdcd8d53 | ||
|
|
e1087fcdcd | ||
|
|
9228a1ae40 | ||
|
|
3064d53017 | ||
|
|
67dd88c179 | ||
|
|
99dc92947c | ||
|
|
ebb321f671 | ||
|
|
3de38b8c94 | ||
|
|
1d0188e199 | ||
|
|
a86fd67f5a | ||
|
|
818e0f3ff3 | ||
|
|
4b03beb264 | ||
|
|
723dd77cc3 | ||
|
|
80305ec8d0 | ||
|
|
64ca5b8641 | ||
|
|
7e09db3801 | ||
|
|
2ba65659e4 | ||
|
|
4a87f10d15 | ||
|
|
93d31e99b0 | ||
|
|
3bfe90e7ef | ||
|
|
5fb36fc027 | ||
|
|
0adae1cea9 | ||
|
|
41f5bc048d | ||
|
|
690af77bfa | ||
|
|
d3702f3c65 | ||
|
|
ab0f1721cc | ||
|
|
bcc25860b7 | ||
|
|
115f0e8d34 | ||
|
|
51cae96868 | ||
|
|
27ffc79f23 | ||
|
|
a986b4f0d0 | ||
|
|
8abf744687 | ||
|
|
4e25515b14 | ||
|
|
8f8d23fb62 | ||
|
|
afaacd003d | ||
|
|
c56f06bbfb | ||
|
|
63bdca6f54 | ||
|
|
73013afe1c | ||
|
|
66a876ee72 | ||
|
|
618429e3c0 | ||
|
|
c1d43499cb | ||
|
|
2e40767a28 | ||
|
|
1fcffc0650 | ||
|
|
ad7fdad2c6 | ||
|
|
b6cc6828b6 | ||
|
|
6ba046dd50 | ||
|
|
e7d22b40ff | ||
|
|
a81a8ac57b | ||
|
|
dbc538f5d7 | ||
|
|
5c07f52458 | ||
|
|
1fed6c2cbd | ||
|
|
2d1dc6a721 | ||
|
|
efaac96dae | ||
|
|
fad72915db | ||
|
|
69327aec6a | ||
|
|
89f072318d | ||
|
|
9f2ffb683f | ||
|
|
ba725c936f | ||
|
|
f37054422a | ||
|
|
9c4d0c0ea3 | ||
|
|
2bcf8b7964 | ||
|
|
f1c5d1998e | ||
|
|
ea5d67a0d0 | ||
|
|
0c2200c5b8 | ||
|
|
699d47f4bd | ||
|
|
4cc3978057 | ||
|
|
a94c5e77e6 | ||
|
|
2e9254f4df | ||
|
|
d57c8c761c | ||
|
|
144a822090 | ||
|
|
eba5869d86 | ||
|
|
fa60e00405 | ||
|
|
4b58c5c909 | ||
|
|
b80f189128 | ||
|
|
b313d7a4f8 | ||
|
|
47638d5f8b | ||
|
|
fe8f38c42b | ||
|
|
6f980b2da3 | ||
|
|
6a9b8b080f | ||
|
|
c33c4de555 | ||
|
|
8d25a30e92 | ||
|
|
aeed937874 | ||
|
|
753f21b3fe | ||
|
|
f51edc269e | ||
|
|
a52b5f6e84 | ||
|
|
a2e25184c3 | ||
|
|
3429f9511f | ||
|
|
b2ae8a2df6 | ||
|
|
85068ac330 | ||
|
|
33a27faf92 | ||
|
|
a9b4fb2113 | ||
|
|
24babe7a39 | ||
|
|
3e6f43894a | ||
|
|
746cfd2571 | ||
|
|
7df8264f82 | ||
|
|
060f0ff85d | ||
|
|
218b50f185 | ||
|
|
2c61cdcd7c | ||
|
|
99c220cba5 | ||
|
|
baeffc96cc | ||
|
|
77ed5e05bb | ||
|
|
a8550d41be | ||
|
|
2ad51c3815 | ||
|
|
96f1610972 | ||
|
|
0d9d0014f8 | ||
|
|
1f8639dda2 | ||
|
|
1c1cfb2f0c | ||
|
|
7c6961781d | ||
|
|
9831885daa | ||
|
|
7901352e9a | ||
|
|
78e86fe724 | ||
|
|
26aae5aa3d | ||
|
|
b6b02e5172 | ||
|
|
dab5d4f899 | ||
|
|
8b906e666f | ||
|
|
0482d34f4b | ||
|
|
a292195d20 | ||
|
|
548b09877c | ||
|
|
dcad5a72eb | ||
|
|
d2ae6a2cdf | ||
|
|
7bd24844e5 | ||
|
|
6e8a3139a4 | ||
|
|
af4f914780 | ||
|
|
8d10f73549 | ||
|
|
3268e02cd7 | ||
|
|
0456dac1e2 | ||
|
|
943e3bc2ac | ||
|
|
1d0791e152 | ||
|
|
28a01afba7 | ||
|
|
9c00e8711f | ||
|
|
c8e16c5ea6 | ||
|
|
edfd57aad0 | ||
|
|
4e13d912b0 | ||
|
|
ee7931107e | ||
|
|
247f1c177b | ||
|
|
1410158222 | ||
|
|
81d623e561 | ||
|
|
19634cfb7a | ||
|
|
b0e5f3fc93 | ||
|
|
b613a09d86 | ||
|
|
915c7633fa | ||
|
|
ceb6684316 | ||
|
|
2fb0669839 | ||
|
|
d9a41add9f | ||
|
|
984c0e4dc1 | ||
|
|
69ee8b74bf | ||
|
|
7e4858c1ab | ||
|
|
f0f9074d47 | ||
|
|
700178c1f1 | ||
|
|
bdbb11d2fe | ||
|
|
bbd9d5974f | ||
|
|
37363d3ec0 | ||
|
|
1b2bc9c240 | ||
|
|
c0badcb2dd | ||
|
|
df7db4eb62 | ||
|
|
62e7368880 | ||
|
|
0431d53c78 | ||
|
|
dda6abb66e | ||
|
|
5c4edfb283 | ||
|
|
51f15e0652 | ||
|
|
8fe7914968 | ||
|
|
0922f2ddc6 | ||
|
|
8a194423ad | ||
|
|
566569d332 | ||
|
|
0307126a4a | ||
|
|
9cf450b65f | ||
|
|
1f8776e828 | ||
|
|
b1ba8f249e | ||
|
|
ec94b9194c | ||
|
|
9c030833f3 | ||
|
|
3181c1f834 | ||
|
|
d12700be33 | ||
|
|
e333ce2c5a | ||
|
|
be571b72be | ||
|
|
c8aaf743b9 | ||
|
|
d83255dc91 | ||
|
|
e9df5d8c46 | ||
|
|
72eeca763e | ||
|
|
00d9e18d41 | ||
|
|
024ac197ba | ||
|
|
6818d5e7ad | ||
|
|
f4a273e89e | ||
|
|
77859a3137 | ||
|
|
4a22ef9c47 | ||
|
|
e8961d1830 | ||
|
|
274e6d475b | ||
|
|
b040991a96 | ||
|
|
5018bc3005 | ||
|
|
132f949299 | ||
|
|
7b2169075b | ||
|
|
e3343e0b36 | ||
|
|
a1c2c6b3df | ||
|
|
318db84c9f | ||
|
|
8ec7bde136 | ||
|
|
3b3c5130c0 | ||
|
|
36fa6ef032 | ||
|
|
a909b3dfbe | ||
|
|
04a0423e44 | ||
|
|
848b200ac7 | ||
|
|
020b53eabb | ||
|
|
5dcbbd8062 | ||
|
|
208893bd3f | ||
|
|
5d41c0cd5f | ||
|
|
4a182aa078 | ||
|
|
2a68833867 | ||
|
|
bfc0c7ab21 | ||
|
|
cd9ba061a4 | ||
|
|
7790265612 | ||
|
|
95311b66c7 | ||
|
|
6b316ec48f | ||
|
|
f27a7a64a3 | ||
|
|
ca822f8bca | ||
|
|
d114fde1d5 | ||
|
|
a7d04a8876 | ||
|
|
51e0a66c44 | ||
|
|
c1da8040e2 | ||
|
|
75aba098e9 | ||
|
|
cc224f4043 | ||
|
|
481fc8184c | ||
|
|
98b63ff139 | ||
|
|
5aa4f174af | ||
|
|
b81fcaa0cd | ||
|
|
6d512cca23 | ||
|
|
02c87ef8ec | ||
|
|
13d66196bf | ||
|
|
5194e5c3c5 | ||
|
|
356ae12b3e | ||
|
|
5ff8b7000f | ||
|
|
b6184dd79f | ||
|
|
34345e6a05 | ||
|
|
6f6e1c1719 | ||
|
|
849904e037 | ||
|
|
7e3f71f748 | ||
|
|
cc5965c751 | ||
|
|
a0079b1cab | ||
|
|
fa9aa323d0 | ||
|
|
fd9c01c3e9 | ||
|
|
310d9e540e | ||
|
|
f6761b6d01 | ||
|
|
7d0ed15e86 | ||
|
|
8120493a1c | ||
|
|
fd5e62626e | ||
|
|
0e5bd1e17f | ||
|
|
3f8b0a59f5 | ||
|
|
b7c2509817 | ||
|
|
94b10102ce | ||
|
|
a83323abe8 | ||
|
|
a92d9b4749 | ||
|
|
e538b0fcc9 | ||
|
|
4cb7a00686 | ||
|
|
9b8bba684a | ||
|
|
a43e6afb82 | ||
|
|
021db78abb | ||
|
|
276cbbd258 | ||
|
|
cd8caf807c | ||
|
|
eda5820374 | ||
|
|
27d2d36dfe | ||
|
|
90dcd8d49c | ||
|
|
42b52e67f6 | ||
|
|
f532eabde3 | ||
|
|
6424798a40 | ||
|
|
140ecbb715 | ||
|
|
d066f9b414 | ||
|
|
5d3da84cac | ||
|
|
733e6d0ab1 | ||
|
|
493c8767ec | ||
|
|
36b60a4c87 | ||
|
|
7b6b3378b7 | ||
|
|
30e64f8883 | ||
|
|
5b2e284501 | ||
|
|
5412fe0b7b | ||
|
|
a81765d5d3 | ||
|
|
aa5db9818b | ||
|
|
1405b60346 | ||
|
|
4bb7f67602 | ||
|
|
66ef25c9b1 | ||
|
|
4b5ad6b4eb | ||
|
|
dbadcdd065 | ||
|
|
775392970f | ||
|
|
a320c7baf8 | ||
|
|
88781d3b9a | ||
|
|
55f747bed5 | ||
|
|
0c9abbd660 | ||
|
|
e161742bb9 | ||
|
|
cd243dc44a | ||
|
|
b177126ad6 | ||
|
|
9938a07226 | ||
|
|
66b0576db2 | ||
|
|
e6aa284555 | ||
|
|
829c944929 | ||
|
|
389ac81978 |
No files matched your search
@@ -1,3 +1,2 @@
|
|||||||
source_url "https://raw.githubusercontent.com/cachix/devenv/d1f7b48e35e6dee421cfd0f51481d17f77586997/direnvrc" "sha256-YBzqskFZxmNb3kYVoKD9ZixoPXJh1C9ZvTLGFRkauZ0="
|
use flake
|
||||||
|
|
||||||
use devenv
|
|
||||||
@@ -3,6 +3,11 @@
|
|||||||
# Devenv
|
# Devenv
|
||||||
.devenv*
|
.devenv*
|
||||||
devenv.local.nix
|
devenv.local.nix
|
||||||
|
.devbox
|
||||||
|
|
||||||
|
# tmp
|
||||||
|
tmp
|
||||||
|
result.diff
|
||||||
|
|
||||||
# direnv
|
# direnv
|
||||||
.direnv
|
.direnv
|
||||||
@@ -12,3 +17,7 @@ devenv.local.nix
|
|||||||
|
|
||||||
# nix build
|
# nix build
|
||||||
result
|
result
|
||||||
|
results
|
||||||
|
diffs
|
||||||
|
.locks
|
||||||
|
result.diff
|
||||||
Vendored
+2
-1
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"pinage404.nix-extension-pack"
|
"pinage404.nix-extension-pack",
|
||||||
|
"b4dm4n.nixpkgs-fmt"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Vendored
+5
@@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
{
|
||||||
|
"nix.enableLanguageServer": true,
|
||||||
|
"nix.serverPath": "nixd",
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# NixOS System Configurations
|
||||||
|
|
||||||
|
The following is my Nix configurations. More Docs TBD
|
||||||
Executable
+22
@@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
mkdir -p results
|
||||||
|
|
||||||
|
nix flake show --json | jq -r -c '.nixosConfigurations | keys[]' | while read i; do
|
||||||
|
echo "[[SKYG]] Building current $i"
|
||||||
|
sudo nixos-rebuild build --flake .#$i
|
||||||
|
rm -f results/$i-result
|
||||||
|
mv result results/$i-result
|
||||||
|
done
|
||||||
|
|
||||||
|
nix flake update
|
||||||
|
|
||||||
|
rm -f diffs
|
||||||
|
mkdir diffs
|
||||||
|
nix flake show --json | jq -r -c '.nixosConfigurations | keys[]' | while read i; do
|
||||||
|
echo "[[SKYG]] Building new $i"
|
||||||
|
sudo nixos-rebuild build --flake .#$i
|
||||||
|
rm -f results/$i-result-post
|
||||||
|
mv result results/$i-result-post
|
||||||
|
nvd diff results/$i-result results/$i-result-post > diffs/$i
|
||||||
|
done
|
||||||
|
|
||||||
Executable
+52
@@ -0,0 +1,52 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Bootstrap
|
||||||
|
set -e
|
||||||
|
ROOT_FOLDER=$(realpath $0 | xargs dirname)
|
||||||
|
. $ROOT_FOLDER/common.sh
|
||||||
|
# Bootstrap
|
||||||
|
|
||||||
|
# export NIX_SSHOPTS="-o RequestTTY=force"
|
||||||
|
|
||||||
|
target=${1}
|
||||||
|
target_host=root@$target.lab.internal
|
||||||
|
profile=hl-$target
|
||||||
|
|
||||||
|
valid_profiles=$(nix flake show --json 2> /dev/null | jq -r -c '.nixosConfigurations | keys[]' | grep "hl")
|
||||||
|
|
||||||
|
function print_valid_targets {
|
||||||
|
echo "valid targets:"
|
||||||
|
while IFS= read -r line; do
|
||||||
|
echo $line | sed -r 's/.*hl-/ - /g'
|
||||||
|
done <<< "$valid_profiles"
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ -z $target ]; then
|
||||||
|
echo "must specify a target!"
|
||||||
|
print_valid_targets
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if echo "$valid_profiles" | grep -qFx "$profile"; then
|
||||||
|
echo "Using [$profile]"
|
||||||
|
else
|
||||||
|
echo "Invalid target! '$profile'"
|
||||||
|
print_valid_targets
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
function run {
|
||||||
|
remote_cmd=${1}
|
||||||
|
echo -e "$BOLD$remote_cmd$NC on $YELLOW$target_host with $profile through $build_host$NC"
|
||||||
|
runcmd="nixos-rebuild --target-host $target_host --use-remote-sudo $remote_cmd --flake .#$profile"
|
||||||
|
echo -e "$BLUE$runcmd$NC"
|
||||||
|
$runcmd
|
||||||
|
}
|
||||||
|
|
||||||
|
cmd=${2}
|
||||||
|
case $cmd in
|
||||||
|
"test" | "dry-activate" | "run" | "switch" | "build") run $cmd;;
|
||||||
|
*)
|
||||||
|
echo "invalid command"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
## Colors
|
||||||
|
YELLOW='\033[0;33m'
|
||||||
|
BLUE='\033[0;34m'
|
||||||
|
NC='\033[0m'
|
||||||
|
BOLD='\033[1m'
|
||||||
|
BLUE_BOLD='\033[1;34m'
|
||||||
|
YELLOW_BOLD='\033[1;33m'
|
||||||
@@ -0,0 +1,147 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
|
||||||
|
# Bootstrap
|
||||||
|
set -e
|
||||||
|
ROOT_FOLDER=$(realpath $0 | xargs dirname | xargs dirname)
|
||||||
|
. $ROOT_FOLDER/bin/extra/common.sh
|
||||||
|
# Bootstrap
|
||||||
|
|
||||||
|
MENAME=$(basename $0)
|
||||||
|
LOCKS_FOLDER=/tmp/skyg/$ROOT_FOLDER/.tmp/.locks
|
||||||
|
LOCK_FILE=$LOCKS_FOLDER/.built_via_skg
|
||||||
|
|
||||||
|
mkdir -p $LOCKS_FOLDER
|
||||||
|
|
||||||
|
function lock() {
|
||||||
|
touch $LOCK_FILE
|
||||||
|
}
|
||||||
|
function unlock() {
|
||||||
|
rm -f $LOCK_FILE
|
||||||
|
}
|
||||||
|
|
||||||
|
function run-build() {
|
||||||
|
: Run nixos build and emits difference
|
||||||
|
:
|
||||||
|
unlock
|
||||||
|
echo "sudo nixos-rebuild build --flake ."
|
||||||
|
sudo nixos-rebuild build --flake .
|
||||||
|
lock
|
||||||
|
run-diff
|
||||||
|
}
|
||||||
|
|
||||||
|
function run-switch() {
|
||||||
|
: Runs nixos switch and ensures that we actually saw a build\'s difference
|
||||||
|
:
|
||||||
|
if [ ! -f $LOCK_FILE ]; then
|
||||||
|
run-build
|
||||||
|
echo "Do you want to continue? (y/N)"
|
||||||
|
read -r answer
|
||||||
|
if [[ $answer =~ ^[yY]$ ]]; then
|
||||||
|
echo "Continuing..."
|
||||||
|
else
|
||||||
|
echo "Exiting."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
sudo nixos-rebuild switch --flake .
|
||||||
|
unlock
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function run-rollback() {
|
||||||
|
: Rolls back to last configuration
|
||||||
|
:
|
||||||
|
sudo nixos-rebuild switch --rollback
|
||||||
|
}
|
||||||
|
|
||||||
|
function run-update() {
|
||||||
|
: Updates a single flake and runs update
|
||||||
|
: Usage: skyg update {name-of-input}
|
||||||
|
input_name=${1}
|
||||||
|
if [ ! -z $input_name ]; then
|
||||||
|
cmd="nix flake lock --update-input $input_name"
|
||||||
|
else
|
||||||
|
cmd="nix flake update"
|
||||||
|
fi
|
||||||
|
echo $cmd
|
||||||
|
$cmd
|
||||||
|
}
|
||||||
|
|
||||||
|
function run-diff() {
|
||||||
|
: Diff results to current system
|
||||||
|
:
|
||||||
|
echo -e "Running ${YELLOW_BOLD}nvd${NC}"
|
||||||
|
sudo nvd diff /run/current-system result | sed "s/^/\t│ /"
|
||||||
|
echo "press any key to continue "
|
||||||
|
read
|
||||||
|
echo -e "\t└──${NC}DONE ${BLUE_BOLD}nvd${NC}"
|
||||||
|
echo -e "Running ${YELLOW_BOLD}diff${NC}"
|
||||||
|
diff --color=always -r /run/current-system result > result.diff
|
||||||
|
cat result.diff | sed "s/^/\t│ /"
|
||||||
|
echo -e "\t└──${NC}DONE ${BLUE_BOLD}diff${NC} @ ${pwd}/result.diff"
|
||||||
|
}
|
||||||
|
|
||||||
|
function run-remote-deploy() {
|
||||||
|
: Builds locally the system and deploys to an external system
|
||||||
|
: Usage: skyg remote-deploy {target} {cmd}
|
||||||
|
target=${1}
|
||||||
|
cmd=${2}
|
||||||
|
$ROOT_FOLDER/bin/extra/build-remote-nixos ${target} ${cmd}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function run-build-all() {
|
||||||
|
: Builds all remote and local configurations
|
||||||
|
: Usage: skyg build-all
|
||||||
|
mkdir -p results
|
||||||
|
|
||||||
|
nix flake show --json | jq -r -c '.nixosConfigurations | keys[]' | while read i; do
|
||||||
|
echo "[[SKYG]] Building current $i"
|
||||||
|
sudo nixos-rebuild build --flake .#$i
|
||||||
|
rm -f results/$i-result
|
||||||
|
mv result results/$i-result
|
||||||
|
done
|
||||||
|
|
||||||
|
nix flake update
|
||||||
|
|
||||||
|
rm -f diffs
|
||||||
|
mkdir diffs
|
||||||
|
nix flake show --json | jq -r -c '.nixosConfigurations | keys[]' | while read i; do
|
||||||
|
echo "[[SKYG]] Building new $i"
|
||||||
|
sudo nixos-rebuild build --flake .#$i
|
||||||
|
rm -f results/$i-result-post
|
||||||
|
mv result results/$i-result-post
|
||||||
|
nvd diff results/$i-result results/$i-result-post > diffs/$i
|
||||||
|
done
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function list_run_functions() {
|
||||||
|
declare -F | awk '$3 ~ /^run-/{sub("run-", "", $3); print $3}'
|
||||||
|
}
|
||||||
|
|
||||||
|
all_functions=$(list_run_functions)
|
||||||
|
|
||||||
|
for f in ${all_functions[@]}; do
|
||||||
|
if [ "$1" == "$f" ]; then
|
||||||
|
echo -e "Running ${BLUE_BOLD}$1${NC}"
|
||||||
|
run-$1 ${@:2}
|
||||||
|
ecode=$(echo $?)
|
||||||
|
echo -e "\t└──${NC}DONE ${BLUE_BOLD}$1${NC}"
|
||||||
|
exit $ecode
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo -e "Invalid Command '$1' please select one of${NC}"
|
||||||
|
|
||||||
|
for function_name in $all_functions; do
|
||||||
|
start_line=$(grep -n -m 1 "function run-$function_name" "${BASH_SOURCE[0]}" | cut -d: -f1)
|
||||||
|
end_line=$(awk "NR > $start_line && /^}/ {print NR; exit}" "${BASH_SOURCE[0]}")
|
||||||
|
function_body=$(sed -n "${start_line},${end_line}p" "${BASH_SOURCE[0]}")
|
||||||
|
description=$(echo "$function_body" | sed -n '/^\s*:/,/^\s*[^:]/p' | sed 's/^\s*:\s*/ │ /')
|
||||||
|
echo -e "$BOLD\r$MENAME \`${function_name}\`$NC\n${description}\n └──────────\n"
|
||||||
|
done
|
||||||
Binary file not shown.
@@ -1,148 +0,0 @@
|
|||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
|
||||||
monitor=,preferred,auto,auto
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
|
||||||
# Execute your favorite apps at launch
|
|
||||||
# exec-once = waybar & hyprpaper & firefox
|
|
||||||
exec-once = lxqt-policykit-agent
|
|
||||||
exec-once = nm-applet --indicator &
|
|
||||||
exec-once = waybar
|
|
||||||
exec-once = dunst
|
|
||||||
|
|
||||||
# Window rules
|
|
||||||
windowrulev2 = float,class:(lxqt-policykit-agent)
|
|
||||||
windowrulev2 = float,class:(nm-connection-editor)
|
|
||||||
windowrulev2 = float,class:(pavucontrol)
|
|
||||||
windowrulev2 = size 40%,40%,class:(pavucontrol)
|
|
||||||
windowrulev2 = center,class:(pavucontrol)
|
|
||||||
windowrulev2 = fakefullscreen,class:(Code)
|
|
||||||
windowrulev2 = fakefullscreen, class:^(code-url-handler)$
|
|
||||||
|
|
||||||
# Some default env vars.
|
|
||||||
env = XCURSOR_SIZE,24
|
|
||||||
|
|
||||||
input {
|
|
||||||
kb_layout = us
|
|
||||||
follow_mouse = 1
|
|
||||||
touchpad {
|
|
||||||
natural_scroll = yes
|
|
||||||
clickfinger_behavior = yes
|
|
||||||
}
|
|
||||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
general {
|
|
||||||
gaps_in = 5
|
|
||||||
gaps_out = 20
|
|
||||||
border_size = 2
|
|
||||||
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
|
||||||
col.inactive_border = rgba(595959aa)
|
|
||||||
layout = dwindle
|
|
||||||
allow_tearing = false
|
|
||||||
}
|
|
||||||
|
|
||||||
decoration {
|
|
||||||
rounding = 5
|
|
||||||
blur {
|
|
||||||
enabled = true
|
|
||||||
size = 3
|
|
||||||
passes = 1
|
|
||||||
}
|
|
||||||
drop_shadow = yes
|
|
||||||
shadow_range = 4
|
|
||||||
shadow_render_power = 3
|
|
||||||
col.shadow = rgba(1a1a1aee)
|
|
||||||
}
|
|
||||||
|
|
||||||
animations {
|
|
||||||
enabled = yes
|
|
||||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
|
||||||
animation = windows, 1, 7, myBezier
|
|
||||||
animation = windowsOut, 1, 7, default, popin 80%
|
|
||||||
animation = border, 1, 10, default
|
|
||||||
animation = borderangle, 1, 8, default
|
|
||||||
animation = fade, 1, 7, default
|
|
||||||
animation = workspaces, 1, 6, default
|
|
||||||
}
|
|
||||||
|
|
||||||
dwindle {
|
|
||||||
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
|
||||||
preserve_split = yes # you probably want this
|
|
||||||
}
|
|
||||||
|
|
||||||
master {
|
|
||||||
new_is_master = true
|
|
||||||
}
|
|
||||||
|
|
||||||
gestures {
|
|
||||||
workspace_swipe = on
|
|
||||||
workspace_swipe_fingers = 4
|
|
||||||
workspace_swipe_create_new = true
|
|
||||||
}
|
|
||||||
|
|
||||||
misc {
|
|
||||||
force_default_wallpaper = 0
|
|
||||||
disable_splash_rendering = false
|
|
||||||
}
|
|
||||||
|
|
||||||
xwayland {
|
|
||||||
force_zero_scaling = true
|
|
||||||
}
|
|
||||||
|
|
||||||
$mainMod = SUPER
|
|
||||||
|
|
||||||
# My Binds
|
|
||||||
bind = $mainMod, T, exec, kitty
|
|
||||||
bind = $mainMod, F4, killactive,
|
|
||||||
bind = $mainMod, V, togglefloating,
|
|
||||||
bind = $mainMod, space, exec, rofi -show drun
|
|
||||||
bind = $mainMod, s, exec, grim -g "$(slurp)" - | swappy -f -
|
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
|
||||||
bind = $mainMod, left, movefocus, l
|
|
||||||
bind = $mainMod, right, movefocus, r
|
|
||||||
bind = $mainMod, up, movefocus, u
|
|
||||||
bind = $mainMod, down, movefocus, d
|
|
||||||
|
|
||||||
# Switch workspaces with mainMod + [0-9]
|
|
||||||
bind = $mainMod, 1, workspace, 1
|
|
||||||
bind = $mainMod, 2, workspace, 2
|
|
||||||
bind = $mainMod, 3, workspace, 3
|
|
||||||
bind = $mainMod, 4, workspace, 4
|
|
||||||
bind = $mainMod, 5, workspace, 5
|
|
||||||
bind = $mainMod, 6, workspace, 6
|
|
||||||
bind = $mainMod, 7, workspace, 7
|
|
||||||
bind = $mainMod, 8, workspace, 8
|
|
||||||
bind = $mainMod, 9, workspace, 9
|
|
||||||
bind = $mainMod, 0, workspace, 10
|
|
||||||
bind = $mainMod, right, workspace, +1
|
|
||||||
bind = $mainMod, left, workspace, -1
|
|
||||||
|
|
||||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
|
||||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
|
||||||
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
|
||||||
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
|
||||||
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
|
||||||
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
|
||||||
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
|
||||||
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
|
||||||
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
|
||||||
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
|
||||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
|
||||||
|
|
||||||
# Resize actions
|
|
||||||
bind = $mainMod SHIFT, right, resizeactive, 10 0
|
|
||||||
bind = $mainMod SHIFT, left, resizeactive, -10 0
|
|
||||||
bind = $mainMod SHIFT, up, resizeactive, 0 -10
|
|
||||||
bind = $mainMod SHIFT, down, resizeactive, 0 10
|
|
||||||
|
|
||||||
# Scroll through existing workspaces with mainMod + scroll
|
|
||||||
bind = $mainMod, mouse_down, workspace, e+1
|
|
||||||
bind = $mainMod, mouse_up, workspace, e-1
|
|
||||||
|
|
||||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
|
||||||
bindm = $mainMod, mouse:272, movewindow
|
|
||||||
bindm = $mainMod, Control_L, movewindow
|
|
||||||
bindm = $mainMod, mouse:273, resizewindow
|
|
||||||
bindm = $mainMod, ALT_L, resizewindow
|
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
[global]
|
||||||
|
monitor = 0
|
||||||
|
follow = mouse
|
||||||
|
geometry = "0x0-30+20"
|
||||||
|
indicate_hidden = yes
|
||||||
|
shrink = no
|
||||||
|
transparency = 0
|
||||||
|
notification_height = 0
|
||||||
|
separator_height = 2
|
||||||
|
padding = 8
|
||||||
|
horizontal_padding = 8
|
||||||
|
frame_width = 3
|
||||||
|
frame_color = "#aaaaaa"
|
||||||
|
separator_color = auto
|
||||||
|
sort = yes
|
||||||
|
idle_threshold = 120
|
||||||
|
font = Fira Code 10
|
||||||
|
line_height = 0
|
||||||
|
markup = full
|
||||||
|
format = "<b>%s</b>\n%b"
|
||||||
|
alignment = center
|
||||||
|
show_age_threshold = 60
|
||||||
|
word_wrap = yes
|
||||||
|
ellipsize = middle
|
||||||
|
ignore_newline = no
|
||||||
|
stack_duplicates = true
|
||||||
|
hide_duplicate_count = false
|
||||||
|
show_indicators = yes
|
||||||
|
icon_position = left
|
||||||
|
max_icon_size = 32
|
||||||
|
# icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
|
||||||
|
sticky_history = yes
|
||||||
|
history_length = 20
|
||||||
|
dmenu = /usr/bin/dmenu -p dunst:
|
||||||
|
browser = /usr/bin/brave
|
||||||
|
always_run_script = true
|
||||||
|
title = Dunst
|
||||||
|
class = Dunst
|
||||||
|
startup_notification = true
|
||||||
|
verbosity = mesg
|
||||||
|
corner_radius = 5
|
||||||
|
mouse_left_click = do_action
|
||||||
|
mouse_middle_click = close_all
|
||||||
|
mouse_right_click = close_current
|
||||||
|
|
||||||
|
[experimental]
|
||||||
|
per_monitor_dpi = false
|
||||||
|
|
||||||
|
[shortcuts]
|
||||||
|
close = ctrl+space
|
||||||
|
close_all = ctrl+shift+space
|
||||||
|
history = ctrl+grave
|
||||||
|
context = ctrl+shift+period
|
||||||
|
|
||||||
|
[urgency_low]
|
||||||
|
# IMPORTANT: colors have to be defined in quotation marks.
|
||||||
|
# Otherwise the "#" and following would be interpreted as a comment.
|
||||||
|
background = "#2b2b2b"
|
||||||
|
foreground = "#ffffff"
|
||||||
|
timeout = 5
|
||||||
|
# Icon for notifications with low urgency, uncomment to enable
|
||||||
|
# icon = /home/brodie/.config/dunst/normal.png
|
||||||
|
|
||||||
|
[urgency_normal]
|
||||||
|
background = "#2b2b2b"
|
||||||
|
foreground = "#ffffff"
|
||||||
|
timeout = 5
|
||||||
|
# Icon for notifications with normal urgency, uncomment to enable
|
||||||
|
# icon = /home/brodie/.config/dunst/normal.png
|
||||||
|
|
||||||
|
[urgency_critical]
|
||||||
|
background = "#900000"
|
||||||
|
foreground = "#ffffff"
|
||||||
|
frame_color = "#ff0000"
|
||||||
|
timeout = 5
|
||||||
|
# Icon for notifications with critical urgency, uncomment to enable
|
||||||
|
# icon = /home/brodie/.config/dunst/critical.png
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
hyprland.conf
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
general {
|
||||||
|
# lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
|
||||||
|
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
||||||
|
after_sleep_cmd = hyprctl 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 restor.
|
||||||
|
}
|
||||||
|
|
||||||
|
# turn off keyboard backlight, uncomment this section if have keyboard backlight.
|
||||||
|
listener {
|
||||||
|
timeout = 150 # 2.5min.
|
||||||
|
on-timeout = brightnessctl -sd rgb:kbd_backlight set 0 # turn off keyboard backlight.
|
||||||
|
on-resume = brightnessctl -rd rgb:kbd_backlight # turn on keyboard backlight.
|
||||||
|
}
|
||||||
|
|
||||||
|
listener {
|
||||||
|
timeout = 295
|
||||||
|
on-timeout = hyprctl notify 0 5000 'rgb(ff0000)' 'Locking..'
|
||||||
|
on-resume = hyprctl notify 0 5000 'rgb(ff0000)' 'Stopping lock process..'
|
||||||
|
}
|
||||||
|
|
||||||
|
listener {
|
||||||
|
timeout = 300 # 5min
|
||||||
|
on-timeout = loginctl lock-session # lock screen when timeout has passed
|
||||||
|
}
|
||||||
|
|
||||||
|
listener {
|
||||||
|
timeout = 380 # 5.5min
|
||||||
|
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
|
||||||
|
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
|
||||||
|
}
|
||||||
|
|
||||||
|
listener {
|
||||||
|
timeout = 1800 # 30min
|
||||||
|
on-timeout = systemctl suspend # suspend pc
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
exec-once = lxqt-policykit-agent
|
||||||
|
exec-once = dunst --config $HOME/.config/dunstrc --startup_notification
|
||||||
|
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||||
|
exec-once = swww-daemon
|
||||||
|
exec-once = hypridle
|
||||||
|
# exec-once = waybar
|
||||||
|
exec-once = nwg-panel
|
||||||
|
exec-once = nwg-dock-hyprland
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
$term = alacritty
|
||||||
|
$browser = firefox
|
||||||
|
$filemanager = nautilus
|
||||||
|
$editor = code
|
||||||
|
$applauncher = wofi --show drun
|
||||||
|
$cmdlauncher = wofi --show run
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
$mainMod = SUPER
|
||||||
|
|
||||||
|
# bind = $mainMod, tab, overview, toggle
|
||||||
|
|
||||||
|
# Apps.
|
||||||
|
bind = $mainMod, C, exec, $editor
|
||||||
|
bind = $mainMod, space, exec, $applauncher
|
||||||
|
bind = $mainMod, R, exec, $cmdlauncher
|
||||||
|
bind = $mainMod, T, exec, $term
|
||||||
|
bind = $mainMod, B, exec, $browser
|
||||||
|
|
||||||
|
# My Binds
|
||||||
|
bind = $mainMod, Q, killactive,
|
||||||
|
bind = ALT, F4, killactive,
|
||||||
|
bind = $mainMod, V, togglefloating,
|
||||||
|
bind = $mainMod, F, fullscreen
|
||||||
|
bind = $mainMod, P, exec, rofimoji
|
||||||
|
|
||||||
|
# Screen shot
|
||||||
|
bind = $mainMod, s, exec, hyprshot -m region -r | swappy -f -
|
||||||
|
# bind = $mainMod, , exec wl-screenrec --audio -g "$(slurp)"
|
||||||
|
|
||||||
|
# Move focus with mainMod + arrow keys
|
||||||
|
bind = $mainMod, left, movefocus, l
|
||||||
|
bind = $mainMod, right, movefocus, r
|
||||||
|
bind = $mainMod, up, movefocus, u
|
||||||
|
bind = $mainMod, down, movefocus, d
|
||||||
|
|
||||||
|
|
||||||
|
# Switch workspaces with mainMod
|
||||||
|
bind = $mainMod, right, workspace, +1
|
||||||
|
bind = $mainMod, left, workspace, -1
|
||||||
|
|
||||||
|
# Move active window to a workspace with mainMod + SHIFT
|
||||||
|
bind = $mainMod CTRL, right, movetoworkspace, +1
|
||||||
|
bind = $mainMod CTRL, left, movetoworkspace, -1
|
||||||
|
|
||||||
|
# Resize actions
|
||||||
|
bind = $mainMod SHIFT, right, resizeactive, 10 0
|
||||||
|
bind = $mainMod SHIFT, left, resizeactive, -10 0
|
||||||
|
bind = $mainMod SHIFT, up, resizeactive, 0 -10
|
||||||
|
bind = $mainMod SHIFT, down, resizeactive, 0 10
|
||||||
|
|
||||||
|
# Scroll through existing workspaces with mainMod + scroll
|
||||||
|
bind = $mainMod, mouse_down, workspace, e+1
|
||||||
|
bind = $mainMod, mouse_up, workspace, e-1
|
||||||
|
|
||||||
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||||
|
bindm = $mainMod, mouse:272, movewindow
|
||||||
|
bindm = $mainMod, mouse:273, resizewindow
|
||||||
|
bindm = $mainMod, ALT_L, resizewindow
|
||||||
|
|
||||||
|
# Brigthness
|
||||||
|
bind = ,XF86MonBrightnessDown, exec, brightnessctl s 20%-
|
||||||
|
bind = ,XF86MonBrightnessUp, exec, brightnessctl s +20%
|
||||||
|
|
||||||
|
# Volume
|
||||||
|
binde =, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+ && hyprctl notify 0 500 'rgb(00ff00)' $(wpctl get-volume @DEFAULT_AUDIO_SINK@)
|
||||||
|
binde =, XF86AudioLowerVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%- && hyprctl notify 0 500 'rgb(00ff00)' $(wpctl get-volume @DEFAULT_AUDIO_SINK@)
|
||||||
|
bind =, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && hyprctl notify 0 500 'rgb(00ff00)' $(wpctl get-volume @DEFAULT_AUDIO_SINK@)
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
../monitors.conf
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
workspace = name:, monitor:DP-10, default:true, persistent:true, on-created-empty:[fullscreen] slack
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
# Extras
|
||||||
|
windowrulev2 = float,class:(nwg-.*)
|
||||||
|
windowrulev2 = float,class:(org\.kde\..*)
|
||||||
|
windowrulev2 = float,class:(.*blueman.*)
|
||||||
|
windowrulev2 = float,class:(firefox)
|
||||||
|
|
||||||
|
# Vscode
|
||||||
|
windowrulev2 = fakefullscreen,class:(Code)
|
||||||
|
windowrulev2 = fakefullscreen, class:^(code-url-handler)$
|
||||||
|
|
||||||
|
|
||||||
|
# VLC
|
||||||
|
windowrulev2 = fullscreen,class:(vlc.*)
|
||||||
|
|
||||||
|
# Rofi Randomness (mostly for rofimoji)
|
||||||
|
windowrulev2 = float,class:(Rofi)
|
||||||
|
windowrulev2 = size 30% 90%,class:(Rofi)
|
||||||
|
windowrulev2 = move 5% 5%,class:(Rofi)
|
||||||
|
|
||||||
|
$centerable = (Slack|nm-connection-editor|pavucontrol|system-config-printer|lxqt-policykit-agent|amdgpu_top|.*blueman.*|thunar|xdg-desktop-portal-gtk)
|
||||||
|
|
||||||
|
# Centerable & Floatable
|
||||||
|
windowrulev2 = float, class:$centerable
|
||||||
|
windowrulev2 = size 90% 90%, class:$centerable
|
||||||
|
windowrulev2 = move 5% 5%, class:$centerable
|
||||||
@@ -0,0 +1,87 @@
|
|||||||
|
|
||||||
|
decoration {
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||||
|
rounding = 5
|
||||||
|
blur {
|
||||||
|
enabled = true
|
||||||
|
size = 3
|
||||||
|
passes = 1
|
||||||
|
new_optimizations = true
|
||||||
|
}
|
||||||
|
|
||||||
|
drop_shadow = true
|
||||||
|
shadow_range = 4
|
||||||
|
shadow_render_power = 3
|
||||||
|
col.shadow = rgba(1a1a1aee)
|
||||||
|
}
|
||||||
|
|
||||||
|
animations {
|
||||||
|
enabled = true
|
||||||
|
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||||
|
animation = windows, 1, 7, myBezier
|
||||||
|
animation = windowsOut, 1, 7, default, popin 80%
|
||||||
|
animation = border, 1, 10, default
|
||||||
|
animation = borderangle, 1, 8, default
|
||||||
|
animation = fade, 1, 7, default
|
||||||
|
animation = workspaces, 1, 6, default
|
||||||
|
}
|
||||||
|
|
||||||
|
gestures {
|
||||||
|
workspace_swipe = on
|
||||||
|
workspace_swipe_fingers = 4
|
||||||
|
workspace_swipe_create_new = true
|
||||||
|
}
|
||||||
|
|
||||||
|
general {
|
||||||
|
border_size = 1
|
||||||
|
no_border_on_floating = false
|
||||||
|
gaps_in = 3
|
||||||
|
gaps_out = 3
|
||||||
|
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
||||||
|
col.inactive_border = rgba(595959aa)
|
||||||
|
layout = dwindle
|
||||||
|
resize_on_border = true
|
||||||
|
extend_border_grab_area = true
|
||||||
|
hover_icon_on_border = true
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# # INPUT DEVICES
|
||||||
|
input {
|
||||||
|
kb_layout = us
|
||||||
|
numlock_by_default = false
|
||||||
|
repeat_rate = 25
|
||||||
|
repeat_delay = 600
|
||||||
|
accel_profile = adaptive
|
||||||
|
scroll_method = 2fg
|
||||||
|
follow_mouse = 1
|
||||||
|
mouse_refocus = true
|
||||||
|
float_switch_override_focus = 1
|
||||||
|
touchpad {
|
||||||
|
natural_scroll = yes
|
||||||
|
clickfinger_behavior = yes
|
||||||
|
disable_while_typing = true
|
||||||
|
scroll_factor = 1.0
|
||||||
|
tap_button_map = lrm
|
||||||
|
tap-to-click = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# # MISC SETTINGS
|
||||||
|
misc {
|
||||||
|
disable_hyprland_logo = true
|
||||||
|
vrr = 0
|
||||||
|
mouse_move_enables_dpms = false
|
||||||
|
key_press_enables_dpms = false
|
||||||
|
layers_hog_keyboard_focus = true
|
||||||
|
focus_on_activate = false
|
||||||
|
mouse_move_focuses_monitor = true
|
||||||
|
}
|
||||||
|
|
||||||
|
# unscale XWayland
|
||||||
|
xwayland {
|
||||||
|
force_zero_scaling = true
|
||||||
|
}
|
||||||
|
|
||||||
|
env = GDK_SCALE,2
|
||||||
|
env = XCURSOR_SIZE,32
|
||||||
@@ -0,0 +1,140 @@
|
|||||||
|
# source = /home/justin/.cache/wal/colors-hyprland.conf
|
||||||
|
|
||||||
|
# BACKGROUND
|
||||||
|
background {
|
||||||
|
monitor =
|
||||||
|
#path = screenshot
|
||||||
|
# path = /home/justin/Pictures/wal.png
|
||||||
|
color = rgba(255, 0, 0, 1)
|
||||||
|
blur_passes = 2
|
||||||
|
contrast = 1
|
||||||
|
brightness = 0.5
|
||||||
|
vibrancy = 0.2
|
||||||
|
vibrancy_darkness = 0.2
|
||||||
|
}
|
||||||
|
|
||||||
|
# GENERAL
|
||||||
|
general {
|
||||||
|
no_fade_in = true
|
||||||
|
no_fade_out = true
|
||||||
|
hide_cursor = false
|
||||||
|
grace = 0
|
||||||
|
disable_loading_bar = true
|
||||||
|
}
|
||||||
|
|
||||||
|
# INPUT FIELD
|
||||||
|
input-field {
|
||||||
|
monitor =
|
||||||
|
size = 250, 60
|
||||||
|
outline_thickness = 2
|
||||||
|
dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
|
||||||
|
dots_spacing = 0.35 # Scale of dots' absolute size, 0.0 - 1.0
|
||||||
|
dots_center = true
|
||||||
|
outer_color = rgba(0, 0, 0, 0)
|
||||||
|
inner_color = rgba(0, 0, 0, 0.2)
|
||||||
|
font_color = $foreground
|
||||||
|
fade_on_empty = false
|
||||||
|
rounding = -1
|
||||||
|
check_color = rgb(204, 136, 34)
|
||||||
|
placeholder_text = <i><span foreground="##cdd6f4">Input Password...</span></i>
|
||||||
|
hide_input = false
|
||||||
|
position = 0, -200
|
||||||
|
halign = center
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
# DATE
|
||||||
|
label {
|
||||||
|
monitor =
|
||||||
|
text = cmd[update:1000] echo "$(date +"%A, %B %d")"
|
||||||
|
color = rgba(242, 243, 244, 0.75)
|
||||||
|
font_size = 22
|
||||||
|
font_family = JetBrains Mono
|
||||||
|
position = 0, 300
|
||||||
|
halign = center
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
# TIME
|
||||||
|
label {
|
||||||
|
monitor =
|
||||||
|
text = cmd[update:1000] echo "$(date +"%-I:%M")"
|
||||||
|
color = rgba(242, 243, 244, 0.75)
|
||||||
|
font_size = 95
|
||||||
|
font_family = JetBrains Mono Extrabold
|
||||||
|
position = 0, 200
|
||||||
|
halign = center
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Profile Picture
|
||||||
|
# image {
|
||||||
|
# monitor =
|
||||||
|
# path = /home/justin/Pictures/profile_pictures/justin_square.png
|
||||||
|
# size = 100
|
||||||
|
# border_size = 2
|
||||||
|
# border_color = $foreground
|
||||||
|
# position = 0, -100
|
||||||
|
# halign = center
|
||||||
|
# valign = center
|
||||||
|
# }
|
||||||
|
|
||||||
|
# # Desktop Environment
|
||||||
|
# image {
|
||||||
|
# monitor =
|
||||||
|
# path = /home/justin/Pictures/profile_pictures/hypr.png
|
||||||
|
# size = 75
|
||||||
|
# border_size = 2
|
||||||
|
# border_color = $foreground
|
||||||
|
# position = -50, 50
|
||||||
|
# halign = right
|
||||||
|
# valign = bottom
|
||||||
|
# }
|
||||||
|
|
||||||
|
# CURRENT SONG
|
||||||
|
# label {
|
||||||
|
# monitor =
|
||||||
|
# text = cmd[update:1000] echo "$(/home/justin/Documents/Scripts/whatsong.sh)"
|
||||||
|
# color = $foreground
|
||||||
|
# #color = rgba(255, 255, 255, 0.6)
|
||||||
|
# font_size = 18
|
||||||
|
# font_family = Metropolis Light, Font Awesome 6 Free Solid
|
||||||
|
# position = 0, 50
|
||||||
|
# halign = center
|
||||||
|
# valign = bottom
|
||||||
|
# }
|
||||||
|
|
||||||
|
# label {
|
||||||
|
# monitor =
|
||||||
|
# text = cmd[update:1000] echo "$(/home/justin/Documents/Scripts/whoami.sh)"
|
||||||
|
# color = $foreground
|
||||||
|
# font_size = 14
|
||||||
|
# font_family = JetBrains Mono
|
||||||
|
# position = 0, -10
|
||||||
|
# halign = center
|
||||||
|
# valign = top
|
||||||
|
# }
|
||||||
|
|
||||||
|
# label {
|
||||||
|
# monitor =
|
||||||
|
# text = cmd[update:1000] echo "$(/home/justin/Documents/Scripts/battery.sh)"
|
||||||
|
# color = $foreground
|
||||||
|
# font_size = 24
|
||||||
|
# font_family = JetBrains Mono
|
||||||
|
# position = -90, -10
|
||||||
|
# halign = right
|
||||||
|
# valign = top
|
||||||
|
# }
|
||||||
|
|
||||||
|
# label {
|
||||||
|
# monitor =
|
||||||
|
# text = cmd[update:1000] echo "$(/home/justin/Documents/Scripts/network-status.sh)"
|
||||||
|
# color = $foreground
|
||||||
|
# font_size = 24
|
||||||
|
# font_family = JetBrains Mono
|
||||||
|
# position = -20, -10
|
||||||
|
# halign = right
|
||||||
|
# valign = top
|
||||||
|
# }
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
monitor=eDP-1,2256x1504@60.0,0x0,1.175
|
||||||
|
|
||||||
|
# Home External Monitors
|
||||||
|
monitor=DP-9,1920x1080@60.0,1420x-1085,1.0
|
||||||
|
monitor=DP-10,1920x1080@60.0,-500x-1085,1.0
|
||||||
|
|
||||||
|
monitor=DP-11,1920x1080@60.0,1420x-1085,1.0
|
||||||
|
monitor=DP-12,1920x1080@60.0,-500x-1085,1.0
|
||||||
|
|
||||||
|
monitor=*,preffered,auto,1
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
source = ~/.config/hypr/hyprland.d/*.conf
|
||||||
|
debug:enable_stdout_logs = true
|
||||||
Whitespace-only changes.
@@ -0,0 +1,27 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"label": "Sleep",
|
||||||
|
"exec": "systemctl suspend",
|
||||||
|
"icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-suspend.svg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Hibernate",
|
||||||
|
"exec": "systemctl hibernate",
|
||||||
|
"icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-hibernate.svg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Logout",
|
||||||
|
"exec": "hyprctl dispatch exit",
|
||||||
|
"icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-log-out.svg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Reboot",
|
||||||
|
"exec": "systemctl reboot",
|
||||||
|
"icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-reboot.svg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Shutdown",
|
||||||
|
"exec": "systemctl -i poweroff",
|
||||||
|
"icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-shutdown.svg"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
window {
|
||||||
|
background-color: rgba (0, 0, 0, 1.0)
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Outer bar container, takes all the window width/height */
|
||||||
|
#outer-box {
|
||||||
|
margin: 0px
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Inner bar container, surrounds buttons */
|
||||||
|
#inner-box {
|
||||||
|
background-color: rgba (0, 0, 0, 0.85);
|
||||||
|
border-radius: 10px;
|
||||||
|
border-style: none;
|
||||||
|
border-width: 1px;
|
||||||
|
border-color: rgba (156, 142, 122, 0.7);
|
||||||
|
padding: 5px;
|
||||||
|
margin: 5px
|
||||||
|
}
|
||||||
|
|
||||||
|
button, image {
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
box-shadow: none
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
margin: 5px
|
||||||
|
}
|
||||||
|
|
||||||
|
button:hover {
|
||||||
|
background-color: rgba (255, 255, 255, 0.1)
|
||||||
|
}
|
||||||
@@ -0,0 +1,129 @@
|
|||||||
|
{
|
||||||
|
"layer": "bottom",
|
||||||
|
"position": "bottom",
|
||||||
|
"mod": "dock",
|
||||||
|
"exclusive": true,
|
||||||
|
"gtk-layer-shell": true,
|
||||||
|
"margin-bottom": -1,
|
||||||
|
"passthrough": false,
|
||||||
|
"height": 41,
|
||||||
|
"modules-left": [
|
||||||
|
"custom/os_button",
|
||||||
|
"hyprland/workspaces"
|
||||||
|
// "wlr/taskbar"
|
||||||
|
],
|
||||||
|
"modules-center": [],
|
||||||
|
"modules-right": [
|
||||||
|
"cpu",
|
||||||
|
// "temperature",
|
||||||
|
"memory",
|
||||||
|
// "disk",
|
||||||
|
// "tray",
|
||||||
|
"pulseaudio",
|
||||||
|
"network",
|
||||||
|
"battery",
|
||||||
|
"clock"
|
||||||
|
],
|
||||||
|
"hyprland/workspaces": {
|
||||||
|
"icon-size": 32,
|
||||||
|
"spacing": 16,
|
||||||
|
"on-scroll-up": "hyprctl dispatch workspace r+1",
|
||||||
|
"on-scroll-down": "hyprctl dispatch workspace r-1"
|
||||||
|
},
|
||||||
|
"custom/os_button": {
|
||||||
|
"format": "☕",
|
||||||
|
"on-click": "nwg-bar",
|
||||||
|
"tooltip": false
|
||||||
|
},
|
||||||
|
"cpu": {
|
||||||
|
"interval": 5,
|
||||||
|
"format": "💻 {usage}%",
|
||||||
|
"max-length": 10
|
||||||
|
},
|
||||||
|
"temperature": {
|
||||||
|
"hwmon-path-abs": "/sys/devices/platform/coretemp.0/hwmon",
|
||||||
|
"input-filename": "temp2_input",
|
||||||
|
"critical-threshold": 75,
|
||||||
|
"tooltip": false,
|
||||||
|
"format-critical": "({temperatureC}°C)",
|
||||||
|
"format": "({temperatureC}°C)"
|
||||||
|
},
|
||||||
|
"disk": {
|
||||||
|
"interval": 30,
|
||||||
|
"format": "💾 {percentage_used}%",
|
||||||
|
"path": "/",
|
||||||
|
"tooltip": true,
|
||||||
|
"unit": "GB",
|
||||||
|
"tooltip-format": "Available {free} of {total}"
|
||||||
|
},
|
||||||
|
"memory": {
|
||||||
|
"interval": 10,
|
||||||
|
"format": "🐏 {percentage}%",
|
||||||
|
"max-length": 10,
|
||||||
|
"tooltip": true,
|
||||||
|
"tooltip-format": "RAM - {used:0.1f}GiB used"
|
||||||
|
},
|
||||||
|
"wlr/taskbar": {
|
||||||
|
"format": "{icon} {title:.17}",
|
||||||
|
"icon-size": 28,
|
||||||
|
"spacing": 3,
|
||||||
|
"on-click-middle": "close",
|
||||||
|
"tooltip-format": "{title}",
|
||||||
|
"ignore-list": [],
|
||||||
|
"on-click": "activate"
|
||||||
|
},
|
||||||
|
"tray": {
|
||||||
|
"icon-size": 18,
|
||||||
|
"spacing": 3
|
||||||
|
},
|
||||||
|
"clock": {
|
||||||
|
"format": " {:%R\n %d.%m.%Y}",
|
||||||
|
"actions": {
|
||||||
|
"on-click-right": "mode",
|
||||||
|
"on-click-forward": "tz_up",
|
||||||
|
"on-click-backward": "tz_down",
|
||||||
|
"on-scroll-up": "shift_up",
|
||||||
|
"on-scroll-down": "shift_down"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
"format-wifi": " {icon}",
|
||||||
|
"format-ethernet": " 🔌 ",
|
||||||
|
"format-disconnected": " 🟥"
|
||||||
|
},
|
||||||
|
"battery": {
|
||||||
|
"states": {
|
||||||
|
"good": 95,
|
||||||
|
"warning": 30,
|
||||||
|
"critical": 20
|
||||||
|
},
|
||||||
|
"format": "{icon} {capacity}%",
|
||||||
|
"format-charging": "🔋 {capacity}%",
|
||||||
|
"format-plugged": "🔌 {capacity}%",
|
||||||
|
"format-alt": "{time} {icon}",
|
||||||
|
"format-icons": [
|
||||||
|
"🔋"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"pulseaudio": {
|
||||||
|
"format": "{volume}% {icon}",
|
||||||
|
"format-bluetooth": "{volume}% {icon}",
|
||||||
|
"format-icons": {
|
||||||
|
"alsa_output.pci-0000_00_1f.3.analog-stereo": "",
|
||||||
|
"alsa_output.pci-0000_00_1f.3.analog-stereo-muted": "",
|
||||||
|
"headphones": "",
|
||||||
|
"handsfree": "",
|
||||||
|
"headset": "",
|
||||||
|
"phone": "",
|
||||||
|
"phone-muted": "",
|
||||||
|
"portable": "",
|
||||||
|
"car": "",
|
||||||
|
"default": [
|
||||||
|
"",
|
||||||
|
""
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"scroll-step": 1,
|
||||||
|
"on-click": "pavucontrol"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,181 @@
|
|||||||
|
|
||||||
|
/*base background color*/
|
||||||
|
@define-color bg_main rgba(25, 25, 25, 0.65);
|
||||||
|
@define-color bg_main_tooltip rgba(0, 0, 0, 0.7);
|
||||||
|
|
||||||
|
|
||||||
|
/*base background color of selections */
|
||||||
|
@define-color bg_hover rgba(200, 200, 200, 0.3);
|
||||||
|
/*base background color of active elements */
|
||||||
|
@define-color bg_active rgba(100, 100, 100, 0.5);
|
||||||
|
|
||||||
|
/*base border color*/
|
||||||
|
@define-color border_main rgba(255, 255, 255, 0.2);
|
||||||
|
|
||||||
|
/*text color for entries, views and content in general */
|
||||||
|
@define-color content_main white;
|
||||||
|
/*text color for entries that are unselected */
|
||||||
|
@define-color content_inactive rgba(255, 255, 255, 0.25);
|
||||||
|
|
||||||
|
* {
|
||||||
|
text-shadow: none;
|
||||||
|
box-shadow: none;
|
||||||
|
border: none;
|
||||||
|
border-radius: 0;
|
||||||
|
font-family: "Fira Code", "Ubuntu";
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 12.7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
window#waybar {
|
||||||
|
background: @bg_main;
|
||||||
|
border-top: 1px solid @border_main;
|
||||||
|
color: @content_main;
|
||||||
|
}
|
||||||
|
|
||||||
|
tooltip {
|
||||||
|
background: @bg_main_tooltip;
|
||||||
|
border-radius: 5px;
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: @border_main;
|
||||||
|
}
|
||||||
|
tooltip label{
|
||||||
|
color: @content_main;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-os_button {
|
||||||
|
font-family: "JetBrainsMono Nerd Font";
|
||||||
|
font-size: 24px;
|
||||||
|
padding-left: 12px;
|
||||||
|
padding-right: 20px;
|
||||||
|
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||||
|
}
|
||||||
|
#custom-os_button:hover {
|
||||||
|
background: @bg_hover;
|
||||||
|
color: @content_main;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces {
|
||||||
|
color: transparent;
|
||||||
|
margin-right: 1.5px;
|
||||||
|
margin-left: 1.5px;
|
||||||
|
}
|
||||||
|
#workspaces button {
|
||||||
|
padding: 3px;
|
||||||
|
color: @content_inactive;
|
||||||
|
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||||
|
}
|
||||||
|
#workspaces button.active {
|
||||||
|
color: @content_main;
|
||||||
|
border-bottom: 3px solid white;
|
||||||
|
}
|
||||||
|
#workspaces button.focused {
|
||||||
|
color: @bg_active;
|
||||||
|
}
|
||||||
|
#workspaces button.urgent {
|
||||||
|
background: rgba(255, 200, 0, 0.35);
|
||||||
|
border-bottom: 3px dashed @warning_color;
|
||||||
|
color: @warning_color;
|
||||||
|
}
|
||||||
|
#workspaces button:hover {
|
||||||
|
background: @bg_hover;
|
||||||
|
color: @content_main;
|
||||||
|
}
|
||||||
|
|
||||||
|
#taskbar {
|
||||||
|
}
|
||||||
|
|
||||||
|
#taskbar button {
|
||||||
|
min-width: 130px;
|
||||||
|
border-bottom: 3px solid rgba(255, 255, 255, 0.3);
|
||||||
|
margin-left: 2px;
|
||||||
|
margin-right: 2px;
|
||||||
|
padding-left: 8px;
|
||||||
|
padding-right: 8px;
|
||||||
|
color: white;
|
||||||
|
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
#taskbar button.active {
|
||||||
|
border-bottom: 3px solid white;
|
||||||
|
background: @bg_active;
|
||||||
|
}
|
||||||
|
|
||||||
|
#taskbar button:hover {
|
||||||
|
border-bottom: 3px solid white;
|
||||||
|
background: @bg_hover;
|
||||||
|
color: @content_main;
|
||||||
|
}
|
||||||
|
|
||||||
|
#cpu, #disk, #memory {
|
||||||
|
padding:3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#temperature {
|
||||||
|
color: transparent;
|
||||||
|
font-size: 0px;
|
||||||
|
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||||
|
}
|
||||||
|
#temperature.critical {
|
||||||
|
padding-right: 3px;
|
||||||
|
color: @warning_color;
|
||||||
|
font-size: initial;
|
||||||
|
border-bottom: 3px dashed @warning_color;
|
||||||
|
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
#window {
|
||||||
|
border-radius: 10px;
|
||||||
|
margin-left: 20px;
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray{
|
||||||
|
margin-left: 5px;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
#tray > .passive {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
#tray > .active {
|
||||||
|
border-bottom: 3px solid white;
|
||||||
|
}
|
||||||
|
#tray > .needs-attention {
|
||||||
|
border-bottom: 3px solid @warning_color;
|
||||||
|
}
|
||||||
|
#tray > widget {
|
||||||
|
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||||
|
}
|
||||||
|
#tray > widget:hover {
|
||||||
|
background: @bg_hover;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pulseaudio {
|
||||||
|
font-family: "JetBrainsMono Nerd Font";
|
||||||
|
padding-left: 3px;
|
||||||
|
padding-right: 3px;
|
||||||
|
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||||
|
}
|
||||||
|
#pulseaudio:hover {
|
||||||
|
background: @bg_hover;
|
||||||
|
}
|
||||||
|
|
||||||
|
#network {
|
||||||
|
padding-left: 3px;
|
||||||
|
padding-right: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#language {
|
||||||
|
padding-left: 5px;
|
||||||
|
padding-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock {
|
||||||
|
padding-right: 5px;
|
||||||
|
padding-left: 5px;
|
||||||
|
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||||
|
}
|
||||||
|
#clock:hover {
|
||||||
|
background: @bg_hover;
|
||||||
|
}
|
||||||
@@ -1,807 +0,0 @@
|
|||||||
# vim:fileencoding=utf-8:foldmethod=marker
|
|
||||||
|
|
||||||
font_family Fira Code
|
|
||||||
font_features FiraCode-Bold +zero
|
|
||||||
|
|
||||||
# window_logo_path none
|
|
||||||
# window_logo_position bottom-right
|
|
||||||
# window_logo_alpha 0.5
|
|
||||||
|
|
||||||
#: Path to a logo image. Must be in PNG format. Relative paths are
|
|
||||||
#: interpreted relative to the kitty config directory. The logo is
|
|
||||||
#: displayed in a corner of every kitty window. The position is
|
|
||||||
#: controlled by window_logo_position. Individual windows can be
|
|
||||||
#: configured to have different logos either using the launch action
|
|
||||||
#: or the remote control <https://sw.kovidgoyal.net/kitty/remote-
|
|
||||||
#: control/> facility.
|
|
||||||
|
|
||||||
background_blur 10
|
|
||||||
# background_image none
|
|
||||||
# background_image_layout scaled
|
|
||||||
# dynamic_background_opacity no
|
|
||||||
|
|
||||||
#: Set to a positive value to enable background blur (blurring of the
|
|
||||||
#: visuals behind a transparent window) on platforms that support it.
|
|
||||||
#: Only takes effect when background_opacity is less than one. On
|
|
||||||
#: macOS, this will also control the blur radius (amount of blurring).
|
|
||||||
#: Setting it to too high a value will cause severe performance issues
|
|
||||||
#: and/or rendering artifacts. Usually, values up to 64 work well.
|
|
||||||
#: Note that this might cause performance issues, depending on how the
|
|
||||||
#: platform implements it, so use with care. Currently supported on
|
|
||||||
#: macOS and KDE under X11.
|
|
||||||
|
|
||||||
# clone_source_strategies venv,conda,env_var,path
|
|
||||||
|
|
||||||
#: Control what shell code is sourced when running clone-in-kitty in
|
|
||||||
#: the newly cloned window. The supported strategies are:
|
|
||||||
|
|
||||||
#: venv
|
|
||||||
#: Source the file $VIRTUAL_ENV/bin/activate. This is used by the
|
|
||||||
#: Python stdlib venv module and allows cloning venvs automatically.
|
|
||||||
#: conda
|
|
||||||
#: Run conda activate $CONDA_DEFAULT_ENV. This supports the virtual
|
|
||||||
#: environments created by conda.
|
|
||||||
#: env_var
|
|
||||||
#: Execute the contents of the environment variable
|
|
||||||
#: KITTY_CLONE_SOURCE_CODE with eval.
|
|
||||||
#: path
|
|
||||||
#: Source the file pointed to by the environment variable
|
|
||||||
#: KITTY_CLONE_SOURCE_PATH.
|
|
||||||
|
|
||||||
#: OS specific tweaks {{{
|
|
||||||
|
|
||||||
# wayland_titlebar_color system
|
|
||||||
|
|
||||||
#: The color of the kitty window's titlebar on Wayland systems with
|
|
||||||
#: client side window decorations such as GNOME. A value of system
|
|
||||||
#: means to use the default system color, a value of background means
|
|
||||||
#: to use the background color of the currently active window and
|
|
||||||
#: finally you can use an arbitrary color, such as #12af59 or red.
|
|
||||||
|
|
||||||
# macos_titlebar_color system
|
|
||||||
|
|
||||||
#: Keyboard shortcuts {{{
|
|
||||||
|
|
||||||
#: Keys are identified simply by their lowercase Unicode characters.
|
|
||||||
#: For example: a for the A key, [ for the left square bracket key,
|
|
||||||
#: etc. For functional keys, such as Enter or Escape, the names are
|
|
||||||
#: present at Functional key definitions
|
|
||||||
#: <https://sw.kovidgoyal.net/kitty/keyboard-protocol/#functional>.
|
|
||||||
#: For modifier keys, the names are ctrl (control, ⌃), shift (⇧), alt
|
|
||||||
#: (opt, option, ⌥), super (cmd, command, ⌘). See also: GLFW mods
|
|
||||||
#: <https://www.glfw.org/docs/latest/group__mods.html>
|
|
||||||
|
|
||||||
#: .. code-block:: none
|
|
||||||
|
|
||||||
#: on_key_input: glfw key: 0x61 native_code: 0x61 action: PRESS mods: none text: 'a'
|
|
||||||
|
|
||||||
#: Here, the key name for the A key is 0x61 and you can use it with::
|
|
||||||
|
|
||||||
#: map ctrl+0x61 something
|
|
||||||
|
|
||||||
#: to map Ctrl+A to something.
|
|
||||||
|
|
||||||
#: You can use the special action no_op to unmap a keyboard shortcut
|
|
||||||
#: that is assigned in the default configuration::
|
|
||||||
|
|
||||||
#: map kitty_mod+space no_op
|
|
||||||
|
|
||||||
#: If you would like kitty to completely ignore a key event, not even
|
|
||||||
#: sending it to the program running in the terminal, map it to
|
|
||||||
#: discard_event::
|
|
||||||
|
|
||||||
#: map kitty_mod+f1 discard_event
|
|
||||||
|
|
||||||
#: You can combine multiple actions to be triggered by a single
|
|
||||||
#: shortcut with combine action, using the syntax below::
|
|
||||||
|
|
||||||
#: map key combine <separator> action1 <separator> action2 <separator> action3 ...
|
|
||||||
|
|
||||||
#: For example::
|
|
||||||
|
|
||||||
#: map kitty_mod+e combine : new_window : next_layout
|
|
||||||
|
|
||||||
#: This will create a new window and switch to the next available
|
|
||||||
#: layout.
|
|
||||||
|
|
||||||
#: You can use multi-key shortcuts with the syntax shown below::
|
|
||||||
|
|
||||||
#: map key1>key2>key3 action
|
|
||||||
|
|
||||||
#: For example::
|
|
||||||
|
|
||||||
#: map ctrl+f>2 set_font_size 20
|
|
||||||
|
|
||||||
#: The full list of actions that can be mapped to key presses is
|
|
||||||
#: available here <https://sw.kovidgoyal.net/kitty/actions/>.
|
|
||||||
|
|
||||||
# kitty_mod ctrl+shift
|
|
||||||
|
|
||||||
#: Special modifier key alias for default shortcuts. You can change
|
|
||||||
#: the value of this option to alter all default shortcuts that use
|
|
||||||
#: kitty_mod.
|
|
||||||
|
|
||||||
# clear_all_shortcuts no
|
|
||||||
|
|
||||||
#: Remove all shortcut definitions up to this point. Useful, for
|
|
||||||
#: instance, to remove the default shortcuts.
|
|
||||||
|
|
||||||
# action_alias
|
|
||||||
|
|
||||||
#: E.g. action_alias launch_tab launch --type=tab --cwd=current
|
|
||||||
|
|
||||||
#: Define action aliases to avoid repeating the same options in
|
|
||||||
#: multiple mappings. Aliases can be defined for any action and will
|
|
||||||
#: be expanded recursively. For example, the above alias allows you to
|
|
||||||
#: create mappings to launch a new tab in the current working
|
|
||||||
#: directory without duplication::
|
|
||||||
|
|
||||||
#: map f1 launch_tab vim
|
|
||||||
#: map f2 launch_tab emacs
|
|
||||||
|
|
||||||
#: Similarly, to alias kitten invocation::
|
|
||||||
|
|
||||||
#: action_alias hints kitten hints --hints-offset=0
|
|
||||||
|
|
||||||
# kitten_alias
|
|
||||||
|
|
||||||
#: E.g. kitten_alias hints hints --hints-offset=0
|
|
||||||
|
|
||||||
#: Like action_alias above, but specifically for kittens. Generally,
|
|
||||||
#: prefer to use action_alias. This option is a legacy version,
|
|
||||||
#: present for backwards compatibility. It causes all invocations of
|
|
||||||
#: the aliased kitten to be substituted. So the example above will
|
|
||||||
#: cause all invocations of the hints kitten to have the --hints-
|
|
||||||
#: offset=0 option applied.
|
|
||||||
|
|
||||||
#: Clipboard {{{
|
|
||||||
|
|
||||||
#: Copy to clipboard
|
|
||||||
|
|
||||||
# map kitty_mod+c copy_to_clipboard
|
|
||||||
# map cmd+c copy_to_clipboard
|
|
||||||
|
|
||||||
#:: There is also a copy_or_interrupt action that can be optionally
|
|
||||||
#:: mapped to Ctrl+C. It will copy only if there is a selection and
|
|
||||||
#:: send an interrupt otherwise. Similarly,
|
|
||||||
#:: copy_and_clear_or_interrupt will copy and clear the selection or
|
|
||||||
#:: send an interrupt if there is no selection.
|
|
||||||
|
|
||||||
#: Paste from clipboard
|
|
||||||
|
|
||||||
# map kitty_mod+v paste_from_clipboard
|
|
||||||
# map cmd+v paste_from_clipboard
|
|
||||||
|
|
||||||
#: Paste from selection
|
|
||||||
|
|
||||||
# map kitty_mod+s paste_from_selection
|
|
||||||
# map shift+insert paste_from_selection
|
|
||||||
|
|
||||||
#: Pass selection to program
|
|
||||||
|
|
||||||
# map kitty_mod+o pass_selection_to_program
|
|
||||||
|
|
||||||
#:: You can also pass the contents of the current selection to any
|
|
||||||
#:: program with pass_selection_to_program. By default, the system's
|
|
||||||
#:: open program is used, but you can specify your own, the selection
|
|
||||||
#:: will be passed as a command line argument to the program. For
|
|
||||||
#:: example::
|
|
||||||
|
|
||||||
#:: map kitty_mod+o pass_selection_to_program firefox
|
|
||||||
|
|
||||||
#:: You can pass the current selection to a terminal program running
|
|
||||||
#:: in a new kitty window, by using the @selection placeholder::
|
|
||||||
|
|
||||||
#:: map kitty_mod+y new_window less @selection
|
|
||||||
|
|
||||||
#: }}}
|
|
||||||
|
|
||||||
#: Scrolling {{{
|
|
||||||
|
|
||||||
#: Scroll line up
|
|
||||||
|
|
||||||
# map kitty_mod+up scroll_line_up
|
|
||||||
# map kitty_mod+k scroll_line_up
|
|
||||||
# map opt+cmd+page_up scroll_line_up
|
|
||||||
# map cmd+up scroll_line_up
|
|
||||||
|
|
||||||
#: Scroll line down
|
|
||||||
|
|
||||||
# map kitty_mod+down scroll_line_down
|
|
||||||
# map kitty_mod+j scroll_line_down
|
|
||||||
# map opt+cmd+page_down scroll_line_down
|
|
||||||
# map cmd+down scroll_line_down
|
|
||||||
|
|
||||||
#: Scroll page up
|
|
||||||
|
|
||||||
# map kitty_mod+page_up scroll_page_up
|
|
||||||
# map cmd+page_up scroll_page_up
|
|
||||||
|
|
||||||
#: Scroll page down
|
|
||||||
|
|
||||||
# map kitty_mod+page_down scroll_page_down
|
|
||||||
# map cmd+page_down scroll_page_down
|
|
||||||
|
|
||||||
#: Scroll to top
|
|
||||||
|
|
||||||
# map kitty_mod+home scroll_home
|
|
||||||
# map cmd+home scroll_home
|
|
||||||
|
|
||||||
#: Scroll to bottom
|
|
||||||
|
|
||||||
# map kitty_mod+end scroll_end
|
|
||||||
# map cmd+end scroll_end
|
|
||||||
|
|
||||||
#: Scroll to previous shell prompt
|
|
||||||
|
|
||||||
# map kitty_mod+z scroll_to_prompt -1
|
|
||||||
|
|
||||||
#:: Use a parameter of 0 for scroll_to_prompt to scroll to the last
|
|
||||||
#:: jumped to or the last clicked position. Requires shell
|
|
||||||
#:: integration <https://sw.kovidgoyal.net/kitty/shell-integration/>
|
|
||||||
#:: to work.
|
|
||||||
|
|
||||||
#: Scroll to next shell prompt
|
|
||||||
|
|
||||||
# map kitty_mod+x scroll_to_prompt 1
|
|
||||||
|
|
||||||
#: Browse scrollback buffer in pager
|
|
||||||
|
|
||||||
# map kitty_mod+h show_scrollback
|
|
||||||
|
|
||||||
#:: You can pipe the contents of the current screen and history
|
|
||||||
#:: buffer as STDIN to an arbitrary program using launch --stdin-
|
|
||||||
#:: source. For example, the following opens the scrollback buffer in
|
|
||||||
#:: less in an overlay window::
|
|
||||||
|
|
||||||
#:: map f1 launch --stdin-source=@screen_scrollback --stdin-add-formatting --type=overlay less +G -R
|
|
||||||
|
|
||||||
#:: For more details on piping screen and buffer contents to external
|
|
||||||
#:: programs, see launch <https://sw.kovidgoyal.net/kitty/launch/>.
|
|
||||||
|
|
||||||
#: Browse output of the last shell command in pager
|
|
||||||
|
|
||||||
# map kitty_mod+g show_last_command_output
|
|
||||||
|
|
||||||
#:: You can also define additional shortcuts to get the command
|
|
||||||
#:: output. For example, to get the first command output on screen::
|
|
||||||
|
|
||||||
#:: map f1 show_first_command_output_on_screen
|
|
||||||
|
|
||||||
#:: To get the command output that was last accessed by a keyboard
|
|
||||||
#:: action or mouse action::
|
|
||||||
|
|
||||||
#:: map f1 show_last_visited_command_output
|
|
||||||
|
|
||||||
#:: You can pipe the output of the last command run in the shell
|
|
||||||
#:: using the launch action. For example, the following opens the
|
|
||||||
#:: output in less in an overlay window::
|
|
||||||
|
|
||||||
#:: map f1 launch --stdin-source=@last_cmd_output --stdin-add-formatting --type=overlay less +G -R
|
|
||||||
|
|
||||||
#:: To get the output of the first command on the screen, use
|
|
||||||
#:: @first_cmd_output_on_screen. To get the output of the last jumped
|
|
||||||
#:: to command, use @last_visited_cmd_output.
|
|
||||||
|
|
||||||
#:: Requires shell integration
|
|
||||||
#:: <https://sw.kovidgoyal.net/kitty/shell-integration/> to work.
|
|
||||||
|
|
||||||
#: }}}
|
|
||||||
|
|
||||||
#: Window management {{{
|
|
||||||
|
|
||||||
#: New window
|
|
||||||
|
|
||||||
# map kitty_mod+enter new_window
|
|
||||||
# map cmd+enter new_window
|
|
||||||
|
|
||||||
#:: You can open a new kitty window running an arbitrary program, for
|
|
||||||
#:: example::
|
|
||||||
|
|
||||||
#:: map kitty_mod+y launch mutt
|
|
||||||
|
|
||||||
#:: You can open a new window with the current working directory set
|
|
||||||
#:: to the working directory of the current window using::
|
|
||||||
|
|
||||||
#:: map ctrl+alt+enter launch --cwd=current
|
|
||||||
|
|
||||||
#:: You can open a new window that is allowed to control kitty via
|
|
||||||
#:: the kitty remote control facility with launch --allow-remote-
|
|
||||||
#:: control. Any programs running in that window will be allowed to
|
|
||||||
#:: control kitty. For example::
|
|
||||||
|
|
||||||
#:: map ctrl+enter launch --allow-remote-control some_program
|
|
||||||
|
|
||||||
#:: You can open a new window next to the currently active window or
|
|
||||||
#:: as the first window, with::
|
|
||||||
|
|
||||||
#:: map ctrl+n launch --location=neighbor
|
|
||||||
#:: map ctrl+f launch --location=first
|
|
||||||
|
|
||||||
#:: For more details, see launch
|
|
||||||
#:: <https://sw.kovidgoyal.net/kitty/launch/>.
|
|
||||||
|
|
||||||
#: New OS window
|
|
||||||
|
|
||||||
# map kitty_mod+n new_os_window
|
|
||||||
# map cmd+n new_os_window
|
|
||||||
|
|
||||||
#:: Works like new_window above, except that it opens a top-level OS
|
|
||||||
#:: window. In particular you can use new_os_window_with_cwd to open
|
|
||||||
#:: a window with the current working directory.
|
|
||||||
|
|
||||||
#: Close window
|
|
||||||
|
|
||||||
# map kitty_mod+w close_window
|
|
||||||
# map shift+cmd+d close_window
|
|
||||||
|
|
||||||
#: Next window
|
|
||||||
|
|
||||||
# map kitty_mod+] next_window
|
|
||||||
|
|
||||||
#: Previous window
|
|
||||||
|
|
||||||
# map kitty_mod+[ previous_window
|
|
||||||
|
|
||||||
#: Move window forward
|
|
||||||
|
|
||||||
# map kitty_mod+f move_window_forward
|
|
||||||
|
|
||||||
#: Move window backward
|
|
||||||
|
|
||||||
# map kitty_mod+b move_window_backward
|
|
||||||
|
|
||||||
#: Move window to top
|
|
||||||
|
|
||||||
# map kitty_mod+` move_window_to_top
|
|
||||||
|
|
||||||
#: Start resizing window
|
|
||||||
|
|
||||||
# map kitty_mod+r start_resizing_window
|
|
||||||
# map cmd+r start_resizing_window
|
|
||||||
|
|
||||||
#: First window
|
|
||||||
|
|
||||||
# map kitty_mod+1 first_window
|
|
||||||
# map cmd+1 first_window
|
|
||||||
|
|
||||||
#: Second window
|
|
||||||
|
|
||||||
# map kitty_mod+2 second_window
|
|
||||||
# map cmd+2 second_window
|
|
||||||
|
|
||||||
#: Third window
|
|
||||||
|
|
||||||
# map kitty_mod+3 third_window
|
|
||||||
# map cmd+3 third_window
|
|
||||||
|
|
||||||
#: Fourth window
|
|
||||||
|
|
||||||
# map kitty_mod+4 fourth_window
|
|
||||||
# map cmd+4 fourth_window
|
|
||||||
|
|
||||||
#: Fifth window
|
|
||||||
|
|
||||||
# map kitty_mod+5 fifth_window
|
|
||||||
# map cmd+5 fifth_window
|
|
||||||
|
|
||||||
#: Sixth window
|
|
||||||
|
|
||||||
# map kitty_mod+6 sixth_window
|
|
||||||
# map cmd+6 sixth_window
|
|
||||||
|
|
||||||
#: Seventh window
|
|
||||||
|
|
||||||
# map kitty_mod+7 seventh_window
|
|
||||||
# map cmd+7 seventh_window
|
|
||||||
|
|
||||||
#: Eighth window
|
|
||||||
|
|
||||||
# map kitty_mod+8 eighth_window
|
|
||||||
# map cmd+8 eighth_window
|
|
||||||
|
|
||||||
#: Ninth window
|
|
||||||
|
|
||||||
# map kitty_mod+9 ninth_window
|
|
||||||
# map cmd+9 ninth_window
|
|
||||||
|
|
||||||
#: Tenth window
|
|
||||||
|
|
||||||
# map kitty_mod+0 tenth_window
|
|
||||||
|
|
||||||
#: Visually select and focus window
|
|
||||||
|
|
||||||
# map kitty_mod+f7 focus_visible_window
|
|
||||||
|
|
||||||
#:: Display overlay numbers and alphabets on the window, and switch
|
|
||||||
#:: the focus to the window when you press the key. When there are
|
|
||||||
#:: only two windows, the focus will be switched directly without
|
|
||||||
#:: displaying the overlay. You can change the overlay characters and
|
|
||||||
#:: their order with option visual_window_select_characters.
|
|
||||||
|
|
||||||
#: Visually swap window with another
|
|
||||||
|
|
||||||
# map kitty_mod+f8 swap_with_window
|
|
||||||
|
|
||||||
#:: Works like focus_visible_window above, but swaps the window.
|
|
||||||
|
|
||||||
#: }}}
|
|
||||||
|
|
||||||
#: Tab management {{{
|
|
||||||
|
|
||||||
#: Next tab
|
|
||||||
|
|
||||||
# map kitty_mod+right next_tab
|
|
||||||
# map shift+cmd+] next_tab
|
|
||||||
# map ctrl+tab next_tab
|
|
||||||
|
|
||||||
#: Previous tab
|
|
||||||
|
|
||||||
# map kitty_mod+left previous_tab
|
|
||||||
# map shift+cmd+[ previous_tab
|
|
||||||
# map ctrl+shift+tab previous_tab
|
|
||||||
|
|
||||||
#: New tab
|
|
||||||
|
|
||||||
# map kitty_mod+t new_tab
|
|
||||||
# map cmd+t new_tab
|
|
||||||
|
|
||||||
#: Close tab
|
|
||||||
|
|
||||||
# map kitty_mod+q close_tab
|
|
||||||
# map cmd+w close_tab
|
|
||||||
|
|
||||||
#: Close OS window
|
|
||||||
|
|
||||||
# map shift+cmd+w close_os_window
|
|
||||||
|
|
||||||
#: Move tab forward
|
|
||||||
|
|
||||||
# map kitty_mod+. move_tab_forward
|
|
||||||
|
|
||||||
#: Move tab backward
|
|
||||||
|
|
||||||
# map kitty_mod+, move_tab_backward
|
|
||||||
|
|
||||||
#: Set tab title
|
|
||||||
|
|
||||||
# map kitty_mod+alt+t set_tab_title
|
|
||||||
# map shift+cmd+i set_tab_title
|
|
||||||
|
|
||||||
|
|
||||||
#: You can also create shortcuts to go to specific tabs, with 1 being
|
|
||||||
#: the first tab, 2 the second tab and -1 being the previously active
|
|
||||||
#: tab, and any number larger than the last tab being the last tab::
|
|
||||||
|
|
||||||
#: map ctrl+alt+1 goto_tab 1
|
|
||||||
#: map ctrl+alt+2 goto_tab 2
|
|
||||||
|
|
||||||
#: Just as with new_window above, you can also pass the name of
|
|
||||||
#: arbitrary commands to run when using new_tab and new_tab_with_cwd.
|
|
||||||
#: Finally, if you want the new tab to open next to the current tab
|
|
||||||
#: rather than at the end of the tabs list, use::
|
|
||||||
|
|
||||||
#: map ctrl+t new_tab !neighbor [optional cmd to run]
|
|
||||||
#: }}}
|
|
||||||
|
|
||||||
#: Layout management {{{
|
|
||||||
|
|
||||||
#: Next layout
|
|
||||||
|
|
||||||
# map kitty_mod+l next_layout
|
|
||||||
|
|
||||||
|
|
||||||
#: You can also create shortcuts to switch to specific layouts::
|
|
||||||
|
|
||||||
#: map ctrl+alt+t goto_layout tall
|
|
||||||
#: map ctrl+alt+s goto_layout stack
|
|
||||||
|
|
||||||
#: Similarly, to switch back to the previous layout::
|
|
||||||
|
|
||||||
#: map ctrl+alt+p last_used_layout
|
|
||||||
|
|
||||||
#: There is also a toggle_layout action that switches to the named
|
|
||||||
#: layout or back to the previous layout if in the named layout.
|
|
||||||
#: Useful to temporarily "zoom" the active window by switching to the
|
|
||||||
#: stack layout::
|
|
||||||
|
|
||||||
#: map ctrl+alt+z toggle_layout stack
|
|
||||||
#: }}}
|
|
||||||
|
|
||||||
#: Font sizes {{{
|
|
||||||
|
|
||||||
#: You can change the font size for all top-level kitty OS windows at
|
|
||||||
#: a time or only the current one.
|
|
||||||
|
|
||||||
#: Increase font size
|
|
||||||
|
|
||||||
# map kitty_mod+equal change_font_size all +2.0
|
|
||||||
# map kitty_mod+plus change_font_size all +2.0
|
|
||||||
# map kitty_mod+kp_add change_font_size all +2.0
|
|
||||||
# map cmd+plus change_font_size all +2.0
|
|
||||||
# map cmd+equal change_font_size all +2.0
|
|
||||||
# map shift+cmd+equal change_font_size all +2.0
|
|
||||||
|
|
||||||
#: Decrease font size
|
|
||||||
|
|
||||||
# map kitty_mod+minus change_font_size all -2.0
|
|
||||||
# map kitty_mod+kp_subtract change_font_size all -2.0
|
|
||||||
# map cmd+minus change_font_size all -2.0
|
|
||||||
# map shift+cmd+minus change_font_size all -2.0
|
|
||||||
|
|
||||||
#: Reset font size
|
|
||||||
|
|
||||||
# map kitty_mod+backspace change_font_size all 0
|
|
||||||
# map cmd+0 change_font_size all 0
|
|
||||||
|
|
||||||
|
|
||||||
#: To setup shortcuts for specific font sizes::
|
|
||||||
|
|
||||||
#: map kitty_mod+f6 change_font_size all 10.0
|
|
||||||
|
|
||||||
#: To setup shortcuts to change only the current OS window's font
|
|
||||||
#: size::
|
|
||||||
|
|
||||||
#: map kitty_mod+f6 change_font_size current 10.0
|
|
||||||
#: }}}
|
|
||||||
|
|
||||||
#: Select and act on visible text {{{
|
|
||||||
|
|
||||||
#: Use the hints kitten to select text and either pass it to an
|
|
||||||
#: external program or insert it into the terminal or copy it to the
|
|
||||||
#: clipboard.
|
|
||||||
|
|
||||||
#: Open URL
|
|
||||||
|
|
||||||
# map kitty_mod+e open_url_with_hints
|
|
||||||
|
|
||||||
#:: Open a currently visible URL using the keyboard. The program used
|
|
||||||
#:: to open the URL is specified in open_url_with.
|
|
||||||
|
|
||||||
#: Insert selected path
|
|
||||||
|
|
||||||
# map kitty_mod+p>f kitten hints --type path --program -
|
|
||||||
|
|
||||||
#:: Select a path/filename and insert it into the terminal. Useful,
|
|
||||||
#:: for instance to run git commands on a filename output from a
|
|
||||||
#:: previous git command.
|
|
||||||
|
|
||||||
#: Open selected path
|
|
||||||
|
|
||||||
# map kitty_mod+p>shift+f kitten hints --type path
|
|
||||||
|
|
||||||
#:: Select a path/filename and open it with the default open program.
|
|
||||||
|
|
||||||
#: Insert selected line
|
|
||||||
|
|
||||||
# map kitty_mod+p>l kitten hints --type line --program -
|
|
||||||
|
|
||||||
#:: Select a line of text and insert it into the terminal. Useful for
|
|
||||||
#:: the output of things like: `ls -1`.
|
|
||||||
|
|
||||||
#: Insert selected word
|
|
||||||
|
|
||||||
# map kitty_mod+p>w kitten hints --type word --program -
|
|
||||||
|
|
||||||
#:: Select words and insert into terminal.
|
|
||||||
|
|
||||||
#: Insert selected hash
|
|
||||||
|
|
||||||
# map kitty_mod+p>h kitten hints --type hash --program -
|
|
||||||
|
|
||||||
#:: Select something that looks like a hash and insert it into the
|
|
||||||
#:: terminal. Useful with git, which uses SHA1 hashes to identify
|
|
||||||
#:: commits.
|
|
||||||
|
|
||||||
#: Open the selected file at the selected line
|
|
||||||
|
|
||||||
# map kitty_mod+p>n kitten hints --type linenum
|
|
||||||
|
|
||||||
#:: Select something that looks like filename:linenum and open it in
|
|
||||||
#:: vim at the specified line number.
|
|
||||||
|
|
||||||
#: Open the selected hyperlink
|
|
||||||
|
|
||||||
# map kitty_mod+p>y kitten hints --type hyperlink
|
|
||||||
|
|
||||||
#:: Select a hyperlink (i.e. a URL that has been marked as such by
|
|
||||||
#:: the terminal program, for example, by `ls --hyperlink=auto`).
|
|
||||||
|
|
||||||
|
|
||||||
#: The hints kitten has many more modes of operation that you can map
|
|
||||||
#: to different shortcuts. For a full description see hints kitten
|
|
||||||
#: <https://sw.kovidgoyal.net/kitty/kittens/hints/>.
|
|
||||||
#: }}}
|
|
||||||
|
|
||||||
#: Miscellaneous {{{
|
|
||||||
|
|
||||||
#: Show documentation
|
|
||||||
|
|
||||||
# map kitty_mod+f1 show_kitty_doc overview
|
|
||||||
|
|
||||||
#: Toggle fullscreen
|
|
||||||
|
|
||||||
# map kitty_mod+f11 toggle_fullscreen
|
|
||||||
# map ctrl+cmd+f toggle_fullscreen
|
|
||||||
|
|
||||||
#: Toggle maximized
|
|
||||||
|
|
||||||
# map kitty_mod+f10 toggle_maximized
|
|
||||||
|
|
||||||
#: Toggle macOS secure keyboard entry
|
|
||||||
|
|
||||||
# map opt+cmd+s toggle_macos_secure_keyboard_entry
|
|
||||||
|
|
||||||
#: Unicode input
|
|
||||||
|
|
||||||
# map kitty_mod+u kitten unicode_input
|
|
||||||
# map ctrl+cmd+space kitten unicode_input
|
|
||||||
|
|
||||||
#: Edit config file
|
|
||||||
|
|
||||||
# map kitty_mod+f2 edit_config_file
|
|
||||||
# map cmd+, edit_config_file
|
|
||||||
|
|
||||||
#: Open the kitty command shell
|
|
||||||
|
|
||||||
# map kitty_mod+escape kitty_shell window
|
|
||||||
|
|
||||||
#:: Open the kitty shell in a new window / tab / overlay / os_window
|
|
||||||
#:: to control kitty using commands.
|
|
||||||
|
|
||||||
#: Increase background opacity
|
|
||||||
|
|
||||||
# map kitty_mod+a>m set_background_opacity +0.1
|
|
||||||
|
|
||||||
#: Decrease background opacity
|
|
||||||
|
|
||||||
# map kitty_mod+a>l set_background_opacity -0.1
|
|
||||||
|
|
||||||
#: Make background fully opaque
|
|
||||||
|
|
||||||
# map kitty_mod+a>1 set_background_opacity 1
|
|
||||||
|
|
||||||
#: Reset background opacity
|
|
||||||
|
|
||||||
# map kitty_mod+a>d set_background_opacity default
|
|
||||||
|
|
||||||
#: Reset the terminal
|
|
||||||
|
|
||||||
# map kitty_mod+delete clear_terminal reset active
|
|
||||||
# map opt+cmd+r clear_terminal reset active
|
|
||||||
|
|
||||||
#:: You can create shortcuts to clear/reset the terminal. For
|
|
||||||
#:: example::
|
|
||||||
|
|
||||||
#:: # Reset the terminal
|
|
||||||
#:: map f1 clear_terminal reset active
|
|
||||||
#:: # Clear the terminal screen by erasing all contents
|
|
||||||
#:: map f1 clear_terminal clear active
|
|
||||||
#:: # Clear the terminal scrollback by erasing it
|
|
||||||
#:: map f1 clear_terminal scrollback active
|
|
||||||
#:: # Scroll the contents of the screen into the scrollback
|
|
||||||
#:: map f1 clear_terminal scroll active
|
|
||||||
#:: # Clear everything up to the line with the cursor
|
|
||||||
#:: map f1 clear_terminal to_cursor active
|
|
||||||
|
|
||||||
#:: If you want to operate on all kitty windows instead of just the
|
|
||||||
#:: current one, use all instead of active.
|
|
||||||
|
|
||||||
#:: Some useful functions that can be defined in the shell rc files
|
|
||||||
#:: to perform various kinds of clearing of the current window:
|
|
||||||
|
|
||||||
#:: .. code-block:: sh
|
|
||||||
|
|
||||||
#:: clear-only-screen() {
|
|
||||||
#:: printf "\e[H\e[2J"
|
|
||||||
#:: }
|
|
||||||
|
|
||||||
#:: clear-screen-and-scrollback() {
|
|
||||||
#:: printf "\e[H\e[3J"
|
|
||||||
#:: }
|
|
||||||
|
|
||||||
#:: clear-screen-saving-contents-in-scrollback() {
|
|
||||||
#:: printf "\e[H\e[22J"
|
|
||||||
#:: }
|
|
||||||
|
|
||||||
#:: For instance, using these escape codes, it is possible to remap
|
|
||||||
#:: Ctrl+L to both scroll the current screen contents into the
|
|
||||||
#:: scrollback buffer and clear the screen, instead of just clearing
|
|
||||||
#:: the screen. For ZSH, in ~/.zshrc, add:
|
|
||||||
|
|
||||||
#:: .. code-block:: zsh
|
|
||||||
|
|
||||||
#:: ctrl_l() {
|
|
||||||
#:: builtin print -rn -- $'\r\e[0J\e[H\e[22J' >"$TTY"
|
|
||||||
#:: builtin zle .reset-prompt
|
|
||||||
#:: builtin zle -R
|
|
||||||
#:: }
|
|
||||||
#:: zle -N ctrl_l
|
|
||||||
#:: bindkey '^l' ctrl_l
|
|
||||||
|
|
||||||
#: Clear up to cursor line
|
|
||||||
|
|
||||||
# map cmd+k clear_terminal to_cursor active
|
|
||||||
|
|
||||||
#: Reload kitty.conf
|
|
||||||
|
|
||||||
# map kitty_mod+f5 load_config_file
|
|
||||||
# map ctrl+cmd+, load_config_file
|
|
||||||
|
|
||||||
#:: Reload kitty.conf, applying any changes since the last time it
|
|
||||||
#:: was loaded. Note that a handful of options cannot be dynamically
|
|
||||||
#:: changed and require a full restart of kitty. Particularly, when
|
|
||||||
#:: changing shortcuts for actions located on the macOS global menu
|
|
||||||
#:: bar, a full restart is needed. You can also map a keybinding to
|
|
||||||
#:: load a different config file, for example::
|
|
||||||
|
|
||||||
#:: map f5 load_config /path/to/alternative/kitty.conf
|
|
||||||
|
|
||||||
#:: Note that all options from the original kitty.conf are discarded,
|
|
||||||
#:: in other words the new configuration *replace* the old ones.
|
|
||||||
|
|
||||||
#: Debug kitty configuration
|
|
||||||
|
|
||||||
# map kitty_mod+f6 debug_config
|
|
||||||
# map opt+cmd+, debug_config
|
|
||||||
|
|
||||||
#:: Show details about exactly what configuration kitty is running
|
|
||||||
#:: with and its host environment. Useful for debugging issues.
|
|
||||||
|
|
||||||
#: Send arbitrary text on key presses
|
|
||||||
|
|
||||||
#:: E.g. map ctrl+shift+alt+h send_text all Hello World
|
|
||||||
|
|
||||||
#:: You can tell kitty to send arbitrary (UTF-8) encoded text to the
|
|
||||||
#:: client program when pressing specified shortcut keys. For
|
|
||||||
#:: example::
|
|
||||||
|
|
||||||
#:: map ctrl+alt+a send_text all Special text
|
|
||||||
|
|
||||||
#:: This will send "Special text" when you press the Ctrl+Alt+A key
|
|
||||||
#:: combination. The text to be sent decodes ANSI C escapes
|
|
||||||
#:: <https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-
|
|
||||||
#:: Quoting.html> so you can use escapes like \e to send control
|
|
||||||
#:: codes or \u21fb to send Unicode characters (or you can just input
|
|
||||||
#:: the Unicode characters directly as UTF-8 text). You can use
|
|
||||||
#:: `kitten show_key` to get the key escape codes you want to
|
|
||||||
#:: emulate.
|
|
||||||
|
|
||||||
#:: The first argument to send_text is the keyboard modes in which to
|
|
||||||
#:: activate the shortcut. The possible values are normal,
|
|
||||||
#:: application, kitty or a comma separated combination of them. The
|
|
||||||
#:: modes normal and application refer to the DECCKM cursor key mode
|
|
||||||
#:: for terminals, and kitty refers to the kitty extended keyboard
|
|
||||||
#:: protocol. The special value all means all of them.
|
|
||||||
|
|
||||||
#:: Some more examples::
|
|
||||||
|
|
||||||
#:: # Output a word and move the cursor to the start of the line (like typing and pressing Home)
|
|
||||||
#:: map ctrl+alt+a send_text normal Word\e[H
|
|
||||||
#:: map ctrl+alt+a send_text application Word\eOH
|
|
||||||
#:: # Run a command at a shell prompt (like typing the command and pressing Enter)
|
|
||||||
#:: map ctrl+alt+a send_text normal,application some command with arguments\r
|
|
||||||
|
|
||||||
#: Open kitty Website
|
|
||||||
|
|
||||||
# map shift+cmd+/ open_url https://sw.kovidgoyal.net/kitty/
|
|
||||||
|
|
||||||
#: Hide macOS kitty application
|
|
||||||
|
|
||||||
# map cmd+h hide_macos_app
|
|
||||||
|
|
||||||
#: Hide macOS other applications
|
|
||||||
|
|
||||||
# map opt+cmd+h hide_macos_other_apps
|
|
||||||
|
|
||||||
#: Minimize macOS window
|
|
||||||
|
|
||||||
# map cmd+m minimize_macos_window
|
|
||||||
|
|
||||||
#: Quit kitty
|
|
||||||
|
|
||||||
# map cmd+q quit
|
|
||||||
|
|
||||||
#: }}}
|
|
||||||
|
|
||||||
#: }}}
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
gesture swipe up xdotool key Super+Tab
|
||||||
|
gesture swipe left xdotool key Super+Right
|
||||||
|
gesture swipe down xdotool key Super+Escape
|
||||||
|
gesture swipe right xdotool key Super+Left
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"label": "Sleep",
|
||||||
|
"exec": "systemctl suspend",
|
||||||
|
"icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-suspend.svg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Hibernate",
|
||||||
|
"exec": "systemctl hibernate",
|
||||||
|
"icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-hibernate.svg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Logout",
|
||||||
|
"exec": "hyprctl dispatch exit",
|
||||||
|
"icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-log-out.svg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Reboot",
|
||||||
|
"exec": "systemctl reboot",
|
||||||
|
"icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-reboot.svg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Shutdown",
|
||||||
|
"exec": "systemctl -i poweroff",
|
||||||
|
"icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-shutdown.svg"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
window {
|
||||||
|
background-color: rgba (0, 0, 0, 1.0)
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Outer bar container, takes all the window width/height */
|
||||||
|
#outer-box {
|
||||||
|
margin: 0px
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Inner bar container, surrounds buttons */
|
||||||
|
#inner-box {
|
||||||
|
background-color: rgba (0, 0, 0, 0.85);
|
||||||
|
border-radius: 10px;
|
||||||
|
border-style: none;
|
||||||
|
border-width: 1px;
|
||||||
|
border-color: rgba (156, 142, 122, 0.7);
|
||||||
|
padding: 5px;
|
||||||
|
margin: 5px
|
||||||
|
}
|
||||||
|
|
||||||
|
button, image {
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
box-shadow: none
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
margin: 5px
|
||||||
|
}
|
||||||
|
|
||||||
|
button:hover {
|
||||||
|
background-color: rgba (255, 255, 255, 0.1)
|
||||||
|
}
|
||||||
@@ -0,0 +1,129 @@
|
|||||||
|
{
|
||||||
|
"layer": "bottom",
|
||||||
|
"position": "bottom",
|
||||||
|
"mod": "dock",
|
||||||
|
"exclusive": true,
|
||||||
|
"gtk-layer-shell": true,
|
||||||
|
"margin-bottom": -1,
|
||||||
|
"passthrough": false,
|
||||||
|
"height": 41,
|
||||||
|
"modules-left": [
|
||||||
|
"custom/os_button",
|
||||||
|
"hyprland/workspaces"
|
||||||
|
// "wlr/taskbar"
|
||||||
|
],
|
||||||
|
"modules-center": [],
|
||||||
|
"modules-right": [
|
||||||
|
"cpu",
|
||||||
|
// "temperature",
|
||||||
|
"memory",
|
||||||
|
// "disk",
|
||||||
|
// "tray",
|
||||||
|
"pulseaudio",
|
||||||
|
"network",
|
||||||
|
"battery",
|
||||||
|
"clock"
|
||||||
|
],
|
||||||
|
"hyprland/workspaces": {
|
||||||
|
"icon-size": 32,
|
||||||
|
"spacing": 16,
|
||||||
|
"on-scroll-up": "hyprctl dispatch workspace r+1",
|
||||||
|
"on-scroll-down": "hyprctl dispatch workspace r-1"
|
||||||
|
},
|
||||||
|
"custom/os_button": {
|
||||||
|
"format": "☕",
|
||||||
|
"on-click": "nwg-bar",
|
||||||
|
"tooltip": false
|
||||||
|
},
|
||||||
|
"cpu": {
|
||||||
|
"interval": 5,
|
||||||
|
"format": "💻 {usage}%",
|
||||||
|
"max-length": 10
|
||||||
|
},
|
||||||
|
"temperature": {
|
||||||
|
"hwmon-path-abs": "/sys/devices/platform/coretemp.0/hwmon",
|
||||||
|
"input-filename": "temp2_input",
|
||||||
|
"critical-threshold": 75,
|
||||||
|
"tooltip": false,
|
||||||
|
"format-critical": "({temperatureC}°C)",
|
||||||
|
"format": "({temperatureC}°C)"
|
||||||
|
},
|
||||||
|
"disk": {
|
||||||
|
"interval": 30,
|
||||||
|
"format": "💾 {percentage_used}%",
|
||||||
|
"path": "/",
|
||||||
|
"tooltip": true,
|
||||||
|
"unit": "GB",
|
||||||
|
"tooltip-format": "Available {free} of {total}"
|
||||||
|
},
|
||||||
|
"memory": {
|
||||||
|
"interval": 10,
|
||||||
|
"format": "🐏 {percentage}%",
|
||||||
|
"max-length": 10,
|
||||||
|
"tooltip": true,
|
||||||
|
"tooltip-format": "RAM - {used:0.1f}GiB used"
|
||||||
|
},
|
||||||
|
"wlr/taskbar": {
|
||||||
|
"format": "{icon} {title:.17}",
|
||||||
|
"icon-size": 28,
|
||||||
|
"spacing": 3,
|
||||||
|
"on-click-middle": "close",
|
||||||
|
"tooltip-format": "{title}",
|
||||||
|
"ignore-list": [],
|
||||||
|
"on-click": "activate"
|
||||||
|
},
|
||||||
|
"tray": {
|
||||||
|
"icon-size": 18,
|
||||||
|
"spacing": 3
|
||||||
|
},
|
||||||
|
"clock": {
|
||||||
|
"format": " {:%R\n %d.%m.%Y}",
|
||||||
|
"actions": {
|
||||||
|
"on-click-right": "mode",
|
||||||
|
"on-click-forward": "tz_up",
|
||||||
|
"on-click-backward": "tz_down",
|
||||||
|
"on-scroll-up": "shift_up",
|
||||||
|
"on-scroll-down": "shift_down"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
"format-wifi": " {icon}",
|
||||||
|
"format-ethernet": " 🔌 ",
|
||||||
|
"format-disconnected": " 🟥"
|
||||||
|
},
|
||||||
|
"battery": {
|
||||||
|
"states": {
|
||||||
|
"good": 95,
|
||||||
|
"warning": 30,
|
||||||
|
"critical": 20
|
||||||
|
},
|
||||||
|
"format": "{icon} {capacity}%",
|
||||||
|
"format-charging": "🔋 {capacity}%",
|
||||||
|
"format-plugged": "🔌 {capacity}%",
|
||||||
|
"format-alt": "{time} {icon}",
|
||||||
|
"format-icons": [
|
||||||
|
"🔋"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"pulseaudio": {
|
||||||
|
"format": "{volume}% {icon}",
|
||||||
|
"format-bluetooth": "{volume}% {icon}",
|
||||||
|
"format-icons": {
|
||||||
|
"alsa_output.pci-0000_00_1f.3.analog-stereo": "",
|
||||||
|
"alsa_output.pci-0000_00_1f.3.analog-stereo-muted": "",
|
||||||
|
"headphones": "",
|
||||||
|
"handsfree": "",
|
||||||
|
"headset": "",
|
||||||
|
"phone": "",
|
||||||
|
"phone-muted": "",
|
||||||
|
"portable": "",
|
||||||
|
"car": "",
|
||||||
|
"default": [
|
||||||
|
"",
|
||||||
|
""
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"scroll-step": 1,
|
||||||
|
"on-click": "pavucontrol"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,158 +0,0 @@
|
|||||||
{
|
|
||||||
"layer": "bottom",
|
|
||||||
"position": "top",
|
|
||||||
"name": "waybar",
|
|
||||||
"width": "50px",
|
|
||||||
"modules-left": [
|
|
||||||
"hyprland/workspaces"
|
|
||||||
],
|
|
||||||
"modules-center": [
|
|
||||||
"group/hardware"
|
|
||||||
],
|
|
||||||
"modules-right": [
|
|
||||||
"group/sound",
|
|
||||||
"group/right-side"
|
|
||||||
],
|
|
||||||
"hyprland/workspaces": {
|
|
||||||
"format": "{icon}",
|
|
||||||
"tooltip": false,
|
|
||||||
"all-outputs": true,
|
|
||||||
"format-icons": {
|
|
||||||
"active": "",
|
|
||||||
"default": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"clock": {
|
|
||||||
"format": "<span color='#b4befe'> </span>{:%H:%M}",
|
|
||||||
},
|
|
||||||
"backlight": {
|
|
||||||
"device": "intel_backlight",
|
|
||||||
"format": "<span color='#b4befe'>{icon}</span> {percent}%",
|
|
||||||
"format-icons": [
|
|
||||||
"",
|
|
||||||
"",
|
|
||||||
"",
|
|
||||||
"",
|
|
||||||
"",
|
|
||||||
"",
|
|
||||||
"",
|
|
||||||
"",
|
|
||||||
""
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"pulseaudio": {
|
|
||||||
"format": "<span color='#b4befe'>{icon}</span> {volume}%",
|
|
||||||
"format-muted": "",
|
|
||||||
"tooltip": false,
|
|
||||||
"format-icons": {
|
|
||||||
"headphone": "",
|
|
||||||
"default": [
|
|
||||||
"",
|
|
||||||
"",
|
|
||||||
"",
|
|
||||||
"",
|
|
||||||
"",
|
|
||||||
"",
|
|
||||||
"",
|
|
||||||
""
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"scroll-step": 1,
|
|
||||||
"on-click": "pavucontrol"
|
|
||||||
},
|
|
||||||
"pulseaudio/slider": {
|
|
||||||
"min": 0,
|
|
||||||
"max": 100,
|
|
||||||
"orientation": "horizontal"
|
|
||||||
},
|
|
||||||
"network": {
|
|
||||||
"format": "{ifname}",
|
|
||||||
"format-wifi": "<span color='#b4befe'> </span>{essid}",
|
|
||||||
"format-ethernet": "{ipaddr}/{cidr} ",
|
|
||||||
"format-disconnected": "<span color='#b4befe'> </span>No Network",
|
|
||||||
"tooltip": false,
|
|
||||||
"on-click": "nm-connection-editor"
|
|
||||||
},
|
|
||||||
"group/sound": {
|
|
||||||
"orientation": "inherit",
|
|
||||||
"drawer": {
|
|
||||||
"transition-duration": 500,
|
|
||||||
"transition-left-to-right": false
|
|
||||||
},
|
|
||||||
"modules": [
|
|
||||||
"pulseaudio",
|
|
||||||
"pulseaudio/slider"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"group/right-side": {
|
|
||||||
"orientation": "inherit",
|
|
||||||
"drawer": {
|
|
||||||
"transition-duration": 500,
|
|
||||||
"transition-left-to-right": false
|
|
||||||
},
|
|
||||||
"modules": [
|
|
||||||
"battery",
|
|
||||||
"backlight",
|
|
||||||
"custom/logout",
|
|
||||||
"custom/suspend"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"battery": {
|
|
||||||
"states": {
|
|
||||||
"warning": 30,
|
|
||||||
"critical": 15
|
|
||||||
},
|
|
||||||
"format": "{capacity}%|{power}w {icon}",
|
|
||||||
"format-icons": ["", "", "", "", ""],
|
|
||||||
"design-capacity": true
|
|
||||||
},
|
|
||||||
"custom/logout": {
|
|
||||||
"format": "Logout",
|
|
||||||
"tooltip": false,
|
|
||||||
"on-click": "hyprctl dispatch exit"
|
|
||||||
},
|
|
||||||
"custom/suspend": {
|
|
||||||
"format": "Suspend",
|
|
||||||
"tooltip": false,
|
|
||||||
"on-click": "systemctl suspend"
|
|
||||||
},
|
|
||||||
"group/hardware": {
|
|
||||||
"orientation": "inherit",
|
|
||||||
"drawer": {
|
|
||||||
"transition-duration": 500,
|
|
||||||
"transition-left-to-right": false
|
|
||||||
},
|
|
||||||
"modules": [
|
|
||||||
"clock",
|
|
||||||
"bluetooth",
|
|
||||||
"cpu",
|
|
||||||
"memory",
|
|
||||||
"network",
|
|
||||||
"temperature"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"bluetooth": {
|
|
||||||
"on-click": "blueman-manager"
|
|
||||||
},
|
|
||||||
"cpu": {
|
|
||||||
"interval": 1,
|
|
||||||
"format": "{icon}cpu",
|
|
||||||
"format-icons": [
|
|
||||||
"<span color='#69ff94'>▁</span>", // green
|
|
||||||
"<span color='#2aa9ff'>▂</span>", // blue
|
|
||||||
"<span color='#f8f8f2'>▃</span>", // white
|
|
||||||
"<span color='#f8f8f2'>▄</span>", // white
|
|
||||||
"<span color='#ffffa5'>▅</span>", // yellow
|
|
||||||
"<span color='#ffffa5'>▆</span>", // yellow
|
|
||||||
"<span color='#ff9977'>▇</span>", // orange
|
|
||||||
"<span color='#dd532e'>█</span>" // red
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"memory": {
|
|
||||||
"interval": 30,
|
|
||||||
"format": "{used:0.1f}G/{total:0.1f}G"
|
|
||||||
},
|
|
||||||
"temperature": {
|
|
||||||
"format": "{temperatureC}°C "
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+162
-34
@@ -1,53 +1,181 @@
|
|||||||
|
|
||||||
|
/*base background color*/
|
||||||
|
@define-color bg_main rgba(25, 25, 25, 0.65);
|
||||||
|
@define-color bg_main_tooltip rgba(0, 0, 0, 0.7);
|
||||||
|
|
||||||
|
|
||||||
|
/*base background color of selections */
|
||||||
|
@define-color bg_hover rgba(200, 200, 200, 0.3);
|
||||||
|
/*base background color of active elements */
|
||||||
|
@define-color bg_active rgba(100, 100, 100, 0.5);
|
||||||
|
|
||||||
|
/*base border color*/
|
||||||
|
@define-color border_main rgba(255, 255, 255, 0.2);
|
||||||
|
|
||||||
|
/*text color for entries, views and content in general */
|
||||||
|
@define-color content_main white;
|
||||||
|
/*text color for entries that are unselected */
|
||||||
|
@define-color content_inactive rgba(255, 255, 255, 0.25);
|
||||||
|
|
||||||
* {
|
* {
|
||||||
border: none;
|
text-shadow: none;
|
||||||
font-family: 'Fira Code', 'Symbols Nerd Font Mono';
|
box-shadow: none;
|
||||||
font-size: 16px;
|
border: none;
|
||||||
font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"';
|
border-radius: 0;
|
||||||
/* min-height: 25px; */
|
font-family: "Fira Code", "Ubuntu";
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 12.7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
window#waybar {
|
window#waybar {
|
||||||
background: transparent;
|
background: @bg_main;
|
||||||
|
border-top: 1px solid @border_main;
|
||||||
|
color: @content_main;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tooltip {
|
||||||
|
background: @bg_main_tooltip;
|
||||||
|
border-radius: 5px;
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: @border_main;
|
||||||
|
}
|
||||||
|
tooltip label{
|
||||||
|
color: @content_main;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-os_button {
|
||||||
|
font-family: "JetBrainsMono Nerd Font";
|
||||||
|
font-size: 24px;
|
||||||
|
padding-left: 12px;
|
||||||
|
padding-right: 20px;
|
||||||
|
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||||
|
}
|
||||||
|
#custom-os_button:hover {
|
||||||
|
background: @bg_hover;
|
||||||
|
color: @content_main;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces {
|
||||||
|
color: transparent;
|
||||||
|
margin-right: 1.5px;
|
||||||
|
margin-left: 1.5px;
|
||||||
|
}
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
color: #b4befe;
|
padding: 3px;
|
||||||
|
color: @content_inactive;
|
||||||
|
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||||
|
}
|
||||||
|
#workspaces button.active {
|
||||||
|
color: @content_main;
|
||||||
|
border-bottom: 3px solid white;
|
||||||
|
}
|
||||||
|
#workspaces button.focused {
|
||||||
|
color: @bg_active;
|
||||||
|
}
|
||||||
|
#workspaces button.urgent {
|
||||||
|
background: rgba(255, 200, 0, 0.35);
|
||||||
|
border-bottom: 3px dashed @warning_color;
|
||||||
|
color: @warning_color;
|
||||||
|
}
|
||||||
|
#workspaces button:hover {
|
||||||
|
background: @bg_hover;
|
||||||
|
color: @content_main;
|
||||||
}
|
}
|
||||||
|
|
||||||
window#waybar > box {
|
#taskbar {
|
||||||
|
}
|
||||||
|
|
||||||
|
#taskbar button {
|
||||||
|
min-width: 130px;
|
||||||
|
border-bottom: 3px solid rgba(255, 255, 255, 0.3);
|
||||||
|
margin-left: 2px;
|
||||||
|
margin-right: 2px;
|
||||||
|
padding-left: 8px;
|
||||||
|
padding-right: 8px;
|
||||||
|
color: white;
|
||||||
|
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
#taskbar button.active {
|
||||||
|
border-bottom: 3px solid white;
|
||||||
|
background: @bg_active;
|
||||||
|
}
|
||||||
|
|
||||||
|
#taskbar button:hover {
|
||||||
|
border-bottom: 3px solid white;
|
||||||
|
background: @bg_hover;
|
||||||
|
color: @content_main;
|
||||||
|
}
|
||||||
|
|
||||||
|
#cpu, #disk, #memory {
|
||||||
|
padding:3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#temperature {
|
||||||
|
color: transparent;
|
||||||
|
font-size: 0px;
|
||||||
|
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||||
|
}
|
||||||
|
#temperature.critical {
|
||||||
|
padding-right: 3px;
|
||||||
|
color: @warning_color;
|
||||||
|
font-size: initial;
|
||||||
|
border-bottom: 3px dashed @warning_color;
|
||||||
|
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
#window {
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
margin-top: 5px;
|
margin-left: 20px;
|
||||||
margin-left: 15px;
|
margin-right: 20px;
|
||||||
margin-right: 15px;
|
|
||||||
margin-bottom: 0px;
|
|
||||||
padding-bottom: 0px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#tray{
|
||||||
widget > * {
|
margin-left: 5px;
|
||||||
border-radius: 10px;
|
margin-right: 5px;
|
||||||
color: #cdd6f4;
|
}
|
||||||
border-left: 1px solid #cdd6f4;
|
#tray > .passive {
|
||||||
border-right: 1px solid #cdd6f4;
|
border-bottom: none;
|
||||||
padding-left: 10px;
|
}
|
||||||
padding-right: 10px;
|
#tray > .active {
|
||||||
margin-left: 10px;
|
border-bottom: 3px solid white;
|
||||||
|
}
|
||||||
|
#tray > .needs-attention {
|
||||||
|
border-bottom: 3px solid @warning_color;
|
||||||
|
}
|
||||||
|
#tray > widget {
|
||||||
|
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||||
|
}
|
||||||
|
#tray > widget:hover {
|
||||||
|
background: @bg_hover;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pulseaudio-slider scale {
|
#pulseaudio {
|
||||||
padding: 0;
|
font-family: "JetBrainsMono Nerd Font";
|
||||||
|
padding-left: 3px;
|
||||||
|
padding-right: 3px;
|
||||||
|
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||||
}
|
}
|
||||||
/* #pulseaudio-slider scale contents {
|
#pulseaudio:hover {
|
||||||
min-height: 0px;
|
background: @bg_hover;
|
||||||
} */
|
|
||||||
#pulseaudio-slider trough {
|
|
||||||
background-color: #cdd6f4;
|
|
||||||
}
|
}
|
||||||
#pulseaudio-slider highlight {
|
|
||||||
background-color: green;
|
#network {
|
||||||
min-height: 16px;
|
padding-left: 3px;
|
||||||
|
padding-right: 3px;
|
||||||
}
|
}
|
||||||
#pulseaudio-slider trough, #backlight-slider trough {
|
|
||||||
min-width: 100px;
|
#language {
|
||||||
|
padding-left: 5px;
|
||||||
|
padding-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock {
|
||||||
|
padding-right: 5px;
|
||||||
|
padding-left: 5px;
|
||||||
|
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||||
|
}
|
||||||
|
#clock:hover {
|
||||||
|
background: @bg_hover;
|
||||||
}
|
}
|
||||||
@@ -1 +0,0 @@
|
|||||||
/etc/nixos/configuration.nix
|
|
||||||
-156
@@ -1,156 +0,0 @@
|
|||||||
{
|
|
||||||
"nodes": {
|
|
||||||
"devenv": {
|
|
||||||
"locked": {
|
|
||||||
"dir": "src/modules",
|
|
||||||
"lastModified": 1713632052,
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "devenv",
|
|
||||||
"rev": "9c134f73b11b298674317b84292fa126744a65fb",
|
|
||||||
"treeHash": "b23850beedbddb3c23ecd5320f95d8c4525aeb18",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"dir": "src/modules",
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "devenv",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-compat": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1696426674,
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
|
|
||||||
"treeHash": "2addb7b71a20a25ea74feeaf5c2f6a6b30898ecb",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-utils": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1710146030,
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
|
||||||
"treeHash": "bd263f021e345cb4a39d80c126ab650bebc3c10c",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"gitignore": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"pre-commit-hooks",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1709087332,
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "gitignore.nix",
|
|
||||||
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
|
|
||||||
"treeHash": "ca14199cabdfe1a06a7b1654c76ed49100a689f9",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "gitignore.nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1713596654,
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "fd16bb6d3bcca96039b11aa52038fafeb6e4f4be",
|
|
||||||
"treeHash": "fadc8eefb11cd63b3a7f59eaf6fac47ece269476",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixpkgs-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs-stable": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1713564160,
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "bc194f70731cc5d2b046a6c1b3b15f170f05999c",
|
|
||||||
"treeHash": "f0682fcd74b6547997b0a93d9d7d1047ef695b3f",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-23.11",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"pre-commit-hooks": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-compat": "flake-compat",
|
|
||||||
"flake-utils": "flake-utils",
|
|
||||||
"gitignore": "gitignore",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"nixpkgs-stable": "nixpkgs-stable"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1712897695,
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "pre-commit-hooks.nix",
|
|
||||||
"rev": "40e6053ecb65fcbf12863338a6dcefb3f55f1bf8",
|
|
||||||
"treeHash": "9ba338feee8e6b2193c305f46b65b0fef49816b7",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "pre-commit-hooks.nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
|
||||||
"inputs": {
|
|
||||||
"devenv": "devenv",
|
|
||||||
"nixpkgs": "nixpkgs",
|
|
||||||
"pre-commit-hooks": "pre-commit-hooks"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"treeHash": "cce81f2a0f0743b2eb61bc2eb6c7adbe2f2c6beb",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": "root",
|
|
||||||
"version": 7
|
|
||||||
}
|
|
||||||
-11
@@ -1,11 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
languages.nix.enable = true;
|
|
||||||
packages = [
|
|
||||||
pkgs.nixpkgs-fmt
|
|
||||||
];
|
|
||||||
pre-commit = {
|
|
||||||
hooks.nixpkgs-fmt.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
inputs:
|
|
||||||
nixpkgs:
|
|
||||||
url: github:NixOS/nixpkgs/nixpkgs-unstable
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[
|
|
||||||
(import ./main.nix {
|
|
||||||
hostName = "fw1";
|
|
||||||
user = {
|
|
||||||
name = "ari";
|
|
||||||
fullName = "Ari Sosnovsky";
|
|
||||||
email = "ariel@sosnovsky.ca";
|
|
||||||
};
|
|
||||||
})
|
|
||||||
];
|
|
||||||
}
|
|
||||||
Generated
+328
@@ -0,0 +1,328 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"flake-compat": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1696426674,
|
||||||
|
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-compat_2": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1717312683,
|
||||||
|
"narHash": "sha256-FrlieJH50AuvagamEvWMIE6D2OAnERuDboFDYAED/dE=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"rev": "38fd3954cf65ce6faf3d0d45cd26059e059f07ea",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1705309234,
|
||||||
|
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ghostty": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat",
|
||||||
|
"nixpkgs-stable": "nixpkgs-stable",
|
||||||
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
|
"zig": "zig"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1736455421,
|
||||||
|
"narHash": "sha256-TsDbQIHOi84hTjb0SSLSyX27P1MA1DVLagX8uik+WGk=",
|
||||||
|
"owner": "ghostty-org",
|
||||||
|
"repo": "ghostty",
|
||||||
|
"rev": "6ef757a8f85db7a124d370378850339a899c9e65",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "ghostty-org",
|
||||||
|
"repo": "ghostty",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"home-manager": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1736373539,
|
||||||
|
"narHash": "sha256-dinzAqCjenWDxuy+MqUQq0I4zUSfaCvN9rzuCmgMZJY=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"rev": "bd65bc3cde04c16755955630b344bc9e35272c56",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"ref": "release-24.11",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nix-darwin": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1736370755,
|
||||||
|
"narHash": "sha256-iWcjToBpx4PUd74uqvIGAfqqVfyrvRLRauC/SxEKIF0=",
|
||||||
|
"owner": "LnL7",
|
||||||
|
"repo": "nix-darwin",
|
||||||
|
"rev": "57733bd1dc81900e13438e5b4439239f1b29db0e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "LnL7",
|
||||||
|
"repo": "nix-darwin",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nix-flatpak": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1736334301,
|
||||||
|
"narHash": "sha256-370z+WLVnD7LrN/SvTCZxPl/XPTshS5NS2dHN4iyK6o=",
|
||||||
|
"owner": "gmodena",
|
||||||
|
"repo": "nix-flatpak",
|
||||||
|
"rev": "5f4ec93d432cd5288f6fe20d8842dceb5a065885",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "gmodena",
|
||||||
|
"ref": "main",
|
||||||
|
"repo": "nix-flatpak",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixos-cosmic": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat_2",
|
||||||
|
"nixpkgs": [
|
||||||
|
"unstable"
|
||||||
|
],
|
||||||
|
"nixpkgs-stable": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1736513564,
|
||||||
|
"narHash": "sha256-eAKwqMdGWambTbuZvAp3YYhAoWjaIFWGvxDAxxyh/Tg=",
|
||||||
|
"owner": "lilyinstarlight",
|
||||||
|
"repo": "nixos-cosmic",
|
||||||
|
"rev": "0855bf33427209e4f5e3d2d0968a14784525e929",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "lilyinstarlight",
|
||||||
|
"repo": "nixos-cosmic",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixos-hardware": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1736441705,
|
||||||
|
"narHash": "sha256-OL7leZ6KBhcDF3nEKe4aZVfIm6xQpb1Kb+mxySIP93o=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixos-hardware",
|
||||||
|
"rev": "8870dcaff63dfc6647fb10648b827e9d40b0a337",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "master",
|
||||||
|
"repo": "nixos-hardware",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1736200483,
|
||||||
|
"narHash": "sha256-JO+lFN2HsCwSLMUWXHeOad6QUxOuwe9UOAF/iSl1J4I=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "3f0a8ac25fb674611b98089ca3a5dd6480175751",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-24.11",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs-stable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1733423277,
|
||||||
|
"narHash": "sha256-TxabjxEgkNbCGFRHgM/b9yZWlBj60gUOUnRT/wbVQR8=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "e36963a147267afc055f7cf65225958633e536bf",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "release-24.11",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs-unstable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1733229606,
|
||||||
|
"narHash": "sha256-FLYY5M0rpa5C2QAE3CKLYAM6TwbKicdRK6qNrSHlNrE=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "566e53c2ad750c84f6d31f9ccb9d00f823165550",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"ghostty": "ghostty",
|
||||||
|
"home-manager": "home-manager",
|
||||||
|
"nix-darwin": "nix-darwin",
|
||||||
|
"nix-flatpak": "nix-flatpak",
|
||||||
|
"nixos-cosmic": "nixos-cosmic",
|
||||||
|
"nixos-hardware": "nixos-hardware",
|
||||||
|
"nixpkgs": "nixpkgs",
|
||||||
|
"systems": "systems_2",
|
||||||
|
"unstable": "unstable",
|
||||||
|
"unstable-home-manager": "unstable-home-manager"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"unstable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1736519262,
|
||||||
|
"narHash": "sha256-qnbii+cIEgxrQ0g3ayiSYVU3nmmRj8AOD9miY3fmx7k=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "3718eb9874c52f0fd82c2aac2a27fc012fa5f858",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "master",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"unstable-home-manager": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"unstable"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1736508663,
|
||||||
|
"narHash": "sha256-ZOaGwa+WnB7Zn3YXimqjmIugAnHePdXCmNu+AHkq808=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"rev": "2532b500c3ed2b8940e831039dcec5a5ea093afc",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"ref": "master",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"zig": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": [
|
||||||
|
"ghostty"
|
||||||
|
],
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nixpkgs": [
|
||||||
|
"ghostty",
|
||||||
|
"nixpkgs-stable"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1717848532,
|
||||||
|
"narHash": "sha256-d+xIUvSTreHl8pAmU1fnmkfDTGQYCn2Rb/zOwByxS2M=",
|
||||||
|
"owner": "mitchellh",
|
||||||
|
"repo": "zig-overlay",
|
||||||
|
"rev": "02fc5cc555fc14fda40c42d7c3250efa43812b43",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "mitchellh",
|
||||||
|
"repo": "zig-overlay",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
@@ -0,0 +1,213 @@
|
|||||||
|
{
|
||||||
|
inputs = {
|
||||||
|
# Hardware
|
||||||
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
|
systems.url = "github:nix-systems/default";
|
||||||
|
# Nixpkgs
|
||||||
|
unstable.url = "github:NixOS/nixpkgs/master";
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||||
|
# Cosmic
|
||||||
|
nixos-cosmic = {
|
||||||
|
url = "github:lilyinstarlight/nixos-cosmic";
|
||||||
|
inputs.nixpkgs-stable.follows = "nixpkgs";
|
||||||
|
inputs.nixpkgs.follows = "unstable";
|
||||||
|
};
|
||||||
|
# Terminal
|
||||||
|
ghostty = {
|
||||||
|
url = "github:ghostty-org/ghostty";
|
||||||
|
};
|
||||||
|
# Flatpak
|
||||||
|
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=main";
|
||||||
|
# Home manager
|
||||||
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager/release-24.11";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
unstable-home-manager = {
|
||||||
|
url = "github:nix-community/home-manager/master";
|
||||||
|
inputs.nixpkgs.follows = "unstable";
|
||||||
|
};
|
||||||
|
# Macos
|
||||||
|
nix-darwin = {
|
||||||
|
url = "github:LnL7/nix-darwin";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs =
|
||||||
|
{ self
|
||||||
|
, nixos-hardware
|
||||||
|
, nixpkgs
|
||||||
|
, systems
|
||||||
|
, unstable
|
||||||
|
, home-manager
|
||||||
|
, unstable-home-manager
|
||||||
|
, nix-darwin
|
||||||
|
, nixos-cosmic
|
||||||
|
, nix-flatpak
|
||||||
|
, ghostty
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
user = {
|
||||||
|
name = "ari";
|
||||||
|
fullName = "Ari Sosnovsky";
|
||||||
|
email = "ariel@sosnovsky.ca";
|
||||||
|
};
|
||||||
|
homeManagerVersion = "24.11";
|
||||||
|
# Local Services
|
||||||
|
localNixCaches = {
|
||||||
|
urls = [
|
||||||
|
"http://minipc1.lab.internal:5000"
|
||||||
|
];
|
||||||
|
keys = [
|
||||||
|
"minipc1.lab.internal:eIoib1JgcBEd0YKdW95QlRA2eCKDs+WxNhWhkA1wffc="
|
||||||
|
];
|
||||||
|
};
|
||||||
|
localDockerRegistries = [ "minipc1.lab.internal:5001" ];
|
||||||
|
hlCommonSettings = {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
user = user;
|
||||||
|
localNixCaches = localNixCaches;
|
||||||
|
homeManagerVersion = homeManagerVersion;
|
||||||
|
os = {
|
||||||
|
enable = true;
|
||||||
|
firewall = { enable = false; };
|
||||||
|
enableFonts = true;
|
||||||
|
hardware = { enable = false; };
|
||||||
|
enablePrometheusExporters = true;
|
||||||
|
containers = {
|
||||||
|
runtime = "docker";
|
||||||
|
localDockerRegistries = localDockerRegistries;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
# Lib Config
|
||||||
|
libConfig = {
|
||||||
|
inherit
|
||||||
|
nix-darwin
|
||||||
|
hlCommonSettings
|
||||||
|
systems
|
||||||
|
nixos-cosmic
|
||||||
|
nix-flatpak
|
||||||
|
;
|
||||||
|
specialArgs = {
|
||||||
|
inputs = {
|
||||||
|
inherit
|
||||||
|
ghostty
|
||||||
|
unstable;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
# Libs
|
||||||
|
lib = (import modules/lib.nix ({
|
||||||
|
nixpkgs = nixpkgs;
|
||||||
|
home-manager = home-manager;
|
||||||
|
} // libConfig));
|
||||||
|
unstableLib = (import modules/lib.nix ({
|
||||||
|
nixpkgs = unstable;
|
||||||
|
home-manager = unstable-home-manager;
|
||||||
|
} // libConfig));
|
||||||
|
homelabServices = (
|
||||||
|
(lib.makeHLServices {
|
||||||
|
user = user;
|
||||||
|
nodeNames = [
|
||||||
|
"hl-minipc1"
|
||||||
|
"hl-minipc2"
|
||||||
|
"hl-terra1"
|
||||||
|
"hl-bigbox1"
|
||||||
|
];
|
||||||
|
})
|
||||||
|
);
|
||||||
|
in
|
||||||
|
{
|
||||||
|
# Dev Setups
|
||||||
|
# -------------
|
||||||
|
devShells =
|
||||||
|
lib.eachSystem (system:
|
||||||
|
let pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
default = pkgs.mkShell {
|
||||||
|
name = "nixos-setup";
|
||||||
|
packages = with pkgs; [
|
||||||
|
nixpkgs-fmt
|
||||||
|
nixd
|
||||||
|
];
|
||||||
|
shellHook = ''
|
||||||
|
export PS1="<nixos-setup> $PS1"
|
||||||
|
export PATH=$PATH:$(pwd)/bin
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
});
|
||||||
|
lib = lib;
|
||||||
|
formatter =
|
||||||
|
lib.eachSystem (system: nixpkgs.legacyPackages.${system}.nixpkgs-fmt);
|
||||||
|
|
||||||
|
# None-NIXOS LINUX Setups
|
||||||
|
# -------------
|
||||||
|
homeConfigurations."${user.name}" = lib.makeHomeManagerUsers {
|
||||||
|
user = user // { enableDevelopmentKit = true; };
|
||||||
|
homeManagerVersion = homeManagerVersion;
|
||||||
|
};
|
||||||
|
|
||||||
|
# NIXOS LINUX Setups
|
||||||
|
# -------------
|
||||||
|
nixosConfigurations = {
|
||||||
|
# NIXOS Framework Setups
|
||||||
|
# -------------
|
||||||
|
fwbook = lib.makeNixOsModule {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
user = user // {
|
||||||
|
enableDevelopmentKit = true;
|
||||||
|
};
|
||||||
|
systemStateVersion = "23.11";
|
||||||
|
hostName = "fwbook";
|
||||||
|
localNixCaches = localNixCaches;
|
||||||
|
localDockerRegistries = localDockerRegistries;
|
||||||
|
homeManagerVersion = homeManagerVersion;
|
||||||
|
desktop = {
|
||||||
|
enable = true;
|
||||||
|
user = user;
|
||||||
|
enableKDE = true;
|
||||||
|
enableHypr = false;
|
||||||
|
enableX11 = true;
|
||||||
|
enableWine = true;
|
||||||
|
};
|
||||||
|
os = {
|
||||||
|
enable = true;
|
||||||
|
firewall = { enable = false; };
|
||||||
|
enableFonts = true;
|
||||||
|
enableNetworking = true;
|
||||||
|
enableSSH = false;
|
||||||
|
hardware = { enable = true; };
|
||||||
|
containers = {
|
||||||
|
localDockerRegistries = localDockerRegistries;
|
||||||
|
runtime = "docker";
|
||||||
|
};
|
||||||
|
enablePrometheusExporters = true;
|
||||||
|
};
|
||||||
|
configuration = { ... }: {
|
||||||
|
imports = [
|
||||||
|
nixos-hardware.nixosModules.framework-13-7040-amd
|
||||||
|
(import ./hosts/fwbook.nix {
|
||||||
|
user = user;
|
||||||
|
unstable = unstableLib.pkgs.x86_64-linux;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
# NIXOS Framework Homelab
|
||||||
|
# -------------
|
||||||
|
hl-fws1 = lib.makeHLService {
|
||||||
|
hostName = "hl-fws1";
|
||||||
|
configuration = { ... }: {
|
||||||
|
imports = [
|
||||||
|
nixos-hardware.nixosModules.framework-11th-gen-intel
|
||||||
|
(import (./hosts/hl-fws1.nix) { user = user; })
|
||||||
|
];
|
||||||
|
};
|
||||||
|
systemStateVersion = "24.05";
|
||||||
|
};
|
||||||
|
} // homelabServices;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
{ pkgs, config, ... }:
|
|
||||||
let
|
|
||||||
user = {
|
|
||||||
name = "ari";
|
|
||||||
fullName = "Ari Sosnovsky";
|
|
||||||
email = "ariel@sosnovsky.ca";
|
|
||||||
};
|
|
||||||
dataDir = "/mnt/Data";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[
|
|
||||||
/etc/nixos/cachix.nix
|
|
||||||
<nixos-hardware/framework/13-inch/7040-amd>
|
|
||||||
(import /home/ari/nixos-setup/main.nix {
|
|
||||||
enableFingerPrint = true;
|
|
||||||
hostName = "fwbook";
|
|
||||||
user = user;
|
|
||||||
})
|
|
||||||
/home/ari/nixos-setup/modules/optional/amd-packages.nix
|
|
||||||
/home/ari/nixos-setup/modules/optional/gnome.nix
|
|
||||||
(import /home/ari/nixos-setup/modules/optional/hyprland.nix {
|
|
||||||
user = user;
|
|
||||||
})
|
|
||||||
];
|
|
||||||
hardware.framework.amd-7040.preventWakeOnAC = true;
|
|
||||||
services.fwupd.enable = true;
|
|
||||||
fileSystems."${dataDir}" = {
|
|
||||||
device = "/dev/sda1";
|
|
||||||
fsType = "ext4";
|
|
||||||
options = [
|
|
||||||
"users"
|
|
||||||
"nofail"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
# home-manager.users.${user.name}.zsh.extraEnv = ''
|
|
||||||
# export KUBECONFIG=${dataDir}/local/kube/config.yml
|
|
||||||
# '';
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
# 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, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules =
|
||||||
|
[ "nvme" "xhci_pci" "thunderbolt" "uas" "sd_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "/dev/disk/by-uuid/3fbf3ccf-655a-4040-b898-b97a1d555912";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/3342-B2BE";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/mnt/Data" = {
|
||||||
|
device = "/dev/disk/by-uuid/239db4ac-762d-4d76-8297-ccd37bcdfd8b";
|
||||||
|
fsType = "ext4";
|
||||||
|
options = [ "users" "exec" "nofail" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices =
|
||||||
|
[
|
||||||
|
{ device = "/dev/disk/by-uuid/5175a4b0-0067-47c6-b7da-35acb247f134"; }
|
||||||
|
{
|
||||||
|
device = "/swapfile";
|
||||||
|
size = 16 * 1024; # 16GB
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.amd.updateMicrocode =
|
||||||
|
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
@@ -0,0 +1,149 @@
|
|||||||
|
{ user, unstable }:
|
||||||
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
zshFWBook = builtins.filterSource (p: t: true) ./scripts/fwbook;
|
||||||
|
zshFunctions = zshFWBook + "/functions.sh";
|
||||||
|
openPorts = [
|
||||||
|
8000
|
||||||
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [ ./fwbook.hardware-configuration.nix ];
|
||||||
|
# Skyg
|
||||||
|
environment.sessionVariables.COSMIC_DATA_CONTROL_ENABLED = 1;
|
||||||
|
skyg = {
|
||||||
|
user.enable = true;
|
||||||
|
server.admin.enable = true;
|
||||||
|
core.qemu.enable = true;
|
||||||
|
nixos = {
|
||||||
|
common.hardware = {
|
||||||
|
sound.enable = true;
|
||||||
|
laptop-power-mgr.enable = true;
|
||||||
|
amdgpu.enable = true;
|
||||||
|
};
|
||||||
|
desktop = {
|
||||||
|
enable = true;
|
||||||
|
kde.enable = true;
|
||||||
|
cosmic.enable = false;
|
||||||
|
crypto.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
networkDrives = {
|
||||||
|
enable = true;
|
||||||
|
options = [
|
||||||
|
"x-systemd.automount"
|
||||||
|
"noauto"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services.displayManager.defaultSession = "plasmax11";
|
||||||
|
# Firmware updater
|
||||||
|
services.fwupd.enable = true;
|
||||||
|
services.fwupd.package = (import
|
||||||
|
(builtins.fetchTarball {
|
||||||
|
url =
|
||||||
|
"https://github.com/NixOS/nixpkgs/archive/bb2009ca185d97813e75736c2b8d1d8bb81bde05.tar.gz";
|
||||||
|
sha256 = "sha256:003qcrsq5g5lggfrpq31gcvj82lb065xvr7bpfa8ddsw8x4dnysk";
|
||||||
|
})
|
||||||
|
{ inherit (pkgs) system; }).fwupd;
|
||||||
|
services.fprintd.enable = true;
|
||||||
|
# Yubikey
|
||||||
|
services.yubikey-agent.enable = true;
|
||||||
|
# Enable CUPS to print documents.
|
||||||
|
services.printing.enable = true;
|
||||||
|
# Bluetooth
|
||||||
|
hardware.bluetooth.settings.General = { ControllerMode = "bredr"; };
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
hardware.bluetooth.powerOnBoot = true;
|
||||||
|
# Bootloader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
boot.tmp.useTmpfs = true;
|
||||||
|
# Packages
|
||||||
|
environment.systemPackages = (with pkgs; [
|
||||||
|
# python
|
||||||
|
python312
|
||||||
|
# Work
|
||||||
|
postgresql
|
||||||
|
dvc-with-remotes
|
||||||
|
google-cloud-sdk
|
||||||
|
awscli
|
||||||
|
# Util
|
||||||
|
libusb1
|
||||||
|
]);
|
||||||
|
# # Gaming
|
||||||
|
programs.steam = {
|
||||||
|
enable = true;
|
||||||
|
extest.enable = true;
|
||||||
|
};
|
||||||
|
# Chrome
|
||||||
|
programs.chromium = {
|
||||||
|
enable = true;
|
||||||
|
enablePlasmaBrowserIntegration = true;
|
||||||
|
extensions = [
|
||||||
|
"nngceckbapebfimnlniiiahkandclblb" # bitwarden
|
||||||
|
"gcbommkclmclpchllfjekcdonpmejbdp" # https everywhere
|
||||||
|
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin
|
||||||
|
];
|
||||||
|
};
|
||||||
|
# Ollama
|
||||||
|
services.ollama = {
|
||||||
|
enable = true;
|
||||||
|
host = "0.0.0.0";
|
||||||
|
port = 11434;
|
||||||
|
acceleration = "rocm";
|
||||||
|
package = unstable.ollama;
|
||||||
|
rocmOverrideGfx = "11.0.2";
|
||||||
|
};
|
||||||
|
# # Brother Printer
|
||||||
|
hardware.sane.brscan5.enable = true;
|
||||||
|
# # Display Managers
|
||||||
|
services.xserver.videoDrivers =
|
||||||
|
[ "modesetting" "fbdev" ];
|
||||||
|
# Kernel
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_zen;
|
||||||
|
# Add Functions
|
||||||
|
home-manager.users.${user.name}.programs.zsh.initExtra = ''
|
||||||
|
source ${zshFunctions}
|
||||||
|
'';
|
||||||
|
environment.localBinInPath = true;
|
||||||
|
# Family Storage
|
||||||
|
fileSystems."/mnt/EightTerra/FamilyStorage" = {
|
||||||
|
device = "tnas1.lab.internal:/mnt/EightTerra/FamilyStorage";
|
||||||
|
fsType = "nfs";
|
||||||
|
options = [ "x-systemd.automount" "noauto" ];
|
||||||
|
};
|
||||||
|
# Remote Builder
|
||||||
|
nix.buildMachines = [{
|
||||||
|
hostName = "root@bigbox1.lab.internal";
|
||||||
|
system = "x86_64-linux";
|
||||||
|
protocol = "ssh-ng";
|
||||||
|
maxJobs = 1;
|
||||||
|
speedFactor = 2;
|
||||||
|
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
||||||
|
mandatoryFeatures = [ ];
|
||||||
|
}];
|
||||||
|
nix.distributedBuilds = true;
|
||||||
|
# optional, useful when the builder has a faster internet connection than yours
|
||||||
|
nix.extraOptions = ''
|
||||||
|
builders-use-substitutes = true
|
||||||
|
'';
|
||||||
|
# Firewall
|
||||||
|
networking.firewall.allowedUDPPorts = openPorts;
|
||||||
|
networking.firewall.allowedTCPPorts = openPorts;
|
||||||
|
# random dev work
|
||||||
|
networking.hosts = {
|
||||||
|
"0.0.0.0" = [
|
||||||
|
"auth.me.internal"
|
||||||
|
"me.internal"
|
||||||
|
"me.local"
|
||||||
|
"api.me.internal"
|
||||||
|
];
|
||||||
|
"127.0.0.1" = [
|
||||||
|
"auth.me.internal"
|
||||||
|
"me.internal"
|
||||||
|
"me.local"
|
||||||
|
"api.me.internal"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{
|
||||||
|
device = "/dev/disk/by-uuid/6302dadf-57b7-4213-a7a5-2ba97f941e49";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{
|
||||||
|
device = "/dev/disk/by-uuid/BBF9-1744";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [{
|
||||||
|
device = "/var/lib/swapfile";
|
||||||
|
size = 32 * 1024;
|
||||||
|
}];
|
||||||
|
zramSwap.enable = true;
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
{ ... }:
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
imports = [ ./hl-bigbox1.hardware-configuration.nix ];
|
||||||
|
skyg = {
|
||||||
|
user.enable = true;
|
||||||
|
server.admin.enable = true;
|
||||||
|
server.exporters.enable = true;
|
||||||
|
server.timers = {
|
||||||
|
jellyfin-backups = {
|
||||||
|
OnCalendar = "daily";
|
||||||
|
wantedBy = [
|
||||||
|
"mnt-terra1-Data-apps.mount"
|
||||||
|
];
|
||||||
|
script = ''
|
||||||
|
set -eu
|
||||||
|
${pkgs.rsync}/bin/rsync -avpzP --delete /opt/jellyfin /mnt/terra1/Data/apps/
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
nixos = {
|
||||||
|
desktop.enable = false;
|
||||||
|
common.ssh-server.enable = true;
|
||||||
|
common.containers.openMetricsPort = true;
|
||||||
|
common.hardware = {
|
||||||
|
nvidia.enable = true;
|
||||||
|
amdgpu.enable = true;
|
||||||
|
udevrules.coraltpu.enable = true;
|
||||||
|
};
|
||||||
|
server.services = {
|
||||||
|
ai.enable = true;
|
||||||
|
jellyfin.enable = false;
|
||||||
|
dockge = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
volumes = {
|
||||||
|
stacks = {
|
||||||
|
nfsServer = "terra1.lab.internal";
|
||||||
|
share = "/mnt/Data/apps/bigbox/dockge/stacks";
|
||||||
|
};
|
||||||
|
data = {
|
||||||
|
nfsServer = "terra1.lab.internal";
|
||||||
|
share = "/mnt/Data/apps/bigbox/dockge/data";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
networkDrives.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users.ari.extraGroups = [ "input" ];
|
||||||
|
# firmware updater
|
||||||
|
services.fwupd.enable = true;
|
||||||
|
# Bootloader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
boot.tmp.useTmpfs = true;
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_hardened;
|
||||||
|
# Wake on Lan
|
||||||
|
networking.interfaces.enp4s0.wakeOnLan.enable = true;
|
||||||
|
networking.interfaces.lo.wakeOnLan.enable = true;
|
||||||
|
networking.interfaces.tailscale0.wakeOnLan.enable = true;
|
||||||
|
# Suspend
|
||||||
|
services.autosuspend.enable = false;
|
||||||
|
services.xserver.displayManager.gdm.autoSuspend = false;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
# steam-tui
|
||||||
|
# steam-run
|
||||||
|
# steamPackages.steamcmd
|
||||||
|
ollama
|
||||||
|
jellyfin
|
||||||
|
jellyfin-web
|
||||||
|
jellyfin-ffmpeg
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usbhid" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{
|
||||||
|
device = "/dev/disk/by-uuid/2d96049a-938b-4f08-b73a-5baae8eaef2a";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{
|
||||||
|
device = "/dev/disk/by-uuid/0B62-BBC0";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices =
|
||||||
|
[{ device = "/dev/disk/by-uuid/cf34dac4-3757-44a8-9458-14943c60d418"; }];
|
||||||
|
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
{ user }:
|
||||||
|
{ pkgs, lib, config, ... }: {
|
||||||
|
imports = [ ./hl-fws1.hardware-configuration.nix ];
|
||||||
|
skyg.user.enable = true;
|
||||||
|
skyg.nixos.common.ssh-server.enable = true;
|
||||||
|
skyg.server.admin.enable = true;
|
||||||
|
skyg.networkDrives.options = [
|
||||||
|
"x-systemd.automount"
|
||||||
|
"auto"
|
||||||
|
];
|
||||||
|
|
||||||
|
# firmware updater
|
||||||
|
services.fwupd.enable = true;
|
||||||
|
hardware.framework.enableKmod = true;
|
||||||
|
|
||||||
|
# Bootloader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
boot.tmp.useTmpfs = true;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
# 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, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules =
|
||||||
|
[ "ahci" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "/dev/disk/by-uuid/142c88f4-b1bc-4ed9-92ee-2c52cdfa4274";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/01FE-EDCC";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode =
|
||||||
|
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
{ user }:
|
||||||
|
{ ... }:
|
||||||
|
let
|
||||||
|
openPorts = [
|
||||||
|
5000
|
||||||
|
5001
|
||||||
|
8000
|
||||||
|
22
|
||||||
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [ ./hl-minipc1.hardware-configuration.nix ];
|
||||||
|
skyg.user.enable = true;
|
||||||
|
skyg.nixos.common.ssh-server.enable = true;
|
||||||
|
skyg.nixos.common.containers.openMetricsPort = true;
|
||||||
|
skyg.server.admin.enable = true;
|
||||||
|
skyg.server.exporters.enable = true;
|
||||||
|
skyg.networkDrives = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
skyg.core.tailscaleRouting = "both";
|
||||||
|
# # Nix Stores
|
||||||
|
services.nix-serve = {
|
||||||
|
enable = true;
|
||||||
|
secretKeyFile = "/var/keys/cache-priv-key.pem";
|
||||||
|
port = 5000;
|
||||||
|
};
|
||||||
|
# firmware updater
|
||||||
|
services.fwupd.enable = true;
|
||||||
|
|
||||||
|
# # Bootloader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
# # Data
|
||||||
|
fileSystems."/mnt/Data" = {
|
||||||
|
device = "/dev/disk/by-uuid/ee4a60a8-b0d1-4f5c-a554-1d1d84c89e34";
|
||||||
|
fsType = "ext4";
|
||||||
|
options = [ "defaults" ];
|
||||||
|
};
|
||||||
|
# # Services
|
||||||
|
skyg.nixos.server.services = {
|
||||||
|
audiobookshelf = {
|
||||||
|
enable = true;
|
||||||
|
host = "0.0.0.0";
|
||||||
|
openFirewall = true;
|
||||||
|
port = 8000;
|
||||||
|
configDir = "/mnt/Data/audiobookshelf/config";
|
||||||
|
metadtaDir = "/mnt/Data/audiobookshelf/metadata";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services.dockerRegistry = {
|
||||||
|
enable = true;
|
||||||
|
storagePath = "/mnt/Data/docker-registry";
|
||||||
|
port = 5001;
|
||||||
|
openFirewall = true;
|
||||||
|
listenAddress = "0.0.0.0";
|
||||||
|
enableDelete = true;
|
||||||
|
};
|
||||||
|
# Firewall
|
||||||
|
networking.firewall.allowedUDPPorts = openPorts;
|
||||||
|
networking.firewall.allowedTCPPorts = openPorts;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/2c1a9e86-5b82-4545-bea1-c1b6b688fdf8";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/6583-1C43";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
{ user }:
|
||||||
|
{ pkgs
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = [ ./hl-minipc2.hardware-configuration.nix ];
|
||||||
|
skyg.user.enable = true;
|
||||||
|
skyg.nixos.common.ssh-server.enable = true;
|
||||||
|
skyg.nixos.common.containers.openMetricsPort = true;
|
||||||
|
skyg.server.exporters.enable = true;
|
||||||
|
skyg.networkDrives = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# firmware updater
|
||||||
|
services.fwupd.enable = true;
|
||||||
|
# Bootloader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
# Disable firewall
|
||||||
|
networking.firewall.enable = false;
|
||||||
|
|
||||||
|
# Services
|
||||||
|
skyg.nixos.server.services = {
|
||||||
|
scrypted.enable = true;
|
||||||
|
dockge = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
volumes = {
|
||||||
|
stacks = {
|
||||||
|
nfsServer = "terra1.lab.internal";
|
||||||
|
share = "/mnt/Data/apps/arrs/dockge/stacks";
|
||||||
|
};
|
||||||
|
data = {
|
||||||
|
nfsServer = "terra1.lab.internal";
|
||||||
|
share = "/mnt/Data/apps/arrs/dockge/data";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
let
|
||||||
|
kernel = config.boot.kernelPackages.kernel;
|
||||||
|
hddled = pkgs.stdenv.mkDerivation rec {
|
||||||
|
name = "hddled_tmj33-${version}-${kernel.version}";
|
||||||
|
version = "0.3";
|
||||||
|
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "arnarg";
|
||||||
|
repo = "hddled_tmj33";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-sQ8fLK8NP5sHw/9gJTO6lqgWfwmi1G5KDwWuWujNCZw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||||
|
|
||||||
|
# We don't want to depmod yet, just build and package the module
|
||||||
|
preConfigure = ''
|
||||||
|
sed -i 's|depmod|#depmod|' Makefile
|
||||||
|
'';
|
||||||
|
|
||||||
|
makeFlags = [
|
||||||
|
"TARGET=${kernel.modDirVersion}"
|
||||||
|
"KERNEL_MODULES=${kernel.dev}/lib/modules/${kernel.modDirVersion}"
|
||||||
|
"MODDESTDIR=$(out)/lib/modules/${kernel.modDirVersion}/kernel/drivers/misc"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "usbhid" "uas" "usb_storage" "sd_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.extraModulePackages = with pkgs.linuxPackages; [
|
||||||
|
it87
|
||||||
|
hddled
|
||||||
|
];
|
||||||
|
boot.kernelModules = [
|
||||||
|
"kvm-intel"
|
||||||
|
"coretemp"
|
||||||
|
"drivetemp"
|
||||||
|
"it87"
|
||||||
|
"hddled_tmj33"
|
||||||
|
];
|
||||||
|
fileSystems."/" =
|
||||||
|
{
|
||||||
|
device = "/dev/disk/by-uuid/a3b275b4-96d4-4eb4-b01f-d80370899791";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{
|
||||||
|
device = "/dev/disk/by-uuid/AAA7-BCE9";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
|
};
|
||||||
|
fileSystems."/mnt/Data" =
|
||||||
|
{
|
||||||
|
device = "/dev/sda1";
|
||||||
|
fsType = "btrfs";
|
||||||
|
};
|
||||||
|
swapDevices = [ ];
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
nix.settings.max-jobs = 2;
|
||||||
|
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
||||||
|
}
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
{ user }:
|
||||||
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
openPorts = [
|
||||||
|
# nfs
|
||||||
|
111
|
||||||
|
2049
|
||||||
|
4000
|
||||||
|
4001
|
||||||
|
4002
|
||||||
|
20048
|
||||||
|
# ssh
|
||||||
|
22
|
||||||
|
# prometheus
|
||||||
|
9090
|
||||||
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [ ./hl-terra1.hardware-configuration.nix ];
|
||||||
|
skyg.user.enable = true;
|
||||||
|
skyg.nixos.common.ssh-server.enable = true;
|
||||||
|
skyg.server.admin.enable = true;
|
||||||
|
skyg.server.exporters.enable = true;
|
||||||
|
|
||||||
|
# firmware updater
|
||||||
|
services.fwupd.enable = true;
|
||||||
|
# Bootloader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
btrfs-progs
|
||||||
|
];
|
||||||
|
# Firewall
|
||||||
|
networking.firewall.allowedUDPPorts = openPorts;
|
||||||
|
networking.firewall.allowedTCPPorts = openPorts;
|
||||||
|
# NFS
|
||||||
|
services.nfs.server = {
|
||||||
|
enable = true;
|
||||||
|
lockdPort = 4001;
|
||||||
|
mountdPort = 4002;
|
||||||
|
statdPort = 4000;
|
||||||
|
extraNfsdConfig = '''';
|
||||||
|
exports = ''
|
||||||
|
/mnt/Data/apps 10.0.0.0/16(rw,wdelay,insecure,no_root_squash,no_subtree_check,sec=sys,rw,insecure,no_root_squash,no_all_squash)
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
Executable
+29
@@ -0,0 +1,29 @@
|
|||||||
|
|
||||||
|
|
||||||
|
function restart-wifi {
|
||||||
|
echo "Removing mod for wifi module..."
|
||||||
|
sudo rmmod mt7921e
|
||||||
|
echo "Reloading mod for wifi module..."
|
||||||
|
sudo modprobe mt7921e
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function start-windows() {
|
||||||
|
quickemu --vm /mnt/Data/vms/windows-11.conf --display spice --viewer remote-viewer
|
||||||
|
}
|
||||||
|
|
||||||
|
function start-windows-app() {
|
||||||
|
google-chrome-stable --app=https://windows365.microsoft.com/webclient --new-window
|
||||||
|
}
|
||||||
|
|
||||||
|
# function clean-file() {
|
||||||
|
# ${@} | grep -v '^\s*#' | grep -v '^$'
|
||||||
|
# }
|
||||||
|
|
||||||
|
function clean-k8s-install() {
|
||||||
|
sudo rm -rf /var/lib/kubernetes/ /var/lib/etcd/ /var/lib/cfssl/ /var/lib/kubelet/ /etc/kube-flannel/ /etc/kubernetes/
|
||||||
|
}
|
||||||
|
|
||||||
|
function fix-nix-store() {
|
||||||
|
sudo nix-store --verify --check-contents --repair
|
||||||
|
}
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
{ systemStateVersion ? "23.11"
|
|
||||||
, homeMangerVersion ? "23.11"
|
|
||||||
, enableHomeManager ? true
|
|
||||||
, hostName
|
|
||||||
, user
|
|
||||||
, enableSSHServer ? false
|
|
||||||
, firewall ? { enable = true; }
|
|
||||||
, enableFingerPrint ? false
|
|
||||||
,
|
|
||||||
}:
|
|
||||||
{ pkgs, ... }:
|
|
||||||
let
|
|
||||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-${homeMangerVersion}.tar.gz";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
/etc/nixos/hardware-configuration.nix
|
|
||||||
(import ./modules/os/nix.nix {
|
|
||||||
systemStateVersion = systemStateVersion;
|
|
||||||
})
|
|
||||||
(import ./modules/os/core.nix {
|
|
||||||
user = user;
|
|
||||||
hostName = hostName;
|
|
||||||
firewall = firewall;
|
|
||||||
})
|
|
||||||
(import ./modules/os/hardware.nix {
|
|
||||||
enableFingerPrint = enableFingerPrint;
|
|
||||||
})
|
|
||||||
(import ./modules/os/ssh.nix {
|
|
||||||
user = user;
|
|
||||||
enableSSHServer = enableSSHServer;
|
|
||||||
})
|
|
||||||
./modules/os/services.nix
|
|
||||||
./modules/docker/core.nix
|
|
||||||
(import ./modules/user.nix {
|
|
||||||
user = user;
|
|
||||||
})
|
|
||||||
(import ./modules/rootUser.nix {
|
|
||||||
hostName = hostName;
|
|
||||||
})
|
|
||||||
] ++ (if enableHomeManager then [
|
|
||||||
(import "${home-manager}/nixos")
|
|
||||||
(import ./modules/optional/home-manager-config.nix {
|
|
||||||
homeMangerVersion = homeMangerVersion;
|
|
||||||
hostName = hostName;
|
|
||||||
user = user;
|
|
||||||
})
|
|
||||||
] else [ ]);
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./user.nix
|
||||||
|
./macos.nix
|
||||||
|
./nix-substituters.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{ config, lib, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
skygUser = config.skyg.user;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
skyg.user.macos = {
|
||||||
|
enableOverride = mkEnableOption "";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf skygUser.macos.enableOverride {
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.users.${skygUser.name} = {
|
||||||
|
home = {
|
||||||
|
sessionVariables = { "DOCKER_DEFAULT_PLATFORM" = "linux/amd64"; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
{ config, lib, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.skyg.core.substituters;
|
||||||
|
skygUser = config.skyg.user;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
skyg.core.substituters = {
|
||||||
|
urls = mkOption {
|
||||||
|
type = types.listOf types.str;
|
||||||
|
default = [ ];
|
||||||
|
};
|
||||||
|
keys = mkOption {
|
||||||
|
type = types.listOf types.str;
|
||||||
|
default = [ ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
nix.settings.substituters = [
|
||||||
|
"https://cache.nixos.org"
|
||||||
|
"https://cache.flox.dev"
|
||||||
|
"https://devenv.cachix.org"
|
||||||
|
"https://cuda-maintainers.cachix.org"
|
||||||
|
] ++ cfg.urls;
|
||||||
|
nix.settings.trusted-substituters = [
|
||||||
|
"https://cache.flox.dev"
|
||||||
|
"https://devenv.cachix.org"
|
||||||
|
"https://cuda-maintainers.cachix.org"
|
||||||
|
] ++ cfg.urls;
|
||||||
|
nix.settings.trusted-public-keys = [
|
||||||
|
"flox-cache-public-1:7F4OyH7ZCnFhcze3fJdfyXYLQw/aV7GEed86nQ7IsOs="
|
||||||
|
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
|
||||||
|
"cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E="
|
||||||
|
] ++ cfg.keys;
|
||||||
|
nix.settings.trusted-users = [ "root" skygUser.name ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.skyg;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
skyg.home-manager.version = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
|
skyg.home-manager.extraImports = mkOption {
|
||||||
|
default = [ ];
|
||||||
|
};
|
||||||
|
skyg.user = {
|
||||||
|
enable = mkEnableOption "";
|
||||||
|
name = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
|
fullName = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
|
email = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
|
extraGitConfigs = mkOption {
|
||||||
|
type = types.listOf (types.submodule {
|
||||||
|
path = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
|
});
|
||||||
|
default = [ ];
|
||||||
|
};
|
||||||
|
enableDevelopmentKit = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config =
|
||||||
|
let
|
||||||
|
hm = (import ../home {
|
||||||
|
stateVersion = cfg.home-manager.version;
|
||||||
|
});
|
||||||
|
in
|
||||||
|
mkIf cfg.user.enable
|
||||||
|
{
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
home-manager.users.root =
|
||||||
|
(hm.makeRootUser { hostName = config.skyg.core.hostName; }) { pkgs = pkgs; };
|
||||||
|
home-manager.users.${cfg.user.name} =
|
||||||
|
((hm.makeCommonUser cfg.user) { pkgs = pkgs; }) // {
|
||||||
|
imports = cfg.home-manager.extraImports;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
{
|
|
||||||
virtualisation.docker.enable = true;
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
{ stateVersion }:
|
||||||
|
let
|
||||||
|
makeCommonGitConfigs = (import ./git.nix).makeCommonGitConfigs;
|
||||||
|
programsModule = (import ./programs.nix);
|
||||||
|
servicesModule = (import ./services.nix);
|
||||||
|
fontsModule = (import ./fonts.nix);
|
||||||
|
homeModule = {
|
||||||
|
stateVersion = stateVersion;
|
||||||
|
shellAliases = {
|
||||||
|
cat = "bat";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
makeRootUser = { hostName }: { pkgs, ... }: {
|
||||||
|
home = homeModule;
|
||||||
|
programs = (programsModule {
|
||||||
|
pkgs = pkgs;
|
||||||
|
user = {
|
||||||
|
name = "root";
|
||||||
|
};
|
||||||
|
}) // {
|
||||||
|
git = (makeCommonGitConfigs {
|
||||||
|
userName = "root";
|
||||||
|
userEmail = "root@${hostName}";
|
||||||
|
extraGitConfigs = [ ];
|
||||||
|
});
|
||||||
|
};
|
||||||
|
services = servicesModule { pkgs = pkgs; };
|
||||||
|
fonts = fontsModule;
|
||||||
|
};
|
||||||
|
|
||||||
|
makeCommonUser =
|
||||||
|
{ enableDevelopmentKit ? false
|
||||||
|
, fullName
|
||||||
|
, email
|
||||||
|
, extraGitConfigs ? [ ]
|
||||||
|
, name
|
||||||
|
, ...
|
||||||
|
}@user: { pkgs, ... }: {
|
||||||
|
fonts = fontsModule;
|
||||||
|
gtk = (import ./gtk.nix { inherit pkgs; });
|
||||||
|
home = homeModule // {
|
||||||
|
username = name;
|
||||||
|
homeDirectory = "/home/${name}";
|
||||||
|
packages = with pkgs;
|
||||||
|
[
|
||||||
|
jq
|
||||||
|
nixpkgs-fmt
|
||||||
|
ipfetch
|
||||||
|
nixd
|
||||||
|
htop
|
||||||
|
nnn
|
||||||
|
thefuck
|
||||||
|
fastfetch
|
||||||
|
]
|
||||||
|
++ (if enableDevelopmentKit then [
|
||||||
|
devenv
|
||||||
|
devbox
|
||||||
|
terraform
|
||||||
|
kubectl
|
||||||
|
] else
|
||||||
|
[ ]);
|
||||||
|
};
|
||||||
|
programs = (programsModule {
|
||||||
|
inherit pkgs user;
|
||||||
|
}) // {
|
||||||
|
git = (makeCommonGitConfigs {
|
||||||
|
userName = fullName;
|
||||||
|
userEmail = email;
|
||||||
|
extraGitConfigs = extraGitConfigs;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
services = servicesModule { pkgs = pkgs; };
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
fontconfig = {
|
||||||
|
enable = true;
|
||||||
|
defaultFonts = {
|
||||||
|
serif = [ "Fira Code" "DroidSansMono" ];
|
||||||
|
sansSerif = [ "Fira Code" "DroidSansMono" ];
|
||||||
|
monospace = [ "Fira Code" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
let
|
||||||
|
gitconfigs =
|
||||||
|
(builtins.filterSource (path: type: type != "directory") ./gitconfigs);
|
||||||
|
gitconfigFiles = builtins.attrNames (builtins.readDir gitconfigs);
|
||||||
|
makeCommonGitConfigs =
|
||||||
|
{ userName
|
||||||
|
, userEmail
|
||||||
|
, extraGitConfigs ? [ ]
|
||||||
|
}: {
|
||||||
|
enable = true;
|
||||||
|
userName = userName;
|
||||||
|
userEmail = userEmail;
|
||||||
|
delta = { enable = true; };
|
||||||
|
extraConfig = {
|
||||||
|
color = { ui = "auto"; };
|
||||||
|
push = {
|
||||||
|
default = "upstream";
|
||||||
|
autoSetupRemote = true;
|
||||||
|
};
|
||||||
|
init = { defaultBranch = "main"; };
|
||||||
|
};
|
||||||
|
includes =
|
||||||
|
(builtins.map (f: { path = gitconfigs + "/" + f; }) gitconfigFiles)
|
||||||
|
++ extraGitConfigs;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
makeCommonGitConfigs = makeCommonGitConfigs;
|
||||||
|
}
|
||||||
@@ -27,3 +27,9 @@ sync = "!f() { \
|
|||||||
remote=${2:-origin}; \
|
remote=${2:-origin}; \
|
||||||
git fetch $remote $target_branch:$target_branch; \
|
git fetch $remote $target_branch:$target_branch; \
|
||||||
}; f";
|
}; f";
|
||||||
|
clean-branches = "!f() { \
|
||||||
|
git for-each-ref --format '%(refname:short)' refs/heads| grep -v 'master\\|main' | xargs git branch -D ; \
|
||||||
|
}; f";
|
||||||
|
aliases = "!f() { \
|
||||||
|
git config --get-regexp alias | awk '{print $1}' | sed 's/alias\\./ - /' ; \
|
||||||
|
}; f";
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{ pkgs }:
|
||||||
|
with pkgs;
|
||||||
|
{
|
||||||
|
theme = {
|
||||||
|
name = "WhiteSur-Dark";
|
||||||
|
package = whitesur-gtk-theme;
|
||||||
|
};
|
||||||
|
font = {
|
||||||
|
name = "FiraCode";
|
||||||
|
package = fira-code;
|
||||||
|
size = 8;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
{ pkgs, user, ... }:
|
||||||
|
{
|
||||||
|
bat.enable = true;
|
||||||
|
neovim = {
|
||||||
|
enable = true;
|
||||||
|
defaultEditor = true;
|
||||||
|
viAlias = true;
|
||||||
|
vimAlias = true;
|
||||||
|
plugins = with pkgs.vimPlugins; [
|
||||||
|
nvim-lspconfig
|
||||||
|
nvim-treesitter.withAllGrammars
|
||||||
|
telescope-cheat-nvim
|
||||||
|
yuck-vim
|
||||||
|
statix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
direnv.enable = true;
|
||||||
|
lsd = {
|
||||||
|
enable = true;
|
||||||
|
enableAliases = true;
|
||||||
|
};
|
||||||
|
zsh = {
|
||||||
|
enable = true;
|
||||||
|
autosuggestion.enable = true;
|
||||||
|
initExtra = ''
|
||||||
|
export PROMPT='%(!.%{%F{yellow}%}.)$USER@%{$fg[white]%}%M %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
|
||||||
|
'';
|
||||||
|
oh-my-zsh = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [ "git" "sudo" ];
|
||||||
|
theme = "robbyrussell";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
zellij = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
theme = "nord";
|
||||||
|
session_serialization = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
tmux = {
|
||||||
|
enable = true;
|
||||||
|
clock24 = true;
|
||||||
|
mouse = true;
|
||||||
|
plugins = with pkgs.tmuxPlugins; [ nord cpu sidebar ];
|
||||||
|
extraConfig = ''
|
||||||
|
set -g status-right '#{cpu_bg_color} CPU: #{cpu_icon} #{cpu_percentage} | %a %h-%d %H:%M '
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
alacritty = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
general.import = [
|
||||||
|
"${pkgs.alacritty-theme}/ayu_dark.toml"
|
||||||
|
];
|
||||||
|
window = {
|
||||||
|
title = "Terminal";
|
||||||
|
blur = true;
|
||||||
|
};
|
||||||
|
font = {
|
||||||
|
normal = { family = "Fira Code"; style = "Regular"; };
|
||||||
|
bold = { family = "Fira Code"; style = "Bold"; };
|
||||||
|
italic = { family = "Fira Code"; style = "Italic"; };
|
||||||
|
};
|
||||||
|
terminal.shell = {
|
||||||
|
program = "/home/${user.name}/.nix-profile/bin/zsh";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
gpg-agent = {
|
||||||
|
enable = true;
|
||||||
|
defaultCacheTtl = 1800;
|
||||||
|
enableSshSupport = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
+112
@@ -0,0 +1,112 @@
|
|||||||
|
{ nixpkgs
|
||||||
|
, home-manager
|
||||||
|
, nix-darwin
|
||||||
|
, systems
|
||||||
|
, hlCommonSettings
|
||||||
|
, nixos-cosmic
|
||||||
|
, nix-flatpak
|
||||||
|
, specialArgs
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
makeImports =
|
||||||
|
{ attrs
|
||||||
|
, extraConfiguration ? [ ]
|
||||||
|
}: (if (isNull attrs.configuration) then [ ] else [ attrs.configuration ])
|
||||||
|
++ [
|
||||||
|
(import ./main.nix attrs)
|
||||||
|
] ++ extraConfiguration;
|
||||||
|
eachSystem = nixpkgs.lib.genAttrs (import systems);
|
||||||
|
allPkgs = eachSystem (system:
|
||||||
|
import nixpkgs {
|
||||||
|
system = system;
|
||||||
|
config = { allowUnfree = true; };
|
||||||
|
});
|
||||||
|
makeNixOsModuleMaker =
|
||||||
|
masterAttrs:
|
||||||
|
{ system ? masterAttrs.system ? "x86_64-linux"
|
||||||
|
, ...
|
||||||
|
}@attrs:
|
||||||
|
let joinedttrs = masterAttrs // attrs;
|
||||||
|
in
|
||||||
|
nixpkgs.lib.nixosSystem {
|
||||||
|
specialArgs = specialArgs // {
|
||||||
|
inherit system;
|
||||||
|
};
|
||||||
|
system = system;
|
||||||
|
modules = (makeImports {
|
||||||
|
attrs = joinedttrs;
|
||||||
|
extraConfiguration = [
|
||||||
|
{
|
||||||
|
nix.settings = {
|
||||||
|
substituters = [ "https://cosmic.cachix.org/" ];
|
||||||
|
trusted-public-keys = [ "cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE=" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
nixos-cosmic.nixosModules.default
|
||||||
|
home-manager.nixosModules.default
|
||||||
|
nix-flatpak.nixosModules.nix-flatpak
|
||||||
|
];
|
||||||
|
});
|
||||||
|
};
|
||||||
|
makeNixOsModule =
|
||||||
|
makeNixOsModuleMaker { };
|
||||||
|
makeHLService = makeNixOsModuleMaker hlCommonSettings;
|
||||||
|
makeDarwinModule =
|
||||||
|
{ system ? "x86_64-darwin"
|
||||||
|
, user
|
||||||
|
, ...
|
||||||
|
}@attrs:
|
||||||
|
nix-darwin.lib.darwinSystem {
|
||||||
|
modules = (makeImports {
|
||||||
|
attrs = attrs;
|
||||||
|
extraConfiguration = [
|
||||||
|
home-manager.darwinModules.home-manager
|
||||||
|
];
|
||||||
|
}) ++ [
|
||||||
|
(import ./macos.nix {
|
||||||
|
user = user;
|
||||||
|
system = system;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
makeHomeManagerUsers =
|
||||||
|
{ modules ? [ ]
|
||||||
|
, homeManagerVersion
|
||||||
|
, user
|
||||||
|
, system ? "x86_64-linux"
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
hm = (import ./home {
|
||||||
|
stateVersion = homeManagerVersion;
|
||||||
|
});
|
||||||
|
pkgs = allPkgs."${system}";
|
||||||
|
in
|
||||||
|
home-manager.lib.homeManagerConfiguration {
|
||||||
|
inherit pkgs;
|
||||||
|
modules = [
|
||||||
|
(hm.makeCommonUser user)
|
||||||
|
] ++ modules;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
eachSystem = eachSystem;
|
||||||
|
pkgs = allPkgs;
|
||||||
|
makeNixOsModule = makeNixOsModule;
|
||||||
|
makeHLService = makeHLService;
|
||||||
|
makeDarwinModule = makeDarwinModule;
|
||||||
|
makeHomeManagerUsers = makeHomeManagerUsers;
|
||||||
|
makeHLServices =
|
||||||
|
{ nodeNames ? [ ]
|
||||||
|
, systemStateVersion ? "24.05"
|
||||||
|
, user
|
||||||
|
}: builtins.listToAttrs (builtins.map
|
||||||
|
(name: {
|
||||||
|
name = name;
|
||||||
|
value = makeHLService {
|
||||||
|
hostName = name;
|
||||||
|
configuration = (import (../hosts + "/${name}.nix") { user = user; });
|
||||||
|
systemStateVersion = systemStateVersion;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
nodeNames);
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{ user, system }:
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
services.nix-daemon.enable = true;
|
||||||
|
security.pam.enableSudoTouchIdAuth = true;
|
||||||
|
users.users.${user.name}.home = user.homepath;
|
||||||
|
users.users.root.home = "/var/root";
|
||||||
|
nixpkgs.hostPlatform = system;
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ user
|
||||||
|
, homeManagerVersion
|
||||||
|
, systemStateVersion
|
||||||
|
, hostName
|
||||||
|
, enableNetworkDrives ? false
|
||||||
|
# Desktop Module
|
||||||
|
# os
|
||||||
|
, os ? {
|
||||||
|
enable = false;
|
||||||
|
}
|
||||||
|
, localNixCaches ? { keys = [ ]; urls = [ ]; }
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
imports = [
|
||||||
|
./core
|
||||||
|
./nixos
|
||||||
|
./network-drives.nix
|
||||||
|
];
|
||||||
|
# Share defaults
|
||||||
|
skyg.user = user;
|
||||||
|
skyg.core.hostName = hostName;
|
||||||
|
skyg.home-manager.version = homeManagerVersion;
|
||||||
|
skyg.core.substituters = localNixCaches;
|
||||||
|
skyg.nixos.common.containers = (if os.enable then os.containers else { });
|
||||||
|
skyg.nixos.server.k8s = {
|
||||||
|
masterIP = "10.0.10.6";
|
||||||
|
masterHostName = "minipc1.lab.internal";
|
||||||
|
};
|
||||||
|
system.stateVersion = systemStateVersion;
|
||||||
|
}
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
{ lib
|
||||||
|
, config
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.skyg.networkDrives;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
skyg.networkDrives = {
|
||||||
|
enable = lib.mkEnableOption
|
||||||
|
"Network Drives";
|
||||||
|
options = lib.mkOption {
|
||||||
|
type = lib.types.listOf lib.types.str;
|
||||||
|
default = [ "defaults" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
fileSystems."/torrents" = {
|
||||||
|
device = "tnas1.lab.internal:/mnt/EightTerra/DownloadedTorrents";
|
||||||
|
fsType = "nfs";
|
||||||
|
options = cfg.options;
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/mnt/EightTerra/k3s-cluster" = {
|
||||||
|
device = "tnas1.lab.internal:/mnt/EightTerra/k3s-cluster";
|
||||||
|
fsType = "nfs";
|
||||||
|
options = cfg.options;
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/mnt/EightTerra/NVR" = {
|
||||||
|
device = "tnas1.lab.internal:/mnt/EightTerra/NVR";
|
||||||
|
fsType = "nfs";
|
||||||
|
options = cfg.options;
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/mnt/terra1/Data/apps" = {
|
||||||
|
device = "terra1.lab.internal:/mnt/Data/apps";
|
||||||
|
fsType = "nfs";
|
||||||
|
options = cfg.options;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
{ lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./docker.nix
|
||||||
|
./podman.nix
|
||||||
|
];
|
||||||
|
options = {
|
||||||
|
skyg.nixos.common.containers = {
|
||||||
|
runtime = lib.mkOption {
|
||||||
|
description = "Docker vs podman";
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "docker";
|
||||||
|
};
|
||||||
|
enableOnBoot = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
localDockerRegistries = lib.mkOption {
|
||||||
|
type = lib.types.listOf lib.types.str;
|
||||||
|
};
|
||||||
|
metricsPort = lib.mkOption {
|
||||||
|
type = lib.types.number;
|
||||||
|
default = 9323;
|
||||||
|
};
|
||||||
|
openMetricsPort = lib.mkEnableOption "Open container metrics port";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.skyg.nixos.common.containers;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf (cfg.runtime == "docker") {
|
||||||
|
virtualisation.docker = {
|
||||||
|
enable = true;
|
||||||
|
autoPrune.enable = true;
|
||||||
|
enableOnBoot = cfg.enableOnBoot;
|
||||||
|
liveRestore = false;
|
||||||
|
daemon.settings = {
|
||||||
|
insecure-registries = cfg.localDockerRegistries;
|
||||||
|
metrics-addr = "0.0.0.0:${toString cfg.metricsPort}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
environment.systemPackages = with pkgs; [ docker-compose ];
|
||||||
|
users.users.${config.skyg.user.name}.extraGroups = [ "docker" ];
|
||||||
|
virtualisation.oci-containers.backend = "docker";
|
||||||
|
networking.firewall.allowedUDPPorts =
|
||||||
|
(if cfg.openMetricsPort then [
|
||||||
|
cfg.metricsPort
|
||||||
|
] else [ ]);
|
||||||
|
networking.firewall.allowedTCPPorts =
|
||||||
|
(if cfg.openMetricsPort then [
|
||||||
|
cfg.metricsPort
|
||||||
|
] else [ ]);
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.skyg.nixos.common.containers;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf (cfg.runtime == "podman") {
|
||||||
|
virtualisation.oci-containers.backend = "podman";
|
||||||
|
virtualisation = {
|
||||||
|
podman = {
|
||||||
|
enable = true;
|
||||||
|
dockerCompat = true;
|
||||||
|
defaultNetwork.settings.dns_enabled = true;
|
||||||
|
dockerSocket.enable = true;
|
||||||
|
autoPrune.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
environment.systemPackages = with pkgs; [ podman-compose podman-tui ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
{ pkgs, config, ... }:
|
||||||
|
{
|
||||||
|
# System Packages
|
||||||
|
services.hydra.useSubstitutes = true;
|
||||||
|
programs.dconf.enable = true;
|
||||||
|
programs.nix-ld.enable = true;
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
nix = {
|
||||||
|
optimise.automatic = true;
|
||||||
|
settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
};
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
# nix utils
|
||||||
|
appimage-run
|
||||||
|
|
||||||
|
# shell tools
|
||||||
|
git
|
||||||
|
usbutils
|
||||||
|
|
||||||
|
# system utils
|
||||||
|
nfs-utils
|
||||||
|
lm_sensors
|
||||||
|
hwinfo
|
||||||
|
dig
|
||||||
|
|
||||||
|
# misc
|
||||||
|
glib-networking
|
||||||
|
glib
|
||||||
|
glibc
|
||||||
|
|
||||||
|
# printer
|
||||||
|
system-config-printer
|
||||||
|
|
||||||
|
# nix utils
|
||||||
|
nix-index
|
||||||
|
nil
|
||||||
|
cachix
|
||||||
|
nixpkgs-fmt
|
||||||
|
nvd
|
||||||
|
# shell tools
|
||||||
|
wget
|
||||||
|
];
|
||||||
|
services.xserver.excludePackages = with pkgs; [
|
||||||
|
xterm
|
||||||
|
];
|
||||||
|
# Set your time zone.
|
||||||
|
time.timeZone = "America/Toronto";
|
||||||
|
|
||||||
|
# Select internationalisation properties.
|
||||||
|
i18n.defaultLocale = "en_CA.UTF-8";
|
||||||
|
|
||||||
|
# Storage Clean up
|
||||||
|
services.cron = {
|
||||||
|
enable = true;
|
||||||
|
systemCronJobs = [
|
||||||
|
"* 23 * * * root nix-collect-garbage --delete-older-than 1d"
|
||||||
|
"* 23 * * * ${config.skyg.user.name} nix-collect-garbage --delete-older-than 1d"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./hardware
|
||||||
|
./containers
|
||||||
|
./core.nix
|
||||||
|
./networking.nix
|
||||||
|
./user.nix
|
||||||
|
./fonts.nix
|
||||||
|
./ssh-server.nix
|
||||||
|
./qemu.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
fonts = {
|
||||||
|
packages = with pkgs; [
|
||||||
|
fira-code
|
||||||
|
fira-code-symbols
|
||||||
|
font-awesome
|
||||||
|
mplus-outline-fonts.githubRelease
|
||||||
|
jetbrains-mono
|
||||||
|
ubuntu_font_family
|
||||||
|
noto-fonts
|
||||||
|
noto-fonts-cjk-sans
|
||||||
|
noto-fonts-emoji
|
||||||
|
];
|
||||||
|
enableDefaultPackages = true;
|
||||||
|
fontDir.enable = true;
|
||||||
|
fontconfig = {
|
||||||
|
enable = true;
|
||||||
|
defaultFonts = {
|
||||||
|
serif = [ "Fira Code" "DroidSansMono" ];
|
||||||
|
sansSerif = [ "Fira Code" "DroidSansMono" ];
|
||||||
|
monospace = [ "Fira Code" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
{ lib
|
||||||
|
, config
|
||||||
|
, pkgs
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.skyg.nixos.common.hardware.amdgpu;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.skyg.nixos.common.hardware.amdgpu = with lib; {
|
||||||
|
enable = mkEnableOption "amdgpu";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||||
|
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||||
|
hardware.graphics = {
|
||||||
|
extraPackages = [ pkgs.amdvlk ];
|
||||||
|
extraPackages32 = [ pkgs.driversi686Linux.amdvlk ];
|
||||||
|
};
|
||||||
|
environment.systemPackages = (with pkgs; [
|
||||||
|
rocmPackages.rocm-smi
|
||||||
|
rocmPackages.rpp
|
||||||
|
rocmPackages.rocm-core
|
||||||
|
rocmPackages.rocm-runtime
|
||||||
|
rocmPackages.hipblas
|
||||||
|
rocmPackages.llvm.clang
|
||||||
|
amdgpu_top
|
||||||
|
amdctl
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
{ config, lib, ... }:
|
||||||
|
with lib;
|
||||||
|
let cfg = config.skyg.nixos.common.hardware.udevrules.coraltpu;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
skyg.nixos.common.hardware.udevrules.coraltpu = {
|
||||||
|
enable = mkEnableOption
|
||||||
|
"Enable Coral TPU Udev rules";
|
||||||
|
symlinkName = mkOption {
|
||||||
|
description = "The special symlink to give to the coral tpu";
|
||||||
|
type = types.str;
|
||||||
|
default = "coral1";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.udev.extraRules = ''
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1a6e", ATTRS{idProduct}=="089a", MODE="0664", TAG+="uaccess", SYMLINK+="${cfg.symlinkName}"
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="9302", MODE="0664", TAG+="uaccess", SYMLINK+="${cfg.symlinkName}"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./fan2go.nix
|
||||||
|
./fancontrol.nix
|
||||||
|
./sound.nix
|
||||||
|
./laptop-power.nix
|
||||||
|
./nvidia.nix
|
||||||
|
./amdgpu.nix
|
||||||
|
./coral-tpu-udev.nix
|
||||||
|
];
|
||||||
|
# Firmware Updater
|
||||||
|
services.fwupd.enable = true;
|
||||||
|
# Enable all license firmware
|
||||||
|
hardware.enableAllFirmware = true;
|
||||||
|
}
|
||||||
@@ -0,0 +1,95 @@
|
|||||||
|
# Source: https://github.com/arnarg/config/blob/3cfad29004a92d310871a56605aa84df1b13741f/hosts/terra/fan2go.nix
|
||||||
|
{ lib
|
||||||
|
, config
|
||||||
|
, pkgs
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.skyg.nixos.common.hardware.fan2go;
|
||||||
|
|
||||||
|
fan2goConfig = pkgs.writeText "fan2go.yaml" ''
|
||||||
|
dbPath: ${cfg.dbPath}
|
||||||
|
|
||||||
|
fans:
|
||||||
|
- id: out_back
|
||||||
|
hwmon:
|
||||||
|
platform: it8613
|
||||||
|
rpmChannel: 3
|
||||||
|
pwmChannel: 3
|
||||||
|
curve: case_max
|
||||||
|
|
||||||
|
sensors:
|
||||||
|
- id: cpu_package
|
||||||
|
hwmon:
|
||||||
|
platform: coretemp
|
||||||
|
index: 1
|
||||||
|
|
||||||
|
- id: nvme_ssd
|
||||||
|
hwmon:
|
||||||
|
platform: nvme
|
||||||
|
index: 2
|
||||||
|
|
||||||
|
- id: hdd
|
||||||
|
hwmon:
|
||||||
|
platform: drivetemp
|
||||||
|
index: 1
|
||||||
|
|
||||||
|
curves:
|
||||||
|
- id: cpu_curve
|
||||||
|
linear:
|
||||||
|
sensor: cpu_package
|
||||||
|
steps:
|
||||||
|
- 40: 0
|
||||||
|
- 50: 50
|
||||||
|
- 80: 255
|
||||||
|
|
||||||
|
- id: nvme_curve
|
||||||
|
linear:
|
||||||
|
sensor: nvme_ssd
|
||||||
|
min: 40
|
||||||
|
max: 70
|
||||||
|
|
||||||
|
- id: hdd_curve
|
||||||
|
linear:
|
||||||
|
sensor: hdd
|
||||||
|
min: 30
|
||||||
|
max: 50
|
||||||
|
|
||||||
|
- id: case_max
|
||||||
|
function:
|
||||||
|
type: maximum
|
||||||
|
curves:
|
||||||
|
- cpu_curve
|
||||||
|
- nvme_curve
|
||||||
|
- hdd_curve
|
||||||
|
'';
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.skyg.nixos.common.hardware.fan2go = with lib; {
|
||||||
|
enable = mkEnableOption "fan2go";
|
||||||
|
|
||||||
|
dbPath = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "/var/lib/fan2go/fan2go.db";
|
||||||
|
description = "The path of the database file.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
systemd.services.fan2go = {
|
||||||
|
description = "A simple daemon providing dynamic fan speed control based on temperature sensors.";
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
after = [ "lm_sensors.service" ];
|
||||||
|
|
||||||
|
serviceConfig = {
|
||||||
|
ExecStart = lib.concatStringsSep " " [
|
||||||
|
"${pkgs.fan2go}/bin/fan2go"
|
||||||
|
"-c"
|
||||||
|
"${fan2goConfig}"
|
||||||
|
"--no-style"
|
||||||
|
];
|
||||||
|
LimitNOFILE = 8192;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
{ lib
|
||||||
|
, config
|
||||||
|
, pkgs
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.skyg.nixos.common.hardware.fancontrol;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.skyg.nixos.common.hardware.fancontrol = with lib; {
|
||||||
|
enable = mkEnableOption "fancontrol";
|
||||||
|
configName = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
systemd.services.fancontrol = {
|
||||||
|
enable = true;
|
||||||
|
description = "Fan control";
|
||||||
|
wantedBy = [ "multi-user.target" "graphical.target" "rescue.target" ];
|
||||||
|
|
||||||
|
unitConfig = {
|
||||||
|
Type = "simple";
|
||||||
|
};
|
||||||
|
|
||||||
|
serviceConfig = {
|
||||||
|
ExecStart = "${pkgs.lm_sensors}/bin/fancontrol ${cfg.configName}";
|
||||||
|
Restart = "always";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
{ lib
|
||||||
|
, config
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.skyg.nixos.common.hardware.laptop-power-mgr;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.skyg.nixos.common.hardware.laptop-power-mgr = with lib; {
|
||||||
|
enable = mkEnableOption "Settings for laptop power management";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
# Advance Power Management
|
||||||
|
powerManagement.powertop.enable = true;
|
||||||
|
powerManagement.enable = true;
|
||||||
|
services.thermald.enable = true;
|
||||||
|
services.power-profiles-daemon.enable = false;
|
||||||
|
services.tlp = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
TLP_DEFAULT_MODE = "BAT";
|
||||||
|
TLP_PERSISTENT_DEFAULT = 1;
|
||||||
|
|
||||||
|
CPU_BOOST_ON_BAT = 0;
|
||||||
|
RUNTIME_PM_ON_BAT = "auto";
|
||||||
|
PLATFORM_PROFILE_ON_AC = "balanced";
|
||||||
|
PLATFORM_PROFILE_ON_BAT = "low-power";
|
||||||
|
|
||||||
|
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||||
|
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||||
|
|
||||||
|
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
||||||
|
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
||||||
|
|
||||||
|
CPU_MIN_PERF_ON_AC = 0;
|
||||||
|
CPU_MAX_PERF_ON_AC = 100;
|
||||||
|
CPU_MIN_PERF_ON_BAT = 0;
|
||||||
|
CPU_MAX_PERF_ON_BAT = 20;
|
||||||
|
|
||||||
|
START_CHARGE_THRESH_BAT0 = 40; # and bellow it starts to charge
|
||||||
|
STOP_CHARGE_THRESH_BAT0 = 97; # and above it stops charging
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services.auto-cpufreq.enable = true;
|
||||||
|
services.auto-cpufreq.settings = {
|
||||||
|
battery = {
|
||||||
|
governor = "powersave";
|
||||||
|
turbo = "never";
|
||||||
|
};
|
||||||
|
charger = {
|
||||||
|
governor = "performance";
|
||||||
|
turbo = "auto";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
systemd.sleep.extraConfig = "HibernateDelaySec=30m";
|
||||||
|
# Logind
|
||||||
|
services.logind = {
|
||||||
|
lidSwitchExternalPower = "suspend-then-hibernate";
|
||||||
|
lidSwitch = "suspend-then-hibernate";
|
||||||
|
powerKey = "lock";
|
||||||
|
extraConfig = ''
|
||||||
|
LidSwitchIgnoreInhibited=yes
|
||||||
|
HandlePowerKey=suspend-then-hibernate
|
||||||
|
IdleAction=suspend-then-hibernate
|
||||||
|
IdleActionSec=2m
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
{ lib
|
||||||
|
, config
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.skyg.nixos.common.hardware.nvidia;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.skyg.nixos.common.hardware.nvidia = with lib; {
|
||||||
|
enable = mkEnableOption "nvidia";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
boot.kernel.sysctl = {
|
||||||
|
"net.core.bpf_jit_harden" = 1; # https://github.com/NVIDIA/libnvidia-container/issues/176#issuecomment-2101166824
|
||||||
|
};
|
||||||
|
# Nvidia Settings
|
||||||
|
programs.nix-required-mounts.presets.nvidia-gpu.enable = true;
|
||||||
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
|
hardware.nvidia-container-toolkit.enable = true;
|
||||||
|
virtualisation.docker.daemon.settings.features.cdi = true;
|
||||||
|
hardware.graphics.enable32Bit = true;
|
||||||
|
hardware.graphics.enable = true;
|
||||||
|
hardware.nvidia = {
|
||||||
|
# datacenter.enable = true;
|
||||||
|
modesetting.enable = true;
|
||||||
|
powerManagement.enable = false;
|
||||||
|
powerManagement.finegrained = false;
|
||||||
|
open = false;
|
||||||
|
nvidiaSettings = true;
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
{ lib
|
||||||
|
, config
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.skyg.nixos.common.hardware.sound;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.skyg.nixos.common.hardware.sound = with lib; {
|
||||||
|
enable = mkEnableOption "sound";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
# Enable sound with pipewire.
|
||||||
|
hardware.pulseaudio.enable = false;
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
jack.enable = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
systemWide = false;
|
||||||
|
};
|
||||||
|
services.jack = {
|
||||||
|
alsa.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.skyg.core;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
skyg.core = {
|
||||||
|
hostName = lib.mkOption {
|
||||||
|
description = "Machine Hostname";
|
||||||
|
type = lib.types.str;
|
||||||
|
};
|
||||||
|
tailscaleRouting = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "client";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = {
|
||||||
|
# Define hostname.
|
||||||
|
networking.hostName = cfg.hostName;
|
||||||
|
|
||||||
|
# Enable networking
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
# NFS Support
|
||||||
|
services.nfs.server.enable = true;
|
||||||
|
|
||||||
|
# Tailscale
|
||||||
|
services.tailscale.enable = true;
|
||||||
|
services.tailscale.useRoutingFeatures = cfg.tailscaleRouting;
|
||||||
|
|
||||||
|
# Disable the flaky nm service
|
||||||
|
systemd.services.NetworkManager-wait-online.enable = false;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.skyg.core.qemu;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
skyg.core.qemu = {
|
||||||
|
enable = lib.mkEnableOption
|
||||||
|
"Enable qemu";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
environment = {
|
||||||
|
systemPackages = with pkgs; [
|
||||||
|
qemu
|
||||||
|
quickemu
|
||||||
|
win-spice
|
||||||
|
spice
|
||||||
|
spice-vdagent
|
||||||
|
spice-autorandr
|
||||||
|
virt-viewer
|
||||||
|
];
|
||||||
|
};
|
||||||
|
services.spice-vdagentd.enable = true;
|
||||||
|
services.spice-autorandr.enable = true;
|
||||||
|
services.spice-webdavd.enable = true;
|
||||||
|
virtualisation.spiceUSBRedirection.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.skyg.nixos.common.ssh-server;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
skyg.nixos.common.ssh-server = {
|
||||||
|
enable = lib.mkEnableOption
|
||||||
|
"enable ssh server";
|
||||||
|
masterPubKey = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCuatskL9qXvgvS3E8zRwosFnpcN0f8PkKl8syAvpn297V2iPk6mi8yK3EE7xPpxaKKlwUuBHDj3BNUCoLgdRFKUgroRDzr3BMm+gZTHy6CuEZBY9zBRTmH+aOV6FZ96QPW4zba0BW5YPkPNy/FhYibjpXyZ3nX4/LWSbPKQJ7wTnUJZgq4VFmevBOttvhzUJUgTziMFsGXn6I38fAi6LI8qwI+zOOdsNjtKgr/TIlO/7VqcH7GYnQEwlthl577sDd1V6+XWz649qoiBYyq0Ahm09dwYx2iGQwLo8IYFbSy4aJRK/PI0+ytnPBoF5QCl+ILb5E8uV3e6Wb9WpXl9Hv2iLx91/9iq5hykHPnfVtkq3MK0C2vqkvX1qFOIkKM7vmxvXGbaDZDGK3G+/zkQ7GUw8ydbl9wGwE9cKbm9miqs4w2Ry/+3IZasE6G2TI97bSzSYInQd2RwoglqBOaJojbUqgI9wvNdKxGhADNFbZah2+s6SSe1ByQRN3b9wtmqu0= ari@shared";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
settings.PasswordAuthentication = false;
|
||||||
|
settings.KbdInteractiveAuthentication = false;
|
||||||
|
settings.PermitRootLogin = "yes";
|
||||||
|
};
|
||||||
|
users.users.${config.skyg.user.name}.openssh.authorizedKeys.keys = [
|
||||||
|
cfg.masterPubKey
|
||||||
|
];
|
||||||
|
users.users.root.openssh.authorizedKeys.keys = [
|
||||||
|
cfg.masterPubKey
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
users.users.root = {
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
};
|
||||||
|
users.users.${config.skyg.user.name} = {
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
isNormalUser = true;
|
||||||
|
description = config.skyg.user.name;
|
||||||
|
extraGroups = [
|
||||||
|
"networkmanager"
|
||||||
|
"wheel"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./common
|
||||||
|
./server
|
||||||
|
./desktop
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.skyg.nixos.desktop.cosmic;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
skyg.nixos.desktop.cosmic = {
|
||||||
|
enable = lib.mkEnableOption
|
||||||
|
"Cosmic";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.cosmic-icons
|
||||||
|
];
|
||||||
|
services.desktopManager.cosmic.enable = true;
|
||||||
|
# services.displayManager.cosmic-greeter.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.skyg.nixos.desktop.crypto;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
skyg.nixos.desktop.crypto = {
|
||||||
|
enable = mkEnableOption
|
||||||
|
"Enable crypto wallets";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
trezor-suite
|
||||||
|
trezord
|
||||||
|
ledger-live-desktop
|
||||||
|
sparrow
|
||||||
|
];
|
||||||
|
# udev rules for crypto wallets
|
||||||
|
services.udev.packages = with pkgs; [
|
||||||
|
ledger-udev-rules
|
||||||
|
trezor-udev-rules
|
||||||
|
];
|
||||||
|
# trezor groups
|
||||||
|
users.groups.trezord = { };
|
||||||
|
users.groups.trezord.members = [ config.skyg.user.name ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.skyg.nixos;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./kde.nix
|
||||||
|
./cosmic.nix
|
||||||
|
./wayland.nix
|
||||||
|
./x11.nix
|
||||||
|
./packages.nix
|
||||||
|
./crypto.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
options = {
|
||||||
|
skyg.nixos.desktop = {
|
||||||
|
enable = lib.mkEnableOption
|
||||||
|
"Enable Desktop";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.desktop.enable {
|
||||||
|
services.displayManager.enable = true;
|
||||||
|
services.displayManager.sddm.enable = true;
|
||||||
|
services.displayManager.sddm.wayland.enable = true;
|
||||||
|
services.displayManager.sddm.wayland.compositor = "kwin";
|
||||||
|
# security.pam.services.<name>.kwallet.enable = true;
|
||||||
|
|
||||||
|
services.xserver.displayManager.gdm.enable = false;
|
||||||
|
services.xserver.displayManager.gdm.autoSuspend = false;
|
||||||
|
services.xserver.displayManager.gdm.banner = ''Ari's PC'';
|
||||||
|
services.xserver.displayManager.gdm.wayland = false;
|
||||||
|
xdg = {
|
||||||
|
autostart.enable = true;
|
||||||
|
mime.enable = true;
|
||||||
|
menus.enable = true;
|
||||||
|
icons.enable = true;
|
||||||
|
sounds.enable = true;
|
||||||
|
terminal-exec.enable = true;
|
||||||
|
portal = {
|
||||||
|
enable = true;
|
||||||
|
# wlr.enable = true;
|
||||||
|
# xdgOpenUsePortal = true;
|
||||||
|
# config = {
|
||||||
|
# common.default = [ "*" ];
|
||||||
|
# plasma6.default = [ "gtk" "kde" ];
|
||||||
|
# };
|
||||||
|
# extraPortals = [
|
||||||
|
# pkgs.xdg-desktop-portal-gtk
|
||||||
|
# ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.skyg.nixos.desktop.kde;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
skyg.nixos.desktop.kde = {
|
||||||
|
enable = lib.mkEnableOption
|
||||||
|
"KDE";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
services.desktopManager.plasma6.enable = true;
|
||||||
|
services.desktopManager.plasma6.enableQt5Integration = true;
|
||||||
|
environment.plasma6.excludePackages = with pkgs.kdePackages; [
|
||||||
|
konsole # terminal
|
||||||
|
elisa # media player
|
||||||
|
kate # text editor
|
||||||
|
gwenview # image viewer
|
||||||
|
];
|
||||||
|
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-kde ];
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
kdePackages.plasma-browser-integration
|
||||||
|
kdePackages.xdg-desktop-portal-kde
|
||||||
|
konsave # save configs
|
||||||
|
];
|
||||||
|
services.desktopManager.plasma6.notoPackage = pkgs.fira-code;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,85 @@
|
|||||||
|
{ config, lib, pkgs, inputs, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.skyg.nixos.desktop;
|
||||||
|
ghostty = inputs.ghostty.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
# Flatpak
|
||||||
|
services.flatpak.enable = true;
|
||||||
|
# Mobile Connect
|
||||||
|
programs.kdeconnect.enable = true;
|
||||||
|
environment.systemPackages = [ ghostty ] ++ (with pkgs; [
|
||||||
|
# General utils
|
||||||
|
busybox
|
||||||
|
gcc
|
||||||
|
rofimoji # emoji picker
|
||||||
|
feh # image viewer
|
||||||
|
xdg-desktop-portal
|
||||||
|
|
||||||
|
# copy to clipboard
|
||||||
|
wl-clipboard-x11
|
||||||
|
xclip
|
||||||
|
|
||||||
|
# socials
|
||||||
|
zoom-us
|
||||||
|
betterdiscordctl
|
||||||
|
discord
|
||||||
|
signal-desktop
|
||||||
|
skypeforlinux
|
||||||
|
|
||||||
|
# development
|
||||||
|
vscode
|
||||||
|
|
||||||
|
# mail
|
||||||
|
thunderbird
|
||||||
|
|
||||||
|
# password
|
||||||
|
bitwarden-desktop
|
||||||
|
|
||||||
|
# documents
|
||||||
|
onlyoffice-bin_latest
|
||||||
|
|
||||||
|
# video
|
||||||
|
vlc
|
||||||
|
vlc-bittorrent
|
||||||
|
|
||||||
|
# terminal
|
||||||
|
alacritty
|
||||||
|
alacritty-theme
|
||||||
|
|
||||||
|
# wine
|
||||||
|
wineWowPackages.stable
|
||||||
|
winetricks
|
||||||
|
wineWowPackages.waylandFull
|
||||||
|
|
||||||
|
# Video recording
|
||||||
|
obs-studio
|
||||||
|
|
||||||
|
# Browser
|
||||||
|
chromium
|
||||||
|
google-chrome
|
||||||
|
|
||||||
|
# Photo Editing
|
||||||
|
krita
|
||||||
|
gimp-with-plugins
|
||||||
|
]);
|
||||||
|
services.flatpak.packages = [
|
||||||
|
"com.slack.Slack"
|
||||||
|
"com.spotify.Client"
|
||||||
|
"com.cassidyjames.butler"
|
||||||
|
"dev.zed.Zed"
|
||||||
|
"io.dbeaver.DBeaverCommunity"
|
||||||
|
"it.fabiodistasio.AntaresSQL"
|
||||||
|
"io.github.zen_browser.zen"
|
||||||
|
"com.github.sdv43.whaler"
|
||||||
|
];
|
||||||
|
programs.firefox = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
home-manager.users.${config.skyg.user.name}.home.shellAliases = {
|
||||||
|
open-image = "feh";
|
||||||
|
open-file = "nautilus";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.skyg.nixos.desktop;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
# Flatpak
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
wayland
|
||||||
|
wayland-protocols
|
||||||
|
wayland-utils
|
||||||
|
xdg-desktop-portal-wlr
|
||||||
|
xdg-desktop-portal-gtk
|
||||||
|
];
|
||||||
|
programs.xwayland.enable = true;
|
||||||
|
xdg.portal.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.skyg.nixos.desktop;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
services.xserver = {
|
||||||
|
enable = true;
|
||||||
|
xkb.layout = "us";
|
||||||
|
xkb.variant = "";
|
||||||
|
};
|
||||||
|
users.users.${config.skyg.user.name}.extraGroups = [ "input" ];
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
# These are used to handle touchpad gestures
|
||||||
|
libinput-gestures
|
||||||
|
wmctrl
|
||||||
|
xdotool
|
||||||
|
];
|
||||||
|
system.userActivationScripts.hyprlandMineConfig.text = ''
|
||||||
|
ln -sfn "/home/${config.skyg.user.name}/nixos-setup/configs/libinput-gestures.conf" "$HOME/.config/libinput-gestures.conf"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
Loaded 100 of 131 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user