Compare commits

..

1 commit

Author SHA1 Message Date
Christoph Hollizeck f7ef29c416
nvidia: move configurations in respective files 2024-11-09 23:18:36 +01:00
20 changed files with 691 additions and 1266 deletions

View file

@ -5,13 +5,3 @@ creation_rules:
key_groups:
- age:
- *primary
- path_regex: secrets/secrets-yggdrasil.yaml$
key_groups:
- age:
- *primary
- path_regex: secrets/secrets-loptland.yaml$
key_groups:
- age:
- *primary

View file

@ -1,24 +1,5 @@
{
"nodes": {
"ags": {
"inputs": {
"nixpkgs": "nixpkgs_3",
"systems": "systems_4"
},
"locked": {
"lastModified": 1728326430,
"narHash": "sha256-tV1ABHuA1HItMdCTuNdA8fMB+qw7LpjvI945VwMSABI=",
"owner": "Aylur",
"repo": "ags",
"rev": "60180a184cfb32b61a1d871c058b31a3b9b0743d",
"type": "github"
},
"original": {
"owner": "Aylur",
"repo": "ags",
"type": "github"
}
},
"aquamarine": {
"inputs": {
"hyprutils": [
@ -39,11 +20,11 @@
]
},
"locked": {
"lastModified": 1730968822,
"narHash": "sha256-NocDjINsh6ismkhb0Xr6xPRksmhuB2WGf8ZmXMhxu7Y=",
"lastModified": 1729527199,
"narHash": "sha256-D5/YksfRga8Akd04ZtIkuYSIOjXVrAzQIQBSeplokzU=",
"owner": "hyprwm",
"repo": "aquamarine",
"rev": "a49bc3583ff223f426cb3526fdaa4bcaa247ec14",
"rev": "8d732fa8aff8b12ef2b1e2f00fc8153e41312b72",
"type": "github"
},
"original": {
@ -75,11 +56,11 @@
"rust-analyzer-src": "rust-analyzer-src"
},
"locked": {
"lastModified": 1730961036,
"narHash": "sha256-nkho9Dq4WzyF4xr83UdxrlDS5Sm7ZKkPaqGVupLOpOI=",
"lastModified": 1730097176,
"narHash": "sha256-ufvRff76Y19mkRsmx+mAnxKE9A9VaNWC2mVY6TwumOw=",
"owner": "nix-community",
"repo": "fenix",
"rev": "9bf50cb857db8dba15528f3905e271d948cbff06",
"rev": "482b57f3f27a9336e0fbc62fa99ee0f624ccf4d0",
"type": "github"
},
"original": {
@ -245,7 +226,7 @@
},
"flake-utils_2": {
"inputs": {
"systems": "systems_5"
"systems": "systems_4"
},
"locked": {
"lastModified": 1710146030,
@ -263,7 +244,7 @@
},
"flake-utils_3": {
"inputs": {
"systems": "systems_6"
"systems": "systems_5"
},
"locked": {
"lastModified": 1726560853,
@ -296,7 +277,7 @@
},
"flake-utils_5": {
"inputs": {
"systems": "systems_7"
"systems": "systems_6"
},
"locked": {
"lastModified": 1694529238,
@ -315,7 +296,7 @@
"gen-luarc": {
"inputs": {
"flake-parts": "flake-parts",
"nixpkgs": "nixpkgs_5"
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1718922730,
@ -379,11 +360,11 @@
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1730790589,
"narHash": "sha256-xJ6bQ4VmdTB7A+dMbmOMaZ8a6erB6rkZkB+yzqD7gd4=",
"lastModified": 1729690460,
"narHash": "sha256-x8qkGujBPuOefXPyjcaB8Ot0IYkQBy6O2ZYb8NrnB3k=",
"owner": "helix-editor",
"repo": "helix",
"rev": "b53dafe326d51b7f64a1c52379e3d4150cd2991e",
"rev": "101a74bf6edbbfdf9b0628a0bdbbc307ebe10ff2",
"type": "github"
},
"original": {
@ -399,11 +380,11 @@
]
},
"locked": {
"lastModified": 1730837930,
"narHash": "sha256-0kZL4m+bKBJUBQse0HanewWO0g8hDdCvBhudzxgehqc=",
"lastModified": 1730016908,
"narHash": "sha256-bFCxJco7d8IgmjfNExNz9knP8wvwbXU4s/d53KOK6U0=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "2f607e07f3ac7e53541120536708e824acccfaa8",
"rev": "e83414058edd339148dc142a8437edb9450574c8",
"type": "github"
},
"original": {
@ -476,11 +457,11 @@
"xdph": "xdph"
},
"locked": {
"lastModified": 1730969692,
"narHash": "sha256-yHY98IWTLDz57TrseUxdh5QnpngcNCjNXTJ2XCeNhtk=",
"lastModified": 1730072482,
"narHash": "sha256-3Aotvc0dFS9J2iDnrSVjjngdZcaD9ghfroVU3jl84Gk=",
"ref": "refs/heads/main",
"rev": "e58e97b0a38b8ccc87a4304c9e4e2b37c9966875",
"revCount": 5425,
"rev": "6cf193e1662f6f750e964a3e174ae017246b4d48",
"revCount": 5385,
"submodules": true,
"type": "git",
"url": "https://github.com/hyprwm/Hyprland"
@ -508,11 +489,11 @@
]
},
"locked": {
"lastModified": 1730755630,
"narHash": "sha256-IA5U8lHx/lnHwbx25dpPpeLbaALqNNjalYCf19tIoj0=",
"lastModified": 1729596320,
"narHash": "sha256-sBPr6O2Ad916f+L7biAjmJVx4TLDITC4joKgeOT47V8=",
"owner": "hyprwm",
"repo": "hyprland-plugins",
"rev": "44859f877739c05d031fcab4a2991ec004fa9bc4",
"rev": "4d7f0b5d8b952f31f7d2e29af22ab0a55ca5c219",
"type": "github"
},
"original": {
@ -612,11 +593,11 @@
"systems": "systems_3"
},
"locked": {
"lastModified": 1730911842,
"narHash": "sha256-stAVRv13iACAIJ6mheJOwZXWD24YDupyshaUDovVNi4=",
"lastModified": 1730053985,
"narHash": "sha256-jh7PhejwT+XqkkYnpZ6K/Gkqy4tvjN7g/ZBTvlS+Q9Y=",
"owner": "hyprwm",
"repo": "hyprlock",
"rev": "4fc133c96fa1ad2968cad44f8e9e9e923cd0381a",
"rev": "edbecc87081756b45bdbea16b63e413473659dcd",
"type": "github"
},
"original": {
@ -625,25 +606,6 @@
"type": "github"
}
},
"hyprpanel": {
"inputs": {
"ags": "ags",
"nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1730958442,
"narHash": "sha256-8vmh+ehnDnIenBNibGTPCu8p7cJiFP6bzj0E7pBxgQQ=",
"owner": "Jas-SinghFSU",
"repo": "HyprPanel",
"rev": "dbd932941b46ced4eac5da30994d5af2ca80530c",
"type": "github"
},
"original": {
"owner": "Jas-SinghFSU",
"repo": "HyprPanel",
"type": "github"
}
},
"hyprutils": {
"inputs": {
"nixpkgs": [
@ -656,11 +618,11 @@
]
},
"locked": {
"lastModified": 1730968903,
"narHash": "sha256-zFvzLXcSm0Ia4XI1SE4FQ9KE63hlGrRWhLtwMolWuR8=",
"lastModified": 1728941256,
"narHash": "sha256-WRypmcZ2Bw94lLmcmxYokVOHPJSZ7T06V49QZ4tkZeQ=",
"owner": "hyprwm",
"repo": "hyprutils",
"rev": "3ce0cde8709cdacbfba471f8e828433b58a561e9",
"rev": "fd4be8b9ca932f7384e454bcd923c5451ef2aa85",
"type": "github"
},
"original": {
@ -763,11 +725,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1730919458,
"narHash": "sha256-yMO0T0QJlmT/x4HEyvrCyigGrdYfIXX3e5gWqB64wLg=",
"lastModified": 1730068391,
"narHash": "sha256-jlAGtfMuI8pUUoUmNkm2P/38pOtHZdcAf3Az8XQLAf4=",
"owner": "nixos",
"repo": "nixos-hardware",
"rev": "e1cc1f6483393634aee94514186d21a4871e78d7",
"rev": "6906ac67a1078cf950b8527341e229eeecb5bc30",
"type": "github"
},
"original": {
@ -785,11 +747,11 @@
]
},
"locked": {
"lastModified": 1730453870,
"narHash": "sha256-d+kIgz4BvTXb7emjSFV3zjNydGmLUmuluQjdBb51R9o=",
"lastModified": 1730106248,
"narHash": "sha256-xicJnAvJ/8nJ6Ojwz6tWk+EcMjcW+M9ozlvfgjFQ+UQ=",
"owner": "nix-community",
"repo": "NixOS-WSL",
"rev": "adb6bc4b661a43328752b4575be4968a4990c033",
"rev": "24ab2f9ad309b1bba89644116656139dde706833",
"type": "github"
},
"original": {
@ -800,11 +762,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1730785428,
"narHash": "sha256-Zwl8YgTVJTEum+L+0zVAWvXAGbWAuXHax3KzuejaDyo=",
"lastModified": 1729413321,
"narHash": "sha256-I4tuhRpZFa6Fu6dcH9Dlo5LlH17peT79vx1y1SpeKt0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "4aa36568d413aca0ea84a1684d2d46f55dbabad7",
"rev": "1997e4aa514312c1af7e2bda7fad1644e778ff26",
"type": "github"
},
"original": {
@ -816,17 +778,17 @@
},
"nixpkgs-latest-factorio": {
"locked": {
"lastModified": 1730638571,
"narHash": "sha256-z9Wy1jmhFrABK3cEyiVmQtUwOuQW1YPwA8+HMnbEpnE=",
"lastModified": 1729881984,
"narHash": "sha256-GbM6MN8X46nlHFdwCPMS7VG50nI9hJ65FTofa09e6sY=",
"owner": "Daholli",
"repo": "nixpkgs",
"rev": "d941e9aa2d89f377d45516c5edd765fef15ea90a",
"rev": "19493dc0ad16ffd5414ac9b4e12179d0e1b98468",
"type": "github"
},
"original": {
"owner": "Daholli",
"repo": "nixpkgs",
"rev": "d941e9aa2d89f377d45516c5edd765fef15ea90a",
"rev": "19493dc0ad16ffd5414ac9b4e12179d0e1b98468",
"type": "github"
}
},
@ -844,11 +806,11 @@
},
"nixpkgs-master": {
"locked": {
"lastModified": 1731023751,
"narHash": "sha256-80FIi/BkulfaTxT76BfDeYyKc/Lo6SIs/4Xm+VlYe4o=",
"lastModified": 1730110089,
"narHash": "sha256-yfKsL/0ZMxmy8wE9lgNt5DMwUhgqhYUmKTR5Te6HF9A=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "ed1b9995752699c34e16e5baafaf5e517397bec8",
"rev": "730e5fa135993f57f2013d911ce5b98d020365f3",
"type": "github"
},
"original": {
@ -860,11 +822,11 @@
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1730741070,
"narHash": "sha256-edm8WG19kWozJ/GqyYx2VjW99EdhjKwbY3ZwdlPAAlo=",
"lastModified": 1720386169,
"narHash": "sha256-NGKVY4PjzwAa4upkGtAMz1npHGoRzWotlSnVlqI40mo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d063c1dd113c91ab27959ba540c0d9753409edf3",
"rev": "194846768975b7ad2c4988bdb82572c00222c0d7",
"type": "github"
},
"original": {
@ -876,11 +838,11 @@
},
"nixpkgs-stable_2": {
"locked": {
"lastModified": 1730602179,
"narHash": "sha256-efgLzQAWSzJuCLiCaQUCDu4NudNlHdg2NzGLX5GYaEY=",
"lastModified": 1729973466,
"narHash": "sha256-knnVBGfTCZlQgxY1SgH0vn2OyehH9ykfF8geZgS95bk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "3c2f1c4ca372622cb2f9de8016c9a0b1cbd0f37c",
"rev": "cd3e8833d70618c4eea8df06f95b364b016d4950",
"type": "github"
},
"original": {
@ -892,11 +854,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1730785428,
"narHash": "sha256-Zwl8YgTVJTEum+L+0zVAWvXAGbWAuXHax3KzuejaDyo=",
"lastModified": 1729880355,
"narHash": "sha256-RP+OQ6koQQLX5nw0NmcDrzvGL8HDLnyXt/jHhL1jwjM=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "4aa36568d413aca0ea84a1684d2d46f55dbabad7",
"rev": "18536bf04cd71abd345f9579158841376fdd0c5a",
"type": "github"
},
"original": {
@ -924,15 +886,15 @@
},
"nixpkgs_3": {
"locked": {
"lastModified": 1725634671,
"narHash": "sha256-v3rIhsJBOMLR8e/RNWxr828tB+WywYIoajrZKFM+0Gg=",
"owner": "NixOS",
"lastModified": 1718714799,
"narHash": "sha256-FUZpz9rg3gL8NVPKbqU8ei1VkPLsTIfAJ2fdAf5qjak=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "574d1eac1c200690e27b8eb4e24887f8df7ac27c",
"rev": "c00d587b1a1afbf200b1d8f0b0e4ba9deb1c7f0e",
"type": "github"
},
"original": {
"owner": "NixOS",
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
@ -956,43 +918,11 @@
},
"nixpkgs_5": {
"locked": {
"lastModified": 1718714799,
"narHash": "sha256-FUZpz9rg3gL8NVPKbqU8ei1VkPLsTIfAJ2fdAf5qjak=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "c00d587b1a1afbf200b1d8f0b0e4ba9deb1c7f0e",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_6": {
"locked": {
"lastModified": 1730785428,
"narHash": "sha256-Zwl8YgTVJTEum+L+0zVAWvXAGbWAuXHax3KzuejaDyo=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "4aa36568d413aca0ea84a1684d2d46f55dbabad7",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_7": {
"locked": {
"lastModified": 1730272153,
"narHash": "sha256-B5WRZYsRlJgwVHIV6DvidFN7VX7Fg9uuwkRW9Ha8z+w=",
"lastModified": 1729951556,
"narHash": "sha256-bpb6r3GjzhNW8l+mWtRtLNg5PhJIae041sPyqcFNGb4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "2d2a9ddbe3f2c00747398f3dc9b05f7f2ebb0f53",
"rev": "4e0eec54db79d4d0909f45a88037210ff8eaffee",
"type": "github"
},
"original": {
@ -1002,13 +932,13 @@
"type": "github"
}
},
"nixpkgs_8": {
"nixpkgs_6": {
"locked": {
"lastModified": 1730200266,
"narHash": "sha256-l253w0XMT8nWHGXuXqyiIC/bMvh1VRszGXgdpQlfhvU=",
"lastModified": 1729880355,
"narHash": "sha256-RP+OQ6koQQLX5nw0NmcDrzvGL8HDLnyXt/jHhL1jwjM=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "807e9154dcb16384b1b765ebe9cd2bba2ac287fd",
"rev": "18536bf04cd71abd345f9579158841376fdd0c5a",
"type": "github"
},
"original": {
@ -1029,11 +959,11 @@
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1730814269,
"narHash": "sha256-fWPHyhYE6xvMI1eGY3pwBTq85wcy1YXqdzTZF+06nOg=",
"lastModified": 1729104314,
"narHash": "sha256-pZRZsq5oCdJt3upZIU4aslS9XwFJ+/nVtALHIciX/BI=",
"owner": "cachix",
"repo": "git-hooks.nix",
"rev": "d70155fdc00df4628446352fc58adc640cd705c2",
"rev": "3c3e88f0f544d6bb54329832616af7eb971b6be6",
"type": "github"
},
"original": {
@ -1052,12 +982,11 @@
"hyprland": "hyprland",
"hyprland-plugins": "hyprland-plugins",
"hyprlock": "hyprlock",
"hyprpanel": "hyprpanel",
"kickstartnvim": "kickstartnvim",
"nix-ld": "nix-ld",
"nixos-hardware": "nixos-hardware",
"nixos-wsl": "nixos-wsl",
"nixpkgs": "nixpkgs_6",
"nixpkgs": "nixpkgs_4",
"nixpkgs-latest-factorio": "nixpkgs-latest-factorio",
"nixpkgs-master": "nixpkgs-master",
"nixpkgs-unstable": "nixpkgs-unstable",
@ -1070,11 +999,11 @@
"rust-analyzer-src": {
"flake": false,
"locked": {
"lastModified": 1730749868,
"narHash": "sha256-b8UMpLh61z6T4J1NObustAuFGoJiAKBTaPTrEf3Amts=",
"lastModified": 1730028316,
"narHash": "sha256-FsPsSjqnqMHBgDdM24DFLw4YOw0mFKYFJBcLaI6CvI8=",
"owner": "rust-lang",
"repo": "rust-analyzer",
"rev": "b51f9bc736dc0472481a47d7c05de2901323e543",
"rev": "3b3a87fe9bd3f2a79942babc1d1e385b6805c384",
"type": "github"
},
"original": {
@ -1160,11 +1089,11 @@
]
},
"locked": {
"lastModified": 1730136121,
"narHash": "sha256-tfVayj13Zw+zzOKrmJhnvBod7Hdb9ixBR6/4GUlyMA0=",
"lastModified": 1719005984,
"narHash": "sha256-mpFl3Jv4fKnn+5znYXG6SsBjfXHJdRG5FEqNSPx0GLA=",
"owner": "snowfallorg",
"repo": "lib",
"rev": "dd348182c1a010993e68004eada86cf0341fe2c4",
"rev": "c6238c83de101729c5de3a29586ba166a9a65622",
"type": "github"
},
"original": {
@ -1175,15 +1104,15 @@
},
"sops-nix": {
"inputs": {
"nixpkgs": "nixpkgs_7",
"nixpkgs": "nixpkgs_5",
"nixpkgs-stable": "nixpkgs-stable_2"
},
"locked": {
"lastModified": 1731008979,
"narHash": "sha256-yN1NxvmqV8UltLkqYBWTeZNgpD/eyh/7LM58caHiEfE=",
"lastModified": 1729999681,
"narHash": "sha256-qm0uCtM9bg97LeJTKQ8dqV/FvqRN+ompyW4GIJruLuw=",
"owner": "Mic92",
"repo": "sops-nix",
"rev": "fe63071416471abdab06caa234122932a7c4b980",
"rev": "1666d16426abe79af5c47b7c0efa82fd31bf4c56",
"type": "github"
},
"original": {
@ -1239,16 +1168,16 @@
},
"systems_4": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default-linux",
"repo": "default",
"type": "github"
}
},
@ -1282,21 +1211,6 @@
"type": "github"
}
},
"systems_7": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"xdph": {
"inputs": {
"hyprland-protocols": [
@ -1325,11 +1239,11 @@
]
},
"locked": {
"lastModified": 1730743262,
"narHash": "sha256-iTLqj3lU8kFehPm5tXpctzkD274t/k1nwSSq3qCWXeg=",
"lastModified": 1728166987,
"narHash": "sha256-w6dVTguAn9zJ+7aPOhBQgDz8bn6YZ7b56cY8Kg5HJRI=",
"owner": "hyprwm",
"repo": "xdg-desktop-portal-hyprland",
"rev": "09b23cef06fe248e61cec8862c04b9bcb62f4b6d",
"rev": "fb9c8d665af0588bb087f97d0f673ddf0d501787",
"type": "github"
},
"original": {
@ -1340,14 +1254,14 @@
},
"zen-browser": {
"inputs": {
"nixpkgs": "nixpkgs_8"
"nixpkgs": "nixpkgs_6"
},
"locked": {
"lastModified": 1730444716,
"narHash": "sha256-WtqSpYQyG5ad+GK7B0ViDSl0NolHp7yM24TacUslBXE=",
"lastModified": 1730084618,
"narHash": "sha256-gZyHBeo21uZPi7QzzRPlUo3te1HO+aNxYsRo+LzDokg=",
"owner": "ch4og",
"repo": "zen-browser-flake",
"rev": "d3c639ee7bff20f799f443e18fffa6331a71cd3a",
"rev": "f36474f335ea16534da68715d1f5ae27a5642c94",
"type": "github"
},
"original": {

View file

@ -7,7 +7,7 @@
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-master.url = "github:nixos/nixpkgs/master";
nixpkgs-latest-factorio.url = "github:Daholli/nixpkgs/d941e9aa2d89f377d45516c5edd765fef15ea90a";
nixpkgs-latest-factorio.url = "github:Daholli/nixpkgs/19493dc0ad16ffd5414ac9b4e12179d0e1b98468";
home-manager = {
url = "github:nix-community/home-manager/master";

View file

@ -1,22 +0,0 @@
{
lib,
pkgs,
config,
osConfig ? { },
format ? "unknown",
...
}:
with lib.wyrdgard;
{
wyrdgard = {
apps = {
kitty = enabled;
};
tools = {
direnv = enabled;
};
};
home.stateVersion = "24.11";
}

View file

@ -18,7 +18,7 @@ let
in
{
options.${namespace}.apps.cli-apps.helix = {
enable = mkEnableOption "Whether to enable helix or not";
enable = mkEnableOption "Whether to enable nixvim or not";
};
config = mkIf cfg.enable {
@ -30,119 +30,124 @@ in
};
${namespace} = {
home.extraOptions = {
programs.helix = {
enable = true;
package = helix-pkg;
defaultEditor = true;
settings = {
theme = "tokyonight";
editor = {
auto-format = true;
line-number = "relative";
home = {
extraOptions = {
programs.helix = {
enable = true;
package = helix-pkg;
defaultEditor = true;
settings = {
theme = "tokyonight";
editor = {
auto-format = true;
line-number = "relative";
lsp = {
display-inlay-hints = true;
display-messages = true;
};
cursor-shape = {
normal = "block";
insert = "bar";
select = "underline";
};
indent-guides = {
render = true;
character = "|";
};
statusline = {
left = [
"mode"
"spinner"
];
center = [ "file-name" ];
right = [
"workspace-diagnostics"
"diagnostics"
"selections"
"position"
"total-line-numbers"
"spacer"
"file-encoding"
"file-line-ending"
"file-type"
];
separator = "";
};
};
keys = {
normal = {
esc = [
"collapse_selection"
"keep_primary_selection"
];
space = {
space = "file_picker";
lsp = {
display-inlay-hints = true;
display-messages = true;
};
C-j = [
"move_line_down"
"move_line_down"
"move_line_down"
"move_line_down"
"move_line_down"
];
C-k = [
"move_line_up"
"move_line_up"
"move_line_up"
"move_line_up"
"move_line_up"
];
cursor-shape = {
normal = "block";
insert = "bar";
select = "underline";
};
indent-guides = {
render = true;
character = "|";
};
statusline = {
left = [
"mode"
"spinner"
];
center = [ "file-name" ];
right = [
"workspace-diagnostics"
"diagnostics"
"selections"
"position"
"total-line-numbers"
"spacer"
"file-encoding"
"file-line-ending"
"file-type"
];
separator = "";
};
};
keys = {
normal = {
esc = [
"collapse_selection"
"keep_primary_selection"
];
space = {
space = "file_picker";
};
C-j = [
"move_line_down"
"move_line_down"
"move_line_down"
"move_line_down"
"move_line_down"
];
C-k = [
"move_line_up"
"move_line_up"
"move_line_up"
"move_line_up"
"move_line_up"
];
};
};
};
};
languages = {
language = [
{
name = "nix";
auto-format = true;
formatter.command = "${pkgs.nixfmt-rfc-style}/bin/nixfmt";
language-servers = [
"nixd"
"nil"
];
}
{
# provided by the dev environment in the rust shell
name = "rust";
auto-format = true;
formatter.command = "cargo fmt";
language-servers = [ "rust-analyzer" ];
}
];
languages = {
language = [
{
name = "nix";
auto-format = true;
formatter.command = "${pkgs.nixfmt-rfc-style}/bin/nixfmt";
language-servers = [
"nixd"
"nil"
];
}
{
# provided by the dev environment in the rust shell
name = "rust";
auto-format = true;
formatter.command = "cargo fmt";
language-servers = [ "rust-analyzer" ];
}
];
language-server = {
nixd = {
command = "${pkgs.nixd}/bin/nixd";
};
marksman = {
command = "${pkgs.marksman}/bin/marksman";
};
vscode-json-language-server = {
command = "${pkgs.vscode-langservers-extracted}/bin/vscode-json-language-server";
args = [ "--stdio" ];
config.provideFormatter = true;
config.json.validate.enable = true;
};
vscode-css-language-server = {
command = "${pkgs.vscode-langservers-extracted}/bin/vscode-css-language-server";
args = [ "--stdio" ];
config.provideFormatter = true;
language-server = {
nil = {
command = "${pkgs.nil}/bin/nil";
};
nixd = {
command = "${pkgs.nixd}/bin/nixd";
};
marksman = {
command = "${pkgs.marksman}/bin/marksman";
};
vscode-json-language-server = {
command = "${pkgs.vscode-langservers-extracted}/bin/vscode-json-language-server";
args = [ "--stdio" ];
config.provideFormatter = true;
config.json.validate.enable = true;
};
vscode-css-language-server = {
command = "${pkgs.vscode-langservers-extracted}/bin/vscode-css-language-server";
args = [ "--stdio" ];
config.provideFormatter = true;
};
};
};
};

View file

@ -30,7 +30,7 @@ in
listener = [
{
timeout = 900;
on-timeout = "loginctl lock-session";
on-timeout = "hyprlock";
}
{
timeout = 1200;

View file

@ -1,614 +0,0 @@
{
config,
lib,
namespace,
pkgs,
...
}:
let
inherit (lib)
mkIf
mkEnableOption
mkMerge
mkOption
literalExpression
;
cfg = config.${namespace}.desktop.addons.hyprpanel;
username = config.${namespace}.user.name;
settingsFormat = pkgs.formats.json { };
iconColor = "#242438";
light-cyan = "#73daca";
lightBlue = "#414868";
medium-blue = "#9aa5ce";
cyan-blue = "#7dcfff";
navy-blue = "#24283b";
dark-blue = "#1a1b26";
dark-blue-gray = "565f89";
dark-blue-yankees = "#272a3d";
blue-magenta = "#181825";
lightPurple = "#bb9af7";
lightRed = "#f7768e";
red = "#c0caf5";
lightGreen = "#9ece6a";
yellow = "#e0af68";
settings = {
tear = true;
scalingPriority = "hyprland";
font.name = "CodeNewRoman Nerd Font Mono";
bar = {
customModules = {
updates.pollingInterval = 1440000;
ram = {
labelType = "used/total";
icon = " ";
};
cpu = {
label = true;
leftClick = "kitty --hold btop";
icon = " ";
};
};
layouts = {
"0" = {
left = [
"workspaces"
];
middle = [
"windowtitle"
];
right = [
"clock"
];
};
"1" = {
left = [
"dashboard"
"workspaces"
];
middle = [
"windowtitle"
];
right = [
"volume"
"bluetooth"
"battery"
"systray"
"cpu"
"ram"
"clock"
"notifications"
];
};
};
workspaces = {
showAllActive = true;
show_icons = false;
numbered_active_indicator = "underline";
show_numbered = true;
showWsIcons = false;
showApplicationIcons = false;
hideUnoccupied = true;
};
launcher = {
icon = "󱄅";
rightClick = "hyprpanel -t settings-dialog";
};
scrollSpeed = 0;
windowtitle = {
class_name = false;
custom_title = false;
icon = false;
label = true;
title_map = [
];
truncation = true;
};
network = {
label = false;
truncation = false;
};
clock.format = "%a %b %d %H:%M:%S";
notifications.show_total = true;
};
menus = {
clock.time.military = true;
dashboard = {
powermenu.avatar.image = "/home/cholli/Pictures/profile.png";
shortcuts.enabled = false;
directories.left = {
directory1.command = "kitty $HOME/Downloads";
directory3.command = "kitty $HOME/projects";
};
stats = {
enable_gpu = true;
enabled = false;
};
controls.enabled = false;
};
bluetooth = {
showBattery = true;
batteryState = "always";
};
transition = "crossfade";
};
theme = {
bar = {
floating = true;
outer_spacing = "0.2em";
buttons = {
enableBorders = true;
workspaces = {
enableBorder = false;
fontSize = "1.2em";
smartHighlight = false;
active = "#f7768e";
occupied = "#f7768e";
available = "#7dcfff";
hover = "#f7768e";
background = "#272a3d";
numbered_active_highlighted_text_color = "#181825";
numbered_active_underline_color = "#c678dd";
border = "#f7768e";
};
modules = {
power = {
icon = "#181825";
icon_background = "#f7768e";
background = "#272a3d";
border = "#f7768e";
};
ram = {
enableBorder = false;
spacing = "0.45em";
icon = "#181825";
icon_background = "#e0af68";
text = "#e0af68";
background = "#272a3d";
border = "#e0af68";
};
cpu = {
enableBorder = false;
background = "#272a3d";
icon = "#181825";
icon_background = "#f7768e";
text = "#f7768e";
border = "#f7768e";
};
submap = {
background = "#272a3d";
text = "#73daca";
border = "#73daca";
icon = "#181825";
icon_background = "#73daca";
};
};
style = "split";
icon = "#242438";
icon_background = "#bb9af7";
text = "#bb9af7";
hover = "#414868";
background = "#272a3d";
dashboard = {
enableBorder = false;
icon = "#272a3d";
background = "#e0af68";
border = "#e0af68";
};
volume = {
icon = "#272a3d";
text = "#f7768e";
background = "#272a3d";
icon_background = "#f7768e";
border = "#f7768e";
};
notifications = {
total = "#bb9af7";
icon = "#272a3d";
background = "#272a3d";
icon_background = "#bb9af7";
border = "#bb9af7";
};
clock = {
icon = "#272a3d";
text = "#f7768e";
background = "#272a3d";
icon_background = "#f7768e";
border = "#f7768e";
};
systray = {
background = "#272a3d";
border = "#414868";
customIcon = "#c0caf5";
};
bluetooth = {
icon = "#272a3d";
text = "#7dcfff";
background = "#272a3d";
icon_background = "#7dcfff";
border = "#7dcfff";
};
windowtitle = {
icon = "#272a3d";
text = "#f7768e";
background = "#272a3d";
icon_background = "#f7768e";
border = "#f7768e";
enableBorder = false;
};
radius = "0.3em";
borderSize = "0.0em";
padding_x = "0.7rem";
padding_y = "0.2rem";
};
menus = {
monochrome = false;
opacity = 95;
menu = {
dashboard = {
powermenu = {
shutdown = "#f7768e";
confirmation = {
deny = "#f7768e";
confirm = "#9ece6a";
button_text = "#1a1b26";
body = "#c0caf5";
label = "#bb9af7";
border = "#414868";
background = "#1a1b26";
card = "#24283b";
};
sleep = "#7dcfff";
logout = "#9ece6a";
restart = "#e0af68";
};
monitors = {
ram = {
label = "#e0af68";
bar = "#e0af68";
icon = "#e0af68";
};
cpu = {
label = "#f7768e";
bar = "#f7768e";
icon = "#f7768e";
};
bar_background = "#414868";
};
directories = {
right = {
bottom.color = "#bb9af7";
middle.color = "#bb9af7";
top.color = "#73daca";
};
left = {
bottom.color = "#f7768e";
middle.color = "#e0af68";
top.color = "#f7768e";
};
};
controls = {
input = {
text = "#1a1b26";
background = "#f7768e";
};
volume = {
text = "#1a1b26";
background = "#f7768e";
};
notifications = {
text = "#1a1b26";
background = "#e0af68";
};
bluetooth = {
text = "#1a1b26";
background = "#7dcfff";
};
disabled = "#414868";
};
profile.name = "#f7768e";
border.color = "#414868";
background.color = "#1a1b26";
card.color = "#24283b";
};
notifications = {
switch = {
puck = "#565f89";
disabled = "#565f89";
enabled = "#bb9af7";
};
clear = "#f7768e";
switch_divider = "#414868";
border = "#414868";
card = "#24283b";
background = "#1a1b26";
no_notifications_label = "#414868";
label = "#bb9af7";
scrollbar.color = "#bb9af7";
pager = {
button = "#bb9af7";
label = "#565f89";
background = "#1a1b26";
};
};
clock = {
text = "#c0caf5";
border.color = "#414868";
background.color = "#1a1b26";
card.color = "#24283b";
calendar = {
contextdays = "#414868";
days = "#c0caf5";
currentday = "#f7768e";
paginator = "#f7768e";
weekdays = "#f7768e";
yearmonth = "#73daca";
};
time = {
timeperiod = "#73daca";
time = "#f7768e";
};
};
systray = {
dropdownmenu.divider = "#24283b";
dropdownmenu.text = "#c0caf5";
dropdownmenu.background = "#1a1b26";
};
bluetooth = {
iconbutton = {
active = "#7dcfff";
passive = "#c0caf5";
};
icons = {
active = "#7dcfff";
passive = "#565f89";
};
listitems = {
active = "#7dcfff";
passive = "#c0caf5";
};
switch = {
puck = "#565f89";
disabled = "#565f89";
enabled = "#7dcfff";
};
switch_divider = "#414868";
status = "#565f89";
text = "#c0caf5";
label.color = "#7dcfff";
border.color = "#414868";
background.color = "#1a1b26";
card.color = "#24283b";
};
volume = {
text = "#c0caf5";
card.color = "#24283b";
label.color = "#f7768e";
input_slider = {
puck = "#414868";
backgroundhover = "#414868";
background = "#565f89";
primary = "#f7768e";
};
audio_slider = {
puck = "#414868";
backgroundhover = "#414868";
background = "#565f89";
primary = "#f7768e";
};
icons = {
active = "#f7768e";
passive = "#565f89";
};
iconbutton = {
active = "#f7768e";
passive = "#c0caf5";
};
listitems = {
active = "#f7768e";
passive = "#c0caf5";
};
border.color = "#414868";
background.color = "#1a1b26";
};
media = {
card.color = "#24283b";
slider = {
puck = "#565f89";
backgroundhover = "#414868";
background = "#565f89";
primary = "#f7768e";
};
buttons = {
text = "#1a1b26";
background = "#bb9af7";
enabled = "#73daca";
inactive = "#414868";
};
border.color = "#414868";
background.color = "#1a1b26";
album = "#f7768e";
artist = "#73daca";
song = "#bb9af7";
};
power = {
border.color = "#414868";
buttons = {
sleep = {
icon_background = "#7dcfff";
text = "#7dcfff";
background = "#24283b";
icon = "#1a1b26";
};
restart = {
text = "#e0af68";
icon_background = "#e0af68";
icon = "#1a1b26";
background = "#24283b";
};
shutdown = {
icon = "#1a1b26";
background = "#24283b";
icon_background = "#f7768e";
text = "#f7768e";
};
logout = {
icon = "#1a1b26";
background = "#24283b";
text = "#9ece6a";
icon_background = "#9ece6a";
};
};
background.color = "#1a1b26";
scaling = 90;
};
};
background = "#1a1b26";
text = "#c0caf5";
border.color = "#414868";
popover = {
text = "#bb9af7";
background = "#1a1b26";
border = "#1a1b26";
};
tooltip = {
text = "#c0caf5";
background = "#1a1b26";
};
dropdownmenu = {
divider = "#24283b";
text = "#c0caf5";
background = "#1a1b26";
};
slider = {
puck = "#565f89";
backgroundhover = "#414868";
background = "#565f89";
primary = "#bb9af7";
};
progressbar = {
background = "#414868";
foreground = "#bb9af7";
};
iconbuttons = {
active = "#bb9af7";
passive = "#c0caf5";
};
buttons = {
text = "#1a1b26";
disabled = "#565f89";
active = "#f7768e";
default = "#bb9af7";
};
switch = {
puck = "#565f89";
disabled = "#565f89";
enabled = "#bb9af7";
};
icons = {
active = "#bb9af7";
passive = "#414868";
};
listitems = {
active = "#bb9af7";
passive = "#c0caf5";
};
label = "#bb9af7";
feinttext = "#414868";
dimtext = "#414868";
cards = "#24283b";
check_radio_button.background = "#3b4261";
check_radio_button.active = "#bb9af7";
};
transparent = true;
background = "#1a1b26";
margin_sides = "0.0em";
location = "top";
};
osd = {
monitor = 1;
muted_zero = true;
label = "#bb9af7";
icon = "#1a1b26";
bar_overflow_color = "#f7768e";
bar_empty_color = "#414868";
bar_color = "#bb9af7";
icon_container = "#bb9af7";
bar_container = "#1a1b26";
};
notification = {
close_button.label = "#1a1b26";
close_button.background = "#f7768e";
labelicon = "#bb9af7";
text = "#c0caf5";
time = "#9aa5ce";
border = "#565f89";
label = "#bb9af7";
actions.text = "#24283b";
actions.background = "#bb9af7";
background = "#1a1b26";
};
font.size = "1.3rem";
};
notifications = {
monitor = 1;
active_monitor = false;
};
wallpaper = {
pywal = false;
image = "/home/cholli/Pictures/firewatch.jpg";
enable = false;
};
};
in
{
options.${namespace}.desktop.addons.hyprpanel = {
enable = mkEnableOption "Enable HyprIdle";
extraSettings = mkOption {
default = { };
inherit (settingsFormat) type;
description = ''
Additional Options to pass to hyprpanel
'';
example = literalExpression ''
{
}
'';
};
};
config = mkIf cfg.enable {
snowfallorg.users.${username}.home.config = {
wayland.windowManager.hyprland.settings.exec-once = [
"${pkgs.hyprpanel}/bin/hyprpanel"
];
};
${namespace}.home.file = {
".cache/ags/hyprpanel/options_test.json" = {
# source = pkgs.formats.json.generate "options.json" settings;
text = builtins.toJSON settings;
};
};
};
}

View file

@ -0,0 +1,459 @@
{
"bar.customModules.updates.pollingInterval": 1440000,
"menus.clock.time.military": true,
"bar.layouts": {
"0": {
"left": [
"workspaces"
],
"middle": [
"windowtitle"
],
"right": [
"clock"
]
},
"1": {
"left": [
"dashboard",
"workspaces"
],
"middle": [
"windowtitle"
],
"right": [
"volume",
"bluetooth",
"battery",
"systray",
"cpu",
"ram",
"clock",
"notifications"
]
}
},
"theme.bar.floating": true,
"theme.bar.buttons.enableBorders": false,
"wallpaper.pywal": false,
"bar.workspaces.showAllActive": true,
"bar.workspaces.show_icons": false,
"bar.launcher.icon": "󱄅",
"theme.bar.buttons.dashboard.enableBorder": false,
"theme.bar.outer_spacing": "0.2em",
"theme.bar.buttons.workspaces.enableBorder": false,
"theme.bar.buttons.workspaces.fontSize": "1.2em",
"bar.workspaces.numbered_active_indicator": "underline",
"bar.scrollSpeed": 0,
"menus.dashboard.powermenu.avatar.image": "/home/cholli/Pictures/profile.png",
"menus.dashboard.shortcuts.enabled": true,
"menus.dashboard.directories.left.directory3.command": "bash -c \"xdg-open $HOME/projects/\"",
"menus.dashboard.directories.left.directory1.command": "bash -c \"xdg-open $HOME/Downloads/\"",
"menus.dashboard.stats.enable_gpu": true,
"menus.clock.weather.location": "Heidelberg",
"menus.clock.weather.unit": "metric",
"menus.clock.weather.enabled": false,
"theme.osd.monitor": 1,
"theme.font.name": "CodeNewRoman Nerd Font",
"bar.workspaces.show_numbered": true,
"bar.workspaces.showWsIcons": false,
"bar.workspaces.showApplicationIcons": false,
"theme.bar.buttons.workspaces.smartHighlight": false,
"bar.windowtitle.class_name": false,
"bar.windowtitle.custom_title": false,
"bar.windowtitle.icon": false,
"bar.network.label": false,
"bar.network.truncation": false,
"bar.clock.format": "%a %b %d %H:%M:%S %p",
"bar.notifications.show_total": true,
"notifications.monitor": 1,
"notifications.active_monitor": false,
"theme.osd.muted_zero": true,
"menus.bluetooth.showBattery": true,
"theme.bar.buttons.modules.ram.enableBorder": false,
"theme.bar.buttons.modules.cpu.enableBorder": false,
"theme.bar.buttons.modules.ram.spacing": "0.85em",
"theme.bar.buttons.modules.storage.enableBorder": false,
"wallpaper.image": "/home/cholli/Pictures/firewatch.jpg",
"theme.bar.menus.monochrome": false,
"theme.bar.menus.opacity": 95,
"wallpaper.enable": false,
"theme.bar.transparent": true,
"theme.bar.buttons.style": "split",
"menus.dashboard.shortcuts.left.shortcut1.command": "",
"menus.dashboard.shortcuts.left.shortcut1.icon": "",
"menus.dashboard.shortcuts.left.shortcut1.tooltip": "",
"menus.dashboard.shortcuts.left.shortcut2.tooltip": "",
"menus.dashboard.shortcuts.left.shortcut2.command": "",
"menus.dashboard.shortcuts.left.shortcut2.icon": "",
"menus.dashboard.shortcuts.right.shortcut3.command": "",
"menus.dashboard.shortcuts.right.shortcut1.icon": "",
"menus.dashboard.shortcuts.right.shortcut1.command": "",
"menus.dashboard.shortcuts.right.shortcut1.tooltip": "",
"menus.dashboard.shortcuts.right.shortcut3.icon": "",
"menus.dashboard.shortcuts.right.shortcut3.tooltip": "",
"menus.dashboard.shortcuts.left.shortcut4.icon": "",
"menus.dashboard.shortcuts.left.shortcut4.command": "",
"menus.dashboard.shortcuts.left.shortcut4.tooltip": "",
"menus.dashboard.shortcuts.left.shortcut3.icon": "",
"menus.dashboard.shortcuts.left.shortcut3.command": "",
"menus.dashboard.shortcuts.left.shortcut3.tooltip": "",
"menus.dashboard.controls.enabled": false,
"menus.dashboard.stats.enabled": false,
"theme.matugen": false,
"theme.matugen_settings.scheme_type": "expressive",
"theme.matugen_settings.variation": "standard_2",
"bar.customModules.storage.labelType": "percentage",
"bar.customModules.ram.labelType": "used/total",
"theme.bar.menus.menu.media.card.color": "#24283b",
"theme.bar.menus.background": "#1a1b26",
"theme.bar.background": "#1a1b26",
"theme.bar.buttons.media.icon": "#272a3d",
"theme.bar.buttons.media.text": "#bb9af7",
"theme.bar.buttons.icon": "#242438",
"theme.bar.buttons.text": "#bb9af7",
"theme.bar.buttons.hover": "#414868",
"theme.bar.buttons.background": "#272a3d",
"theme.bar.menus.text": "#c0caf5",
"theme.bar.menus.border.color": "#414868",
"theme.bar.buttons.media.background": "#272a3d",
"theme.bar.menus.menu.volume.text": "#c0caf5",
"theme.bar.menus.menu.volume.card.color": "#24283b",
"theme.bar.menus.menu.volume.label.color": "#f7768e",
"theme.bar.menus.popover.text": "#bb9af7",
"theme.bar.menus.popover.background": "#1a1b26",
"theme.bar.menus.menu.dashboard.powermenu.shutdown": "#f7768e",
"theme.bar.menus.menu.dashboard.powermenu.confirmation.deny": "#f7768e",
"theme.bar.menus.menu.dashboard.powermenu.confirmation.confirm": "#9ece6a",
"theme.bar.menus.menu.dashboard.powermenu.confirmation.button_text": "#1a1b26",
"theme.bar.menus.menu.dashboard.powermenu.confirmation.body": "#c0caf5",
"theme.bar.menus.menu.dashboard.powermenu.confirmation.label": "#bb9af7",
"theme.bar.menus.menu.dashboard.powermenu.confirmation.border": "#414868",
"theme.bar.menus.menu.dashboard.powermenu.confirmation.background": "#1a1b26",
"theme.bar.menus.menu.dashboard.powermenu.confirmation.card": "#24283b",
"theme.bar.menus.menu.notifications.switch.puck": "#565f89",
"theme.bar.menus.menu.notifications.switch.disabled": "#565f89",
"theme.bar.menus.menu.notifications.switch.enabled": "#bb9af7",
"theme.bar.menus.menu.notifications.clear": "#f7768e",
"theme.bar.menus.menu.notifications.switch_divider": "#414868",
"theme.bar.menus.menu.notifications.border": "#414868",
"theme.bar.menus.menu.notifications.card": "#24283b",
"theme.bar.menus.menu.notifications.background": "#1a1b26",
"theme.bar.menus.menu.notifications.no_notifications_label": "#414868",
"theme.bar.menus.menu.notifications.label": "#bb9af7",
"theme.bar.menus.menu.dashboard.monitors.disk.label": "#f7768e",
"theme.bar.menus.menu.dashboard.monitors.disk.bar": "#f7768e",
"theme.bar.menus.menu.dashboard.monitors.disk.icon": "#f7768e",
"theme.bar.menus.menu.dashboard.monitors.gpu.label": "#9ece6a",
"theme.bar.menus.menu.dashboard.monitors.gpu.bar": "#9ece6a",
"theme.bar.menus.menu.dashboard.monitors.gpu.icon": "#9ece6a",
"theme.bar.menus.menu.dashboard.monitors.ram.label": "#e0af68",
"theme.bar.menus.menu.dashboard.monitors.ram.bar": "#e0af68",
"theme.bar.menus.menu.dashboard.monitors.ram.icon": "#e0af68",
"theme.bar.menus.menu.dashboard.monitors.cpu.label": "#f7768e",
"theme.bar.menus.menu.dashboard.monitors.cpu.bar": "#f7768e",
"theme.bar.menus.menu.dashboard.monitors.cpu.icon": "#f7768e",
"theme.bar.menus.menu.dashboard.monitors.bar_background": "#414868",
"theme.bar.menus.menu.dashboard.directories.right.bottom.color": "#bb9af7",
"theme.bar.menus.menu.dashboard.directories.right.middle.color": "#bb9af7",
"theme.bar.menus.menu.dashboard.directories.right.top.color": "#73daca",
"theme.bar.menus.menu.dashboard.directories.left.bottom.color": "#f7768e",
"theme.bar.menus.menu.dashboard.directories.left.middle.color": "#e0af68",
"theme.bar.menus.menu.dashboard.directories.left.top.color": "#f7768e",
"theme.bar.menus.menu.dashboard.controls.input.text": "#1a1b26",
"theme.bar.menus.menu.dashboard.controls.input.background": "#f7768e",
"theme.bar.menus.menu.dashboard.controls.volume.text": "#1a1b26",
"theme.bar.menus.menu.dashboard.controls.volume.background": "#f7768e",
"theme.bar.menus.menu.dashboard.controls.notifications.text": "#1a1b26",
"theme.bar.menus.menu.dashboard.controls.notifications.background": "#e0af68",
"theme.bar.menus.menu.dashboard.controls.bluetooth.text": "#1a1b26",
"theme.bar.menus.menu.dashboard.controls.bluetooth.background": "#7dcfff",
"theme.bar.menus.menu.dashboard.controls.wifi.text": "#1a1b26",
"theme.bar.menus.menu.dashboard.controls.wifi.background": "#bb9af7",
"theme.bar.menus.menu.dashboard.controls.disabled": "#414868",
"theme.bar.menus.menu.dashboard.shortcuts.recording": "#9ece6a",
"theme.bar.menus.menu.dashboard.shortcuts.text": "#1a1b26",
"theme.bar.menus.menu.dashboard.shortcuts.background": "#bb9af7",
"theme.bar.menus.menu.dashboard.powermenu.sleep": "#7dcfff",
"theme.bar.menus.menu.dashboard.powermenu.logout": "#9ece6a",
"theme.bar.menus.menu.dashboard.powermenu.restart": "#e0af68",
"theme.bar.menus.menu.dashboard.profile.name": "#f7768e",
"theme.bar.menus.menu.dashboard.border.color": "#414868",
"theme.bar.menus.menu.dashboard.background.color": "#1a1b26",
"theme.bar.menus.menu.dashboard.card.color": "#24283b",
"theme.bar.menus.menu.clock.weather.hourly.temperature": "#f7768e",
"theme.bar.menus.menu.clock.weather.hourly.icon": "#f7768e",
"theme.bar.menus.menu.clock.weather.hourly.time": "#f7768e",
"theme.bar.menus.menu.clock.weather.thermometer.extremelycold": "#7dcfff",
"theme.bar.menus.menu.clock.weather.thermometer.cold": "#7aa2f7",
"theme.bar.menus.menu.clock.weather.thermometer.moderate": "#bb9af7",
"theme.bar.menus.menu.clock.weather.thermometer.hot": "#e0af68",
"theme.bar.menus.menu.clock.weather.thermometer.extremelyhot": "#f7768e",
"theme.bar.menus.menu.clock.weather.stats": "#f7768e",
"theme.bar.menus.menu.clock.weather.status": "#73daca",
"theme.bar.menus.menu.clock.weather.temperature": "#c0caf5",
"theme.bar.menus.menu.clock.weather.icon": "#f7768e",
"theme.bar.menus.menu.clock.calendar.contextdays": "#414868",
"theme.bar.menus.menu.clock.calendar.days": "#c0caf5",
"theme.bar.menus.menu.clock.calendar.currentday": "#f7768e",
"theme.bar.menus.menu.clock.calendar.paginator": "#f7768e",
"theme.bar.menus.menu.clock.calendar.weekdays": "#f7768e",
"theme.bar.menus.menu.clock.calendar.yearmonth": "#73daca",
"theme.bar.menus.menu.clock.time.timeperiod": "#73daca",
"theme.bar.menus.menu.clock.time.time": "#f7768e",
"theme.bar.menus.menu.clock.text": "#c0caf5",
"theme.bar.menus.menu.clock.border.color": "#414868",
"theme.bar.menus.menu.clock.background.color": "#1a1b26",
"theme.bar.menus.menu.clock.card.color": "#24283b",
"theme.bar.menus.menu.battery.slider.puck": "#565f89",
"theme.bar.menus.menu.battery.slider.backgroundhover": "#414868",
"theme.bar.menus.menu.battery.slider.background": "#565f89",
"theme.bar.menus.menu.battery.slider.primary": "#e0af68",
"theme.bar.menus.menu.battery.icons.active": "#e0af68",
"theme.bar.menus.menu.battery.icons.passive": "#565f89",
"theme.bar.menus.menu.battery.listitems.active": "#e0af68",
"theme.bar.menus.menu.battery.listitems.passive": "#c0caf5",
"theme.bar.menus.menu.battery.text": "#c0caf5",
"theme.bar.menus.menu.battery.label.color": "#e0af68",
"theme.bar.menus.menu.battery.border.color": "#414868",
"theme.bar.menus.menu.battery.background.color": "#1a1b26",
"theme.bar.menus.menu.battery.card.color": "#24283b",
"theme.bar.menus.menu.systray.dropdownmenu.divider": "#24283b",
"theme.bar.menus.menu.systray.dropdownmenu.text": "#c0caf5",
"theme.bar.menus.menu.systray.dropdownmenu.background": "#1a1b26",
"theme.bar.menus.menu.bluetooth.iconbutton.active": "#7dcfff",
"theme.bar.menus.menu.bluetooth.iconbutton.passive": "#c0caf5",
"theme.bar.menus.menu.bluetooth.icons.active": "#7dcfff",
"theme.bar.menus.menu.bluetooth.icons.passive": "#565f89",
"theme.bar.menus.menu.bluetooth.listitems.active": "#7dcfff",
"theme.bar.menus.menu.bluetooth.listitems.passive": "#c0caf5",
"theme.bar.menus.menu.bluetooth.switch.puck": "#565f89",
"theme.bar.menus.menu.bluetooth.switch.disabled": "#565f89",
"theme.bar.menus.menu.bluetooth.switch.enabled": "#7dcfff",
"theme.bar.menus.menu.bluetooth.switch_divider": "#414868",
"theme.bar.menus.menu.bluetooth.status": "#565f89",
"theme.bar.menus.menu.bluetooth.text": "#c0caf5",
"theme.bar.menus.menu.bluetooth.label.color": "#7dcfff",
"theme.bar.menus.menu.bluetooth.border.color": "#414868",
"theme.bar.menus.menu.bluetooth.background.color": "#1a1b26",
"theme.bar.menus.menu.bluetooth.card.color": "#24283b",
"theme.bar.menus.menu.network.iconbuttons.active": "#bb9af7",
"theme.bar.menus.menu.network.iconbuttons.passive": "#c0caf5",
"theme.bar.menus.menu.network.icons.active": "#bb9af7",
"theme.bar.menus.menu.network.icons.passive": "#565f89",
"theme.bar.menus.menu.network.listitems.active": "#bb9af7",
"theme.bar.menus.menu.network.listitems.passive": "#c0caf5",
"theme.bar.menus.menu.network.status.color": "#565f89",
"theme.bar.menus.menu.network.text": "#c0caf5",
"theme.bar.menus.menu.network.label.color": "#bb9af7",
"theme.bar.menus.menu.network.border.color": "#414868",
"theme.bar.menus.menu.network.background.color": "#1a1b26",
"theme.bar.menus.menu.network.card.color": "#24283b",
"theme.bar.menus.menu.volume.input_slider.puck": "#414868",
"theme.bar.menus.menu.volume.input_slider.backgroundhover": "#414868",
"theme.bar.menus.menu.volume.input_slider.background": "#565f89",
"theme.bar.menus.menu.volume.input_slider.primary": "#f7768e",
"theme.bar.menus.menu.volume.audio_slider.puck": "#414868",
"theme.bar.menus.menu.volume.audio_slider.backgroundhover": "#414868",
"theme.bar.menus.menu.volume.audio_slider.background": "#565f89",
"theme.bar.menus.menu.volume.audio_slider.primary": "#f7768e",
"theme.bar.menus.menu.volume.icons.active": "#f7768e",
"theme.bar.menus.menu.volume.icons.passive": "#565f89",
"theme.bar.menus.menu.volume.iconbutton.active": "#f7768e",
"theme.bar.menus.menu.volume.iconbutton.passive": "#c0caf5",
"theme.bar.menus.menu.volume.listitems.active": "#f7768e",
"theme.bar.menus.menu.volume.listitems.passive": "#c0caf5",
"theme.bar.menus.menu.volume.border.color": "#414868",
"theme.bar.menus.menu.volume.background.color": "#1a1b26",
"theme.bar.menus.menu.media.slider.puck": "#565f89",
"theme.bar.menus.menu.media.slider.backgroundhover": "#414868",
"theme.bar.menus.menu.media.slider.background": "#565f89",
"theme.bar.menus.menu.media.slider.primary": "#f7768e",
"theme.bar.menus.menu.media.buttons.text": "#1a1b26",
"theme.bar.menus.menu.media.buttons.background": "#bb9af7",
"theme.bar.menus.menu.media.buttons.enabled": "#73daca",
"theme.bar.menus.menu.media.buttons.inactive": "#414868",
"theme.bar.menus.menu.media.border.color": "#414868",
"theme.bar.menus.menu.media.background.color": "#1a1b26",
"theme.bar.menus.menu.media.album": "#f7768e",
"theme.bar.menus.menu.media.artist": "#73daca",
"theme.bar.menus.menu.media.song": "#bb9af7",
"theme.bar.menus.tooltip.text": "#c0caf5",
"theme.bar.menus.tooltip.background": "#1a1b26",
"theme.bar.menus.dropdownmenu.divider": "#24283b",
"theme.bar.menus.dropdownmenu.text": "#c0caf5",
"theme.bar.menus.dropdownmenu.background": "#1a1b26",
"theme.bar.menus.slider.puck": "#565f89",
"theme.bar.menus.slider.backgroundhover": "#414868",
"theme.bar.menus.slider.background": "#565f89",
"theme.bar.menus.slider.primary": "#bb9af7",
"theme.bar.menus.progressbar.background": "#414868",
"theme.bar.menus.progressbar.foreground": "#bb9af7",
"theme.bar.menus.iconbuttons.active": "#bb9af7",
"theme.bar.menus.iconbuttons.passive": "#c0caf5",
"theme.bar.menus.buttons.text": "#1a1b26",
"theme.bar.menus.buttons.disabled": "#565f89",
"theme.bar.menus.buttons.active": "#f7768e",
"theme.bar.menus.buttons.default": "#bb9af7",
"theme.bar.menus.switch.puck": "#565f89",
"theme.bar.menus.switch.disabled": "#565f89",
"theme.bar.menus.switch.enabled": "#bb9af7",
"theme.bar.menus.icons.active": "#bb9af7",
"theme.bar.menus.icons.passive": "#414868",
"theme.bar.menus.listitems.active": "#bb9af7",
"theme.bar.menus.listitems.passive": "#c0caf5",
"theme.bar.menus.label": "#bb9af7",
"theme.bar.menus.feinttext": "#414868",
"theme.bar.menus.dimtext": "#414868",
"theme.bar.menus.cards": "#24283b",
"theme.bar.buttons.notifications.total": "#bb9af7",
"theme.bar.buttons.notifications.icon": "#272a3d",
"theme.bar.buttons.notifications.background": "#272a3d",
"theme.bar.buttons.clock.icon": "#272a3d",
"theme.bar.buttons.clock.text": "#f7768e",
"theme.bar.buttons.clock.background": "#272a3d",
"theme.bar.buttons.battery.icon": "#272a3d",
"theme.bar.buttons.battery.text": "#e0af68",
"theme.bar.buttons.battery.background": "#272a3d",
"theme.bar.buttons.systray.background": "#272a3d",
"theme.bar.buttons.bluetooth.icon": "#272a3d",
"theme.bar.buttons.bluetooth.text": "#7dcfff",
"theme.bar.buttons.bluetooth.background": "#272a3d",
"theme.bar.buttons.network.icon": "#272a3d",
"theme.bar.buttons.network.text": "#bb9af7",
"theme.bar.buttons.network.background": "#272a3d",
"theme.bar.buttons.volume.icon": "#272a3d",
"theme.bar.buttons.volume.text": "#f7768e",
"theme.bar.buttons.volume.background": "#272a3d",
"theme.bar.buttons.windowtitle.icon": "#272a3d",
"theme.bar.buttons.windowtitle.text": "#f7768e",
"theme.bar.buttons.windowtitle.background": "#272a3d",
"theme.bar.buttons.workspaces.active": "#f7768e",
"theme.bar.buttons.workspaces.occupied": "#f7768e",
"theme.bar.buttons.workspaces.available": "#7dcfff",
"theme.bar.buttons.workspaces.hover": "#f7768e",
"theme.bar.buttons.workspaces.background": "#272a3d",
"theme.bar.buttons.dashboard.icon": "#272a3d",
"theme.bar.buttons.dashboard.background": "#e0af68",
"theme.osd.label": "#bb9af7",
"theme.osd.icon": "#1a1b26",
"theme.osd.bar_overflow_color": "#f7768e",
"theme.osd.bar_empty_color": "#414868",
"theme.osd.bar_color": "#bb9af7",
"theme.osd.icon_container": "#bb9af7",
"theme.osd.bar_container": "#1a1b26",
"theme.notification.close_button.label": "#1a1b26",
"theme.notification.close_button.background": "#f7768e",
"theme.notification.labelicon": "#bb9af7",
"theme.notification.text": "#c0caf5",
"theme.notification.time": "#9aa5ce",
"theme.notification.border": "#565f89",
"theme.notification.label": "#bb9af7",
"theme.notification.actions.text": "#24283b",
"theme.notification.actions.background": "#bb9af7",
"theme.notification.background": "#1a1b26",
"theme.bar.buttons.workspaces.numbered_active_highlighted_text_color": "#181825",
"theme.bar.buttons.workspaces.numbered_active_underline_color": "#c678dd",
"theme.bar.menus.check_radio_button.background": "#3b4261",
"theme.bar.menus.check_radio_button.active": "#bb9af7",
"theme.bar.buttons.icon_background": "#bb9af7",
"theme.bar.buttons.volume.icon_background": "#f7768e",
"theme.bar.buttons.network.icon_background": "#bb9af7",
"theme.bar.buttons.bluetooth.icon_background": "#7dcfff",
"theme.bar.buttons.windowtitle.icon_background": "#f7768e",
"theme.bar.buttons.media.icon_background": "#bb9af7",
"theme.bar.buttons.notifications.icon_background": "#bb9af7",
"theme.bar.buttons.battery.icon_background": "#e0af68",
"theme.bar.buttons.clock.icon_background": "#f7768e",
"theme.bar.menus.menu.notifications.pager.button": "#bb9af7",
"theme.bar.menus.menu.notifications.scrollbar.color": "#bb9af7",
"theme.bar.menus.menu.notifications.pager.label": "#565f89",
"theme.bar.menus.menu.notifications.pager.background": "#1a1b26",
"theme.bar.buttons.modules.ram.icon": "#181825",
"theme.bar.buttons.modules.storage.icon_background": "#f7768e",
"theme.bar.menus.popover.border": "#1a1b26",
"theme.bar.menus.menu.power.buttons.sleep.icon_background": "#7dcfff",
"theme.bar.menus.menu.power.buttons.restart.text": "#e0af68",
"theme.bar.buttons.modules.updates.background": "#272a3d",
"theme.bar.buttons.modules.storage.icon": "#181825",
"theme.bar.buttons.modules.netstat.background": "#272a3d",
"theme.bar.buttons.modules.weather.icon": "#272a3d",
"theme.bar.buttons.modules.netstat.text": "#9ece6a",
"theme.bar.buttons.modules.storage.background": "#272a3d",
"theme.bar.buttons.modules.power.icon": "#181825",
"theme.bar.buttons.modules.storage.text": "#f7768e",
"theme.bar.buttons.modules.cpu.background": "#272a3d",
"theme.bar.menus.menu.power.border.color": "#414868",
"theme.bar.buttons.modules.power.icon_background": "#f7768e",
"theme.bar.menus.menu.power.buttons.logout.icon": "#1a1b26",
"theme.bar.menus.menu.power.buttons.restart.icon_background": "#e0af68",
"theme.bar.menus.menu.power.buttons.restart.icon": "#1a1b26",
"theme.bar.buttons.modules.cpu.icon": "#181825",
"theme.bar.buttons.modules.kbLayout.icon_background": "#7dcfff",
"theme.bar.buttons.modules.weather.text": "#bb9af7",
"theme.bar.menus.menu.power.buttons.shutdown.icon": "#1a1b26",
"theme.bar.menus.menu.power.buttons.sleep.text": "#7dcfff",
"theme.bar.buttons.modules.weather.icon_background": "#bb9af7",
"theme.bar.menus.menu.power.buttons.shutdown.background": "#24283b",
"theme.bar.menus.menu.power.buttons.logout.background": "#24283b",
"theme.bar.buttons.modules.kbLayout.icon": "#181825",
"theme.bar.buttons.modules.ram.icon_background": "#e0af68",
"theme.bar.menus.menu.power.buttons.shutdown.icon_background": "#f7768e",
"theme.bar.menus.menu.power.buttons.shutdown.text": "#f7768e",
"theme.bar.menus.menu.power.buttons.sleep.background": "#24283b",
"theme.bar.buttons.modules.ram.text": "#e0af68",
"theme.bar.menus.menu.power.buttons.logout.text": "#9ece6a",
"theme.bar.buttons.modules.updates.icon_background": "#bb9af7",
"theme.bar.buttons.modules.kbLayout.background": "#272a3d",
"theme.bar.buttons.modules.power.background": "#272a3d",
"theme.bar.buttons.modules.weather.background": "#272a3d",
"theme.bar.menus.menu.power.background.color": "#1a1b26",
"theme.bar.buttons.modules.ram.background": "#272a3d",
"theme.bar.buttons.modules.netstat.icon": "#181825",
"theme.bar.buttons.modules.cpu.icon_background": "#f7768e",
"theme.bar.menus.menu.power.buttons.logout.icon_background": "#9ece6a",
"theme.bar.buttons.modules.updates.text": "#bb9af7",
"theme.bar.menus.menu.power.buttons.sleep.icon": "#1a1b26",
"theme.bar.menus.menu.power.buttons.restart.background": "#24283b",
"theme.bar.buttons.modules.updates.icon": "#181825",
"theme.bar.buttons.modules.cpu.text": "#f7768e",
"theme.bar.buttons.modules.netstat.icon_background": "#9ece6a",
"theme.bar.buttons.modules.kbLayout.text": "#7dcfff",
"theme.bar.buttons.modules.power.border": "#f7768e",
"theme.bar.buttons.modules.weather.border": "#bb9af7",
"theme.bar.buttons.modules.updates.border": "#bb9af7",
"theme.bar.buttons.modules.kbLayout.border": "#7dcfff",
"theme.bar.buttons.modules.netstat.border": "#9ece6a",
"theme.bar.buttons.modules.storage.border": "#f7768e",
"theme.bar.buttons.modules.cpu.border": "#f7768e",
"theme.bar.buttons.modules.ram.border": "#e0af68",
"theme.bar.buttons.notifications.border": "#bb9af7",
"theme.bar.buttons.clock.border": "#f7768e",
"theme.bar.buttons.battery.border": "#e0af68",
"theme.bar.buttons.systray.border": "#414868",
"theme.bar.buttons.bluetooth.border": "#7dcfff",
"theme.bar.buttons.network.border": "#bb9af7",
"theme.bar.buttons.volume.border": "#f7768e",
"theme.bar.buttons.media.border": "#bb9af7",
"theme.bar.buttons.windowtitle.border": "#f7768e",
"theme.bar.buttons.workspaces.border": "#f7768e",
"theme.bar.buttons.dashboard.border": "#e0af68",
"theme.bar.buttons.modules.submap.background": "#272a3d",
"theme.bar.buttons.modules.submap.text": "#73daca",
"theme.bar.buttons.modules.submap.border": "#73daca",
"theme.bar.buttons.modules.submap.icon": "#181825",
"theme.bar.buttons.modules.submap.icon_background": "#73daca",
"theme.bar.menus.menu.network.switch.enabled": "#bb9af7",
"theme.bar.menus.menu.network.switch.disabled": "#565f89",
"theme.bar.menus.menu.network.switch.puck": "#565f89",
"theme.bar.buttons.systray.customIcon": "#c0caf5",
"menus.bluetooth.batteryState": "always",
"bar.customModules.cpu.label": true,
"bar.customModules.cpu.leftClick": "kitty --hold btop",
"tear": true,
"theme.bar.buttons.windowtitle.enableBorder": false,
"bar.windowtitle.label": true,
"bar.windowtitle.title_map": [],
"bar.windowtitle.truncation": false,
"bar.workspaces.hideUnoccupied": true
}

View file

@ -36,5 +36,6 @@ in
};
};
};
};
}

View file

@ -6,17 +6,10 @@
...
}:
let
inherit (lib) mkIf mkEnableOption;
user = config.${namespace}.user.name;
cfg = config.${namespace}.desktop.hyprland;
in
{
options.${namespace}.desktop = {
enable = mkEnableOption "Whether to enable desktop theming";
};
config = mkIf cfg.enable {
config = {
${namespace}.home.extraOptions = {
dconf.settings = {
"org/gnome/desktop/interface" = {

View file

@ -55,6 +55,7 @@ in
# Wayland Utilities
wl-clipboard
wl-screenrec
wlr-randr
# Screenshot Utility
@ -90,18 +91,14 @@ in
};
${namespace} = {
desktop = {
enable = true;
addons = {
rofi = {
enable = true;
package = pkgs.rofi-wayland-unwrapped;
};
hypridle = enabled;
hyprlock = enabled;
hyprpanel = enabled;
hyprpaper = enabled;
desktop.addons = {
rofi = {
enable = true;
package = pkgs.rofi-wayland-unwrapped;
};
hypridle = enabled;
hyprlock = enabled;
hyprpaper = enabled;
};
nix.extra-substituters.${cachix-url} = {
@ -118,6 +115,7 @@ in
"$mod" = "SUPER";
exec-once = [
"${pkgs.hyprpanel}/bin/hyprpanel"
"systemctl --user start hyprpolkitagent"
"[workspace 2 silent] steam --disable-gpu-compositing" # nvidia pls let me have nice things
@ -175,16 +173,13 @@ in
popups_ignorealpha = 0.2;
};
shadow = {
enabled = true;
range = 100;
render_power = 2;
ignore_window = true;
color = "rgba(00000055)";
offset = "0 15";
scale = 0.97;
};
drop_shadow = true;
shadow_ignore_window = true;
shadow_offset = "0 15";
shadow_range = 100;
shadow_render_power = 2;
shadow_scale = 0.97;
"col.shadow" = "rgba(00000055)";
};
animations = {

View file

@ -1,75 +0,0 @@
{
config,
lib,
namespace,
pkgs,
...
}:
with lib;
with lib.${namespace};
let
cfg = config.${namespace}.security.acme;
in
{
options.${namespace}.security.acme = with lib.types; {
enable = mkEnableOption "Enable sops (Default true)";
email = mkOpt str config.${namespace}.user.email "The email to use.";
sopsFile = mkOption {
type = lib.types.path;
default = lib.snowfall.fs.get-file "secrets/secrets.yaml";
description = "SecretFile";
};
domainname = mkOpt str "christophhollizeck.dev" "domainname to use";
staging = mkOpt bool false "Use staging server for testing or not";
};
config = mkIf cfg.enable {
sops = {
secrets = {
netcup_customer_number = {
inherit (cfg) sopsFile;
};
netcup_api_key = {
inherit (cfg) sopsFile;
};
netcup_api_password = {
inherit (cfg) sopsFile;
};
};
templates = {
"netcup.env" = {
content = ''
NETCUP_CUSTOMER_NUMBER=${config.sops.placeholder.netcup_customer_number}
NETCUP_API_KEY=${config.sops.placeholder.netcup_api_key}
NETCUP_API_PASSWORD=${config.sops.placeholder.netcup_api_password}
NETCUP_PROPAGATION_TIMEOUT=1200
'';
};
};
};
security.acme = {
acceptTerms = true;
defaults = {
inherit (cfg) email;
group = mkIf config.services.nginx.enable "nginx";
reloadServices = optional config.services.nginx.enable "nginx.service";
dnsProvider = "netcup";
environmentFile = config.sops.templates."netcup.env".path;
};
certs."${cfg.domainname}" = {
server = mkIf cfg.staging "https://acme-staging-v02.api.letsencrypt.org/directory";
dnsResolver = "1.1.1.1:53";
extraDomainNames = [ "*.${cfg.domainname}" ];
};
};
};
}

View file

@ -8,33 +8,25 @@
with lib.${namespace};
let
cfg = config.${namespace}.services.factorio-server;
inherit (lib) mkIf mkOption mkEnableOption;
inherit (lib) mkIf mkEnableOption;
in
{
options.${namespace}.services.factorio-server = {
enable = mkEnableOption "Enable Factorio Headless Server";
sopsFile = mkOption {
type = lib.types.path;
default = lib.snowfall.fs.get-file "secrets/secrets.yaml";
description = "SecretFile";
};
};
config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.factorio-headless ];
environment.systemPackages = with pkgs; [ pkgs.factorio-headless ];
sops = {
secrets = {
factorio_token = {
restartUnits = [ "factorio.service" ];
inherit (cfg) sopsFile;
};
factorio_username = {
restartUnits = [ "factorio.service" ];
inherit (cfg) sopsFile;
};
factorio_game_password = {
restartUnits = [ "factorio.service" ];
inherit (cfg) sopsFile;
};
};
templates."extraSettingsFile.json".content = ''
@ -48,6 +40,7 @@ in
"autosave_slots": 5,
"ignore_player_limit_for_returning_players": true,
"username" : "${config.sops.placeholder.factorio_username}",
"admins": ["${config.sops.placeholder.factorio_username}"],
"token": "${config.sops.placeholder.factorio_token}"
}
'';
@ -62,11 +55,6 @@ in
nonBlockingSaving = true;
autosave-interval = 15;
saveName = "SpaceAge";
admins = [
"daholli"
"galbrain"
"geigeabc"
];
extraSettingsFile = config.sops.templates."extraSettingsFile.json".path;
};
};

View file

@ -13,7 +13,7 @@ let
in
{
options.${namespace}.submodules.basics = with types; {
enable = mkEnableOption "Whether or not to enable basic configuration.";
enable = mkBoolOpt false "Whether or not to enable basic configuration.";
};
config = mkIf cfg.enable {
@ -29,7 +29,7 @@ in
#optional
pciutils
usbutils
btop
htop
];
${namespace} = {

View file

@ -24,7 +24,7 @@ in
environment.systemPackages = with pkgs; [
git
gitAndTools.gh
# gitbutler
gitbutler
];
${namespace}.home.extraOptions = {

View file

@ -48,11 +48,6 @@ in
icon = mkOpt (nullOr package) defaultIcon "The profile picture to use for the user.";
extraGroups = mkOpt (listOf str) [ ] "Groups for the user to be assigned.";
extraOptions = mkOpt attrs { } (mdDoc "Extra options passed to `users.users.<name>`.");
trustedPublicKeys = mkOption {
default = [ ];
type = nullOr (listOf str);
description = "Trusted public keys for this user for the machine";
};
};
config = {
@ -97,8 +92,6 @@ in
# system to select).
uid = 1000;
openssh.authorizedKeys.keys = cfg.trustedPublicKeys;
extraGroups = [ "steamcmd" ] ++ cfg.extraGroups;
} // cfg.extraOptions;
};

View file

@ -1,30 +0,0 @@
#ENC[AES256_GCM,data:Cgp+gOU81+rvdlY=,iv:8DxJxnCslDoEu0bxtlTjmNiAUCdiAV/8VYKTb4yqQ50=,tag:ZTkK7WCOBh1It6GuKPUXdg==,type:comment]
factorio_username: ENC[AES256_GCM,data:egV5kXtAiw==,iv:Hay0PC2yol5FAJGcWxLkxzNdwpD1V4UfDDnkhsjvjVQ=,tag:QBDS6eAeOswQoHBoi4Gj6A==,type:str]
factorio_token: ENC[AES256_GCM,data:whruEJQCNIqqfMA0A3yQdwwrzpIJBt815Lvex4Au,iv:hh3zZt+UxV9ltSHIAjpTRwtDvPgPU5APrB/1bXtKUkE=,tag:AgUmBYWp+Oyxm8O7yD8vlA==,type:str]
factorio_game_password: ENC[AES256_GCM,data:Gu/p0+Sbd6Y=,iv:6AB1T3JdleiUnusU7hw/0wOFNSBsAsBgP2yD9FB7zXk=,tag:DMgD4csthynuBon+KNZtOw==,type:str]
#ENC[AES256_GCM,data:15i2BBxM4iM=,iv:JV6Lsk8jUZl/eIJWkH/w5I2NraB9J9+0ggsENBGgbdI=,tag:HDwGheUv7dFIztQoJBjGmQ==,type:comment]
forgejo_db_password: ENC[AES256_GCM,data:CFsvko1AXRymDBC6WiOBs98rvFM=,iv:Wemhu8URxA6HsWQyYcPSwJzuMP4myrDC3rU3GEDVt7c=,tag:6wcNlDFVdnjez8hzi4E2cw==,type:str]
#ENC[AES256_GCM,data:nQnLBl7v,iv:HORr/Uvw4eUXfW5uS6rWr+6FkFF9bTNpMYGaRpVITRY=,tag:/r4n/xpqp7EPecGxDj4N+w==,type:comment]
netcup_customer_number: ENC[AES256_GCM,data:pRooJa3O,iv:0U/ONcWa2eqcsT1UpgXmLpAvJndaU8zln2g1HMbBQYE=,tag:+pu8EBl/dnm6DoLAtrjZBQ==,type:str]
netcup_api_key: ENC[AES256_GCM,data:nlkDz1VV2NIXxv/tIROWDHN9DLI0lVq9n9l2FlDwt+3H4G4gg6yCeZjGtR+pTCNfwio=,iv:x8HLL10ww52UJDkz7Yi02KBg7jbuLFHAlG0iMYDd8hk=,tag:pcuka4/Hu/QFIwS0b8GlxQ==,type:str]
netcup_api_password: ENC[AES256_GCM,data:k2mdQp57x5ZTypRCHbVlq1fembJ0uj5D0rb72K5rac43p888y3TFyiYVuDTosxR66mo=,iv:0OhtKWD/LWeV5ZWN9fbPozebSxvaFRdSn1AkX97ffAM=,tag:uY6A4jBL/9mtGy7++Yvn0A==,type:str]
sops:
kms: []
gcp_kms: []
azure_kv: []
hc_vault: []
age:
- recipient: age1amdd4hu6k0czf3mtlhd03yj3yzkdaynl7q5fdlqmjzpe9pwgxfjs3j0c85
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA3NFlTd2hOTHBtUDhuT0lF
amtLclY2ZTN0SStZQjFSNkZUd1RmMkdJZ0dJCnB2WU04dk41Qk45aGphMW9GQVJ4
b2VWQVlOVFFLaGJWaU9FVU5ZUWtlRncKLS0tIGVPYW5DQnJMeW1qdWtINDNlQWFo
NmhrdXhpbVlmUFNsT1VaQjZyYkZkdzgKhL2BKXfPWNWUbFavpmtBQpnNEm/x0xH6
NsjiV05AcrqPmGjj2kjvTv4ULPSoHiHiC5McUMfFTYIrCJgNvUbmMg==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2024-11-07T14:40:34Z"
mac: ENC[AES256_GCM,data:uk2AeOA9pnhekuofIjXavCGy9ZaO0ObprkvnGhJg5lPr/hyT9l7YcZtMQ7wckKDLS03I1hCAcNg0w/EmSUeU2+EHLb6Z1IUj3l0HBUPtPIJwJZifkrzp9iQwGwlK+i6nfREEgPGeuNMj/rnD67MECO4NRHTzGBzH7ZImoDpu0Us=,iv:ss8Q7i75UOQDMJfw4dQCT0qxPUGwfHizX0c/TUej+vc=,tag:iufeO6sfaToNcJg6E8tuxA==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.9.1

View file

@ -1,126 +0,0 @@
{
config,
lib,
namespace,
pkgs,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) enabled;
domainName = "christophhollizeck.dev";
forgejoPort = 3000;
cfg.enableAcme = true;
sopsFile = lib.snowfall.fs.get-file "secrets/secrets-loptland.yaml";
in
{
imports = [ ./hardware.nix ];
environment.systemPackages = [ ];
sops = {
secrets = {
forgejo_db_password = {
inherit sopsFile;
};
};
};
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
};
services.fail2ban = {
enable = true;
};
services.nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts = {
"git.${domainName}" = {
forceSSL = cfg.enableAcme;
useACMEHost = mkIf cfg.enableAcme domainName;
locations."/" = {
proxyPass = "http://localhost:${toString forgejoPort}/";
};
};
"${domainName}" = {
forceSSL = cfg.enableAcme;
useACMEHost = mkIf cfg.enableAcme domainName;
locations."/" = {
return = "404";
};
};
};
};
services.forgejo = {
enable = true;
database.type = "postgres";
lfs.enable = true;
database = {
passwordFile = config.sops.secrets.forgejo_db_password.path;
};
settings = {
server = {
DOMAIN = "git.${domainName}";
ROOT_URL = "https://git.${domainName}";
HTTP_PORT = forgejoPort;
};
service.DISABLE_REGISTRATION = true;
};
};
networking.firewall.allowedTCPPorts = [
forgejoPort
80
443
];
${namespace} = {
submodules = {
basics = enabled;
};
services = {
factorio-server = {
enable = true;
inherit sopsFile;
};
};
security = {
acme = {
enable = cfg.enableAcme;
inherit sopsFile;
};
};
user.trustedPublicKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHFrDiO5+vMfD5MimkzN32iw3MnSMLZ0mHvOrHVVmLD0"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII4Pr7p0jizrvIl0UhcvrmL5SHRQQQWIcHLAnRFyUZS6"
];
};
snowfallorg.users.${config.${namespace}.user.name}.home.config = {
programs.fish.shellInit = ''
eval $(op signin)
'';
};
system.stateVersion = "24.11";
}

View file

@ -1,42 +0,0 @@
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [
"ata_piix"
"uhci_hcd"
"virtio_pci"
"sr_mod"
"virtio_blk"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/26b098dd-0a15-49c5-9998-75f43d17eb26";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/30AB-7309";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices = [ { device = "/dev/disk/by-uuid/b9bcb425-cb1c-40a1-89bb-d7fe6b421834"; } ];
networking.useDHCP = lib.mkDefault true;
}

View file

@ -5,7 +5,7 @@
...
}:
let
inherit (lib.${namespace}) enabled disabled;
inherit (lib.${namespace}) enabled;
in
{
imports = [ ./hardware.nix ];
@ -21,10 +21,6 @@ in
virtualisation.waydroid = enabled;
programs.ssh.extraConfig = ''
AddressFamily inet
'';
${namespace} = {
archetypes = {
gaming.enable = true;
@ -75,7 +71,7 @@ in
};
services = {
factorio-server = disabled;
factorio-server = enabled;
};
system = {