Compare commits

59 Commits

Author SHA1 Message Date
fa4fafa7a9 add influx listener to telegraf 2025-05-29 12:55:45 +02:00
72fffad326 add shimmie 2025-04-20 18:57:58 +02:00
13b08245de add prowlarr 2025-04-19 19:17:46 +02:00
4032168d8d cleanup and use wildcard certs 2025-04-05 18:50:31 +02:00
cacdcca2e6 use stable kernel on frameowkr 2025-04-04 10:58:51 +02:00
c422607636 update flakes 2025-04-04 10:37:40 +02:00
4db755eb43 add portforwarder 2025-03-31 19:41:52 +02:00
53ba3a4dc1 add gitlab 2025-03-28 19:08:55 +01:00
0217fd1ad0 add share and node exporter 2025-03-25 20:24:05 +01:00
4559269329 add monitoring for celestia 2025-03-10 09:55:15 +01:00
19112159cc update lock 2025-02-28 00:19:54 +01:00
001b7edf56 try torrent setup 2025-02-28 00:10:06 +01:00
92fa07489a remove gitea runner from NAS and bind immich to ipv4 localhost 2025-02-28 00:10:06 +01:00
c0915335ce add immich to NAS 2025-02-28 00:10:06 +01:00
677ecfbb3c Lock file maintenance
All checks were successful
nix flake check / nix-flake-update (push) Successful in 2m26s
2025-01-19 18:01:46 +00:00
e738985f41 Lock file maintenance
All checks were successful
nix flake check / nix-flake-update (push) Successful in 2m33s
2025-01-19 17:31:42 +00:00
42ec135959 enable fingerprint unlock in hyprlock 2025-01-19 18:25:00 +01:00
51b871ecda add udisks2 and udiskie to framework 2025-01-19 18:11:42 +01:00
89a775c1e8 Lock file maintenance
All checks were successful
nix flake check / nix-flake-update (push) Successful in 2m30s
2025-01-13 20:01:49 +00:00
4f2119b767 Lock file maintenance
All checks were successful
nix flake check / nix-flake-update (push) Successful in 2m35s
2025-01-13 19:31:48 +00:00
197784db20 Lock file maintenance
All checks were successful
nix flake check / nix-flake-update (push) Successful in 2m30s
2025-01-13 19:01:47 +00:00
6289bf15d9 disable actions caching for now and increase runner concurrency 2025-01-12 18:20:54 +01:00
4e47e87075 Lock file maintenance
All checks were successful
nix flake check / nix-flake-update (push) Successful in 11m15s
2025-01-11 21:01:41 +00:00
48253567c2 Lock file maintenance
All checks were successful
nix flake check / nix-flake-update (push) Successful in 11m13s
2025-01-11 20:01:39 +00:00
dd5c3c3a48 Lock file maintenance
All checks were successful
nix flake check / nix-flake-update (push) Successful in 11m12s
2025-01-11 19:01:39 +00:00
5e50a8235d unify config a bit 2025-01-11 19:52:15 +01:00
a57efbacda Lock file maintenance
Some checks failed
nix flake check / nix-flake-update (push) Has been cancelled
2025-01-11 18:00:09 +00:00
db13ab54b6 Lock file maintenance
All checks were successful
nix flake check / nix-flake-update (push) Successful in 11m37s
2025-01-10 23:32:27 +00:00
b959147b69 install nix via detsys and check then
All checks were successful
nix flake check / nix-flake-update (push) Successful in 11m42s
2025-01-11 00:17:23 +01:00
3fc00f521c add flake check action
Some checks failed
nix flake check / nix-flake-update (push) Failing after 0s
2025-01-11 00:14:34 +01:00
7df23c160a enable automerge for lockfile maintenance 2025-01-10 23:55:50 +01:00
fb060c9068 use https for inputs 2025-01-10 23:47:53 +01:00
d30921202e schedule is part of group 2025-01-10 23:12:23 +01:00
8a90f6a82c does the renovate schedule work now? 2025-01-10 23:06:07 +01:00
412bf0a33b fix renovate.json error 2025-01-10 23:04:25 +01:00
9df08b4882 tell renovate to always run this when bot runs 2025-01-10 23:03:25 +01:00
259c7b1fd9 .... this time for real enable nix in renovate 2025-01-10 22:53:47 +01:00
2bb38b1634 enable nix for renovate 2025-01-10 22:53:00 +01:00
b5e2ce9d1b configure renovate 2025-01-10 22:48:03 +01:00
afa5e8aab7 update secrets 2025-01-10 22:25:41 +01:00
e7940f6177 switch docker image to ubuntu-latest and test actions flow
Some checks failed
update-flake-lock / lockfile (push) Failing after 11m56s
2025-01-09 20:36:18 +01:00
e3b38cc453 add runner on primordial 2025-01-09 20:23:38 +01:00
1ae33bf279 run action on push for now
Some checks failed
update-flake-lock / lockfile (push) Failing after 20s
2025-01-09 19:53:03 +01:00
60c364dd22 try actions 2025-01-09 19:50:56 +01:00
8a74d36bd7 let act_runner use docker/podman 2025-01-09 19:11:11 +01:00
9031dfb62d pass nur as overlay and fix firefox module 2025-01-09 19:10:30 +01:00
7539947bb0 firefox module 2025-01-04 15:16:42 +01:00
acc9c123df fix firefox tabs at bottom 2025-01-03 17:21:24 +01:00
15ea443308 cleanup framework homemanager config 2024-12-22 21:51:42 +01:00
e458325578 allow EOL .NET6 for arr services 2024-12-22 20:32:42 +01:00
00f39fbd66 swap to hyprlock and hypridle 2024-12-22 20:03:55 +01:00
07e17650a8 fix tailscale 2024-12-09 19:06:45 +01:00
7d82ca8f5d add prune options for backups 2024-12-09 18:45:52 +01:00
482463c8d4 allow more uploads 2024-12-08 18:42:17 +01:00
a8df9404f0 add tailwind to framework 2024-11-26 00:24:10 +01:00
f9bb7a157a fix deprecations and add sdr stuff 2024-11-25 10:32:26 +01:00
30d45c55f6 use lts kernel for work 2024-11-20 06:06:10 +01:00
55137bcd83 Merge pull request 'update nixvim and fix deprecations' (#2) from laptop into master
Reviewed-on: #2
2024-11-19 16:48:01 +01:00
461d94f808 update nixvim and fix deprecations 2024-11-19 16:46:13 +01:00
34 changed files with 1032 additions and 1900 deletions

View File

@ -0,0 +1,14 @@
name: nix flake check
on:
push:
branches:
- 'renovate/**'
jobs:
nix-flake-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- run: /root/.nix-profile/bin/nix flake check --all-systems

View File

@ -2,7 +2,7 @@ keys:
- &user_patrick 5FA64909521A5C85992F26E0F819AEFF941BB849 - &user_patrick 5FA64909521A5C85992F26E0F819AEFF941BB849
- &host_celestia age1vadwmwh8ckfal7j83gwrwn9324gqufwgkxskznhp9v867amndcwqgp2w6t - &host_celestia age1vadwmwh8ckfal7j83gwrwn9324gqufwgkxskznhp9v867amndcwqgp2w6t
- &host_primordial age12u7ayy2q5dps2pcpc6z7962pz07jxv3tt03hna6jyumlu4fdjvtqdg2n3e - &host_primordial age12u7ayy2q5dps2pcpc6z7962pz07jxv3tt03hna6jyumlu4fdjvtqdg2n3e
- &host_laptop age1fhnujflp29sekvwjgw0ue2hnmjum3fpcj80vly0rkt07u9xwlf7ql25mkk - &host_framework age18kc63lpfutqlw505fkqagumqup6dtpudajeaheueuaf0frjpdc3suz49qk
creation_rules: creation_rules:
- path_regex: nixos/celestia/secrets\.yaml$ - path_regex: nixos/celestia/secrets\.yaml$
key_groups: key_groups:
@ -16,3 +16,9 @@ creation_rules:
- *user_patrick - *user_patrick
age: age:
- *host_primordial - *host_primordial
- path_regex: nixos/framework/secrets\.yaml$
key_groups:
- pgp:
- *user_patrick
age:
- *host_framework

1314
flake.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -3,16 +3,23 @@
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
deploy = {
url = "github:serokell/deploy-rs"; lanzaboote = {
url = "github:nix-community/lanzaboote";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nurpkgs.url = "github:nix-community/NUR";
sops-nix.url = "github:Mic92/sops-nix"; sops-nix = {
lanzaboote.url = "github:nix-community/lanzaboote"; url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nur = {
url = "github:nix-community/NUR";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = { home-manager = {
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -23,26 +30,8 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
rycee-nurpkgs = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};
nixpkgs-f2k = {
url = "github:fortuneteller2k/nixpkgs-f2k";
inputs.nixpkgs.follows = "nixpkgs";
};
devenv = {
url = "github:cachix/devenv/latest";
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim = { nixvim = {
url = "git+ssh://gitea@git.fuckwit.dev/fuckwit/nixvim"; url = "git+https://gitlab.fuckwit.dev/fuckwit/nixvim";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
}; };

View File

@ -0,0 +1,111 @@
{
pkgs,
config,
lib,
...
}: let
inherit (lib) mkOption mkEnableOption mkPackageOption types;
defaultExtensions = with pkgs.nur.repos.rycee.firefox-addons; [
bitwarden
darkreader
i-dont-care-about-cookies
privacy-badger
ublock-origin
];
defaultSettings = {
"app.normandy.first_run" = false;
"app.shield.optoutstudies.enabled" = false;
# disable updates (pretty pointless with nix)
"app.update.channel" = "default";
"browser.contentblocking.category" = "standard"; # "strict"
"browser.ctrlTab.recentlyUsedOrder" = false;
"browser.download.viewableInternally.typeWasRegistered.svg" = true;
"browser.download.viewableInternally.typeWasRegistered.webp" = true;
"browser.download.viewableInternally.typeWasRegistered.xml" = true;
"browser.search.region" = "DE";
"browser.shell.checkDefaultBrowser" = false;
"browser.tabs.loadInBackground" = true;
"browser.urlbar.placeholderName" = "EnteEnteLauf";
"browser.urlbar.showSearchSuggestionsFirst" = false;
# disable all the annoying quick actions
"browser.urlbar.quickactions.enabled" = false;
"browser.urlbar.quickactions.showPrefs" = false;
"browser.urlbar.shortcuts.quickactions" = false;
"browser.urlbar.suggest.quickactions" = false;
"distribution.searchplugins.defaultLocale" = "en-US";
"doh-rollout.balrog-migration-done" = true;
"doh-rollout.doneFirstRun" = true;
"general.useragent.locale" = "en-US";
"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
"extensions.extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
"extensions.update.enabled" = false;
"extensions.webcompat.enable_picture_in_picture_overrides" = true;
"extensions.webcompat.enable_shims" = true;
"extensions.webcompat.perform_injections" = true;
"extensions.webcompat.perform_ua_overrides" = true;
"privacy.donottrackheader.enabled" = true;
"browser.translations.enable" = false;
# Yubikey
"security.webauth.u2f" = true;
"security.webauth.webauthn" = true;
"security.webauth.webauthn_enable_softtoken" = false;
"security.webauth.webauthn_enable_usbtoken" = true;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"layout.word_select.stop_at_punctuation" = false;
};
cfg = config.personal.firefox;
in {
options.personal.firefox = {
enable = mkEnableOption "Apply personal firefox defaults.";
package = mkPackageOption pkgs "firefox-bin" {};
extraExtensions = mkOption {
type = types.listOf types.package;
default = [];
description = "Extra Firefox extensions to install.";
};
settings = mkOption {
type = types.attrsOf ((pkgs.formats.json {}).type
// {
description = "Preferences (int, bool, string, and also attrs, list, float as a JSON string)";
});
default = defaultSettings;
description = "Attribute set of preferences.";
};
};
config = {
programs.firefox = lib.mkIf cfg.enable {
enable = true;
package = cfg.package;
profiles = {
default = {
isDefault = true;
id = 0;
userChrome = builtins.readFile ./userChrome.css;
extensions = defaultExtensions ++ cfg.extraExtensions;
inherit (cfg) settings;
};
};
};
};
}

View File

@ -0,0 +1,76 @@
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/toolbars_below_content_v2.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* This requires Firefox 133
* By default tabs will be the top-most toolbar, but you can set the following pref to move them to bottom:
* userchrome.toolbars-below-content.tabs-at-bottom.enabled
*/
#navigator-toolbox{
display: contents;
--uc-navbar-height: 40px;
}
:root[uidensity="compact"] #navigator-toolbox{
--uc-navbar-height: 34px;
}
#main-window > body > #browser,
.global-notificationbox,
#tab-notification-deck,
#toolbar-menubar{
order: -1;
}
#TabsToolbar{
max-height: calc((var(--tab-min-height) + 2 * var(--tab-block-margin,0px)) * var(--multirow-n-rows,1));
}
#toolbar-menubar,
#TabsToolbar{
background: inherit !important;
}
@media (-moz-platform: linux){
:root[sizemode="normal"][customtitlebar] #toolbar-menubar{
border-top-left-radius: inherit;
border-top-right-radius: inherit;
}
#toolbar-menubar,
#TabsToolbar{
opacity: 1 !important;
will-change: unset !important;
}
#notification-popup[side="top"]{
margin-top: calc(-2 * var(--panel-padding-block) - 40px - 32px - 8.5em) !important;
}
#permission-popup[side="top"]{
margin-top: calc(-2 * var(--panel-padding-block) - 2.5em);
}
}
#nav-bar,
#PersonalToolbar{
background-image: linear-gradient(var(--toolbar-bgcolor),var(--toolbar-bgcolor)), var(--lwt-additional-images,var(--toolbar-bgimage)) !important;
background-position: top,var(--lwt-background-alignment);
background-position-y: calc(0px - var(--tab-min-height) - 2*var(--tab-block-margin,0px));
background-repeat: repeat,var(--lwt-background-tiling);
}
:root[lwtheme-image] #nav-bar,
:root[lwtheme-image] #PersonalToolbar{
background-image: linear-gradient(var(--toolbar-bgcolor),var(--toolbar-bgcolor)),var(--lwt-header-image), var(--lwt-additional-images,var(--toolbar-bgimage)) !important;
}
#PersonalToolbar{
background-position-y: calc(0px - var(--tab-min-height) - 2*var(--tab-block-margin,0px) - var( --uc-navbar-height));
}
#urlbar[breakout][breakout-extend]{
display: flex !important;
flex-direction: column-reverse !important;
transform: translateY(calc(var(--urlbar-container-height) - 100%));
}
#urlbar[breakout-extend]:not([usertyping]) > .urlbar-input-container::after{
display: flex;
content: "";
height: calc(var(--urlbar-min-height) - 2px - 2 * var(--urlbar-container-padding));
}
.urlbarView-body-inner{ border-top-style: none !important; }
#TabsToolbar{
order: 3
}

View File

@ -1,5 +1,6 @@
{...}: { {...}: {
imports = [ imports = [
./firefox
./firefox-webapp.nix ./firefox-webapp.nix
]; ];
} }

View File

@ -1,29 +1,18 @@
{ {
nixpkgs, nixpkgs,
nurpkgs, nur,
home-manager, home-manager,
devenv,
nixvim, nixvim,
... ...
}: let }: let
pkgs = import nixpkgs rec { pkgs = import nixpkgs rec {
system = "x86_64-linux"; system = "x86_64-linux";
overlays = [(final: prev: {nixvim = nixvim.packages.${system}.default;})]; overlays = [(final: prev: {nixvim = nixvim.packages.${system}.default;}) nur.overlays.default];
};
nur = import nurpkgs {
inherit pkgs;
nurpkgs = pkgs;
}; };
in { in {
work = home-manager.lib.homeManagerConfiguration { work = home-manager.lib.homeManagerConfiguration {
inherit pkgs; inherit pkgs;
extraSpecialArgs = {
inherit devenv; # TODO: Remove dependency on devenv
ff-addons = nur.repos.rycee.firefox-addons;
};
modules = [ modules = [
../home-modules/modules-list.nix ../home-modules/modules-list.nix
./work ./work
@ -33,12 +22,8 @@ in {
framework = home-manager.lib.homeManagerConfiguration { framework = home-manager.lib.homeManagerConfiguration {
inherit pkgs; inherit pkgs;
extraSpecialArgs = {
ff-addons = nur.repos.rycee.firefox-addons;
};
modules = [ modules = [
# ../home-modules/modules-list.nix ../home-modules/modules-list.nix
./framework ./framework
]; ];
}; };

View File

@ -28,6 +28,8 @@
./programs ./programs
]; ];
services.udiskie.enable = true;
accounts.email.accounts = { accounts.email.accounts = {
patrick = { patrick = {
primary = true; primary = true;

View File

@ -0,0 +1,35 @@
{...}: {
programs.alacritty = {
enable = true;
settings = {
general.live_config_reload = true;
env.TERM = "xterm-256color";
bell.duration = 0;
cursor.style = "Block";
scrolling = {
history = 10000;
multiplier = 3;
};
window = {
opacity = 0.9;
};
mouse.bindings = [
{
mouse = "Middle";
action = "PasteSelection";
}
];
colors = {
primary = {
background = "0x000000";
foreground = "0xeaeaea";
};
};
};
};
}

View File

@ -1,4 +1,5 @@
[ [
./alacritty
./firefox ./firefox
./hyprland ./hyprland
{ {

View File

@ -1,92 +1,5 @@
{ {...}: {
pkgs, personal.firefox = {
lib,
stdenv,
specialArgs,
...
}: let
extensions = with specialArgs.ff-addons; [
bitwarden
darkreader
i-dont-care-about-cookies
privacy-badger
ublock-origin
tree-style-tab
# tridactyl
];
customChrome = builtins.readFile ./userChrome.css;
userChrome = customChrome;
# ~/.mozilla/firefox/PROFILE_NAME/prefs.js | user.js
settings = {
"app.normandy.first_run" = false;
"app.shield.optoutstudies.enabled" = false;
# disable updates (pretty pointless with nix)
"app.update.channel" = "default";
"browser.contentblocking.category" = "standard"; # "strict"
"browser.ctrlTab.recentlyUsedOrder" = false;
"browser.download.viewableInternally.typeWasRegistered.svg" = true;
"browser.download.viewableInternally.typeWasRegistered.webp" = true;
"browser.download.viewableInternally.typeWasRegistered.xml" = true;
"browser.search.region" = "DE";
"browser.shell.checkDefaultBrowser" = false;
"browser.tabs.loadInBackground" = true;
"browser.urlbar.placeholderName" = "EnteEnteLauf";
"browser.urlbar.showSearchSuggestionsFirst" = false;
# disable all the annoying quick actions
"browser.urlbar.quickactions.enabled" = false;
"browser.urlbar.quickactions.showPrefs" = false;
"browser.urlbar.shortcuts.quickactions" = false;
"browser.urlbar.suggest.quickactions" = false;
"distribution.searchplugins.defaultLocale" = "en-US";
"doh-rollout.balrog-migration-done" = true;
"doh-rollout.doneFirstRun" = true;
"general.useragent.locale" = "en-US";
"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
"extensions.extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
"extensions.update.enabled" = false;
"extensions.webcompat.enable_picture_in_picture_overrides" = true;
"extensions.webcompat.enable_shims" = true;
"extensions.webcompat.perform_injections" = true;
"extensions.webcompat.perform_ua_overrides" = true;
"privacy.donottrackheader.enabled" = true;
"browser.translations.enable" = false;
# Yubikey
"security.webauth.u2f" = true;
"security.webauth.webauthn" = true;
"security.webauth.webauthn_enable_softtoken" = false;
"security.webauth.webauthn_enable_usbtoken" = true;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"layout.word_select.stop_at_punctuation" = false;
};
in {
programs.firefox = {
enable = true; enable = true;
package = pkgs.firefox-bin;
profiles = {
default = {
isDefault = true;
id = 0;
inherit extensions settings userChrome;
};
};
}; };
} }

View File

@ -1,88 +0,0 @@
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/toolbars_below_content.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* Moves tabs toolbar, bookmarks toolbar and main toolbar to the bottom of the window, and makes tabs be the bottom-most toolbar */
/* By default, menubar will stay on top with two options to select it's behavior - see below */
@-moz-document url(chrome://browser/content/browser.xhtml){
#titlebar{ -moz-appearance: none !important; }
#navigator-toolbox > div{ display: contents }
.global-notificationbox,
#mainPopupSet,
#browser,
#customization-container,
#tab-notification-deck{
order: -1;
}
/* Remove the next row if you want tabs to be the top-most row */
#titlebar{
order: 2;
}
#toolbar-menubar{
position: fixed;
display: flex;
width: 100vw;
top: 0px;
-moz-window-dragging: drag;
}
/* Remove bottom border that won't do anything useful when at bottom of the window */
#navigator-toolbox{ border-bottom: none !important; }
#toolbar-menubar > spacer{ flex-grow: 1 }
#urlbar[breakout][breakout-extend]{
display: flex !important;
flex-direction: column-reverse;
bottom: 0px !important; /* Change to 3-5 px if using compact_urlbar_megabar.css depending on toolbar density */
top: auto !important;
}
.urlbarView-body-inner{ border-top-style: none !important; }
/* Yeah, removes window controls. Likely not wanted on bottom row */
#TabsToolbar > .titlebar-buttonbox-container{ display: none }
#toolbar-menubar > .titlebar-buttonbox-container{ order: 1000 }
/* Fix panels sizing */
.panel-viewstack{ max-height: unset !important; }
/* Fullscreen mode support */
:root[sizemode="fullscreen"] #navigator-toolbox{ margin-top: 0 !important }
:root[sizemode="fullscreen"] #navigator-toolbox[style*="margin-top"]{ visibility: collapse }
#fullscr-toggler{ bottom: 0; top: unset !important; }
/* These three rules exist for compatibility with autohide_toolbox.css */
#navigator-toolbox{ bottom: 0px; transform-origin: bottom }
#main-window > body > box{ margin-top: 0 !important; }
#toolbar-menubar{ z-index: 1; background-color: var(--lwt-accent-color,black); }
:root[BookmarksToolbarOverlapsBrowser] #navigator-toolbox{
margin-block: calc(-1 * var(--bookmarks-toolbar-height)) 0 !important;
}
:root[BookmarksToolbarOverlapsBrowser] .newTabBrowserPanel{
padding-block: 0 var(--bookmarks-toolbar-height) !important;
}
/**************
Menubar options - By default, menubar is overlayed on top of web-content
***************/
/* Uncomment the following if you want static menubar on top of the window (make menubar enabled)
* Use when menubar is enabled to always show it */
/*
#browser,#customization-container{ padding-top: var(--uc-menubar-spacer,28px) }
*/
/* OR, uncomment the following if you want menubar to appear below content, above tabs toolbar */
#toolbar-menubar{ position: static; display: flex; margin-top: 0px !important; background-color: transparent }
/* set to "column-reverse" (without quotes) if you want tabs above menubar with the above option */
#titlebar{ flex-direction: column }
}

View File

@ -1,19 +1,84 @@
{pkgs, ...}: { {pkgs, ...}: {
wayland.windowManager.hyprland = let services.hypridle = {
locker = "${pkgs.swaylock}/bin/swaylock"; enable = true;
set-dpms = "${pkgs.hyprland}/bin/hyprctl dispatcher dpms";
locked-dpms = pkgs.writeShellScript "locked-dpms.sh" '' settings = {
${pkgs.swayidle}/bin/swayidle -w \ general = {
timeout 10 'if pgrep -x swaylock; then ${set-dpms} off; fi' \ lock_cmd = "pidof hyprlock || hyprlock";
resume '${set-dpms} on' };
'';
idle-script = pkgs.writeShellScript "idle-lock.sh" '' listener = [
${pkgs.swayidle}/bin/swayidle -w \ {
timeout 300 '${locker} -f' \ timeout = 300;
timeout 330 '${set-dpms} off' \ on-timeout = "loginctl lock-session";
resume '${set-dpms} on' }
''; {
in { timeout = 330;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
];
};
};
programs.hyprlock = {
enable = true;
settings = {
background = {
monitor = "";
path = "screenshot";
blur_passes = 2;
blur_size = 7;
noise = 1.17e-2;
};
auth.fingerprint.enabled = true;
label = [
{
monitor = "";
text = "$TIME";
color = "rgba(242, 243, 244, 0.75)";
font_size = 95;
position = "0, 300";
halign = "center";
valign = "center";
}
{
monitor = "";
text = ''cmd[update:1000] echo $(date +"%A, %B %d")'';
color = "rgba(242, 243, 244, 0.75)";
font_size = 22;
position = "0, 200";
halign = "center";
valign = "center";
}
];
input-field = {
monitor = "";
size = "200,50";
outline_thickness = 2;
dots_size = 0.2;
dots_spacing = 0.35;
dots_center = true;
outer_color = "rgba(0, 0, 0, 0)";
inner_color = "rgba(0, 0, 0, 0.2)";
font_color = "rgb(111, 45, 104)";
fade_on_empty = false;
rounding = -1;
check_color = "rgb(30, 107, 204)";
placeholder_text = ''<i><span foreground="##cdd6f4">Input Password...</span></i>'';
hide_input = false;
position = "0, -100";
halign = "center";
valign = "center";
};
};
};
wayland.windowManager.hyprland = {
enable = true; enable = true;
settings = { settings = {
"$mod" = "SUPER"; "$mod" = "SUPER";
@ -28,8 +93,6 @@
exec-once = [ exec-once = [
"${pkgs.waybar}/bin/waybar" "${pkgs.waybar}/bin/waybar"
"${pkgs.mako}/bin/mako" "${pkgs.mako}/bin/mako"
idle-script
locked-dpms
]; ];
input = { input = {
@ -49,10 +112,12 @@
decoration = { decoration = {
rounding = 5; rounding = 5;
drop_shadow = true; shadow = {
shadow_range = 4; enabled = true;
shadow_render_power = 3; range = 4;
"col.shadow" = "rgba(1a1a1aee)"; render_power = 3;
color = "rgba(1a1a1aee)";
};
blur = { blur = {
enabled = true; enabled = true;
@ -81,7 +146,7 @@
"$mod, return, exec, ${pkgs.alacritty}/bin/alacritty" "$mod, return, exec, ${pkgs.alacritty}/bin/alacritty"
"$mod, D, exec, ${pkgs.rofi-wayland}/bin/rofi -show drun" "$mod, D, exec, ${pkgs.rofi-wayland}/bin/rofi -show drun"
"$mod SHIFT, Q, killactive, " "$mod SHIFT, Q, killactive, "
"$mod, L, exec, ${locker}" "$mod, L, exec, loginctl lock-session"
"$mod, V, togglefloating, " "$mod, V, togglefloating, "
"$mod, F, fullscreen, 1" "$mod, F, fullscreen, 1"
"$mod, P, pseudo, # dwindle" "$mod, P, pseudo, # dwindle"

View File

@ -1,7 +1,7 @@
{ {
config, config,
pkgs, pkgs,
devenv, # devenv,
... ...
}: { }: {
home = { home = {

View File

@ -1,15 +1,10 @@
{pkgs, ...}: {pkgs, ...}:
with pkgs; [ with pkgs; [
age # Modern encryption tool with small explicit keys age # Modern encryption tool with small explicit keys
arandr # simple GUI for xrandr
atuin atuin
dig # dns command-line tool dig # dns command-line tool
fd # "find" for files fd # "find" for files
# geckodriver # remote controll firefox
helix # modal editor
htop # process monitor htop # process monitor
hyperfine # command-line benchmarking tool
# i3lock # screen locker
imagemagick # selection screenshot stuff imagemagick # selection screenshot stuff
just # just a command runner just # just a command runner
keepassxc # password manager keepassxc # password manager
@ -22,21 +17,14 @@ with pkgs; [
mtr # traceroute mtr # traceroute
mumble # voice call client mumble # voice call client
ncdu # disk space info (a better du) ncdu # disk space info (a better du)
# neovim-unwrapped # best code editor on the planet
networkmanagerapplet # systray applet for NetworkManager networkmanagerapplet # systray applet for NetworkManager
# nitrogen # wallpapger manager
nushell # A modern shell written in Rust
ouch # painless compression and decompression for your terminal ouch # painless compression and decompression for your terminal
pavucontrol # pulseaudio volume control pavucontrol # pulseaudio volume control
playerctl # music player controller playerctl # music player controller
podman-compose # podman manager podman-compose # podman manager
restic # incremental backup tool
ripgrep # fast grep ripgrep # fast grep
# rocketchat-desktop # company chat
sops # Mozilla sops (Secrets OPerationS) is an editor of encrypted files sops # Mozilla sops (Secrets OPerationS) is an editor of encrypted files
thunderbird # email client thunderbird # email client
# xclip # clipboard support
# xsel # clipboard support (also for neovim)
zeal # offline documentation browser zeal # offline documentation browser
zellij # A terminal workspace with batteries included zellij # A terminal workspace with batteries included
wl-clipboard wl-clipboard

View File

@ -3,8 +3,7 @@
enable = true; enable = true;
settings = { settings = {
live_config_reload = true; general.live_config_reload = true;
env.TERM = "xterm-256color"; env.TERM = "xterm-256color";
bell.duration = 0; bell.duration = 0;
cursor.style = "Block"; cursor.style = "Block";

View File

@ -1,106 +1,6 @@
{ {pkgs, ...}: {
pkgs, personal.firefox = {
lib,
stdenv,
specialArgs,
...
}: let
extensions = with specialArgs.ff-addons; [
bitwarden
darkreader
i-dont-care-about-cookies
privacy-badger
ublock-origin
# tree-style-tab
# tridactyl
keepassxc-browser
];
userChrome = builtins.readFile ./userChrome.css;
# ~/.mozilla/firefox/PROFILE_NAME/prefs.js | user.js
settings = {
"app.normandy.first_run" = false;
"app.shield.optoutstudies.enabled" = false;
# disable updates (pretty pointless with nix)
"app.update.channel" = "default";
"browser.contentblocking.category" = "standard"; # "strict"
"browser.ctrlTab.recentlyUsedOrder" = false;
"browser.download.viewableInternally.typeWasRegistered.svg" = true;
"browser.download.viewableInternally.typeWasRegistered.webp" = true;
"browser.download.viewableInternally.typeWasRegistered.xml" = true;
"browser.search.region" = "DE";
"browser.shell.checkDefaultBrowser" = false;
"browser.tabs.loadInBackground" = true;
"browser.urlbar.placeholderName" = "EnteEnteLauf";
"browser.urlbar.showSearchSuggestionsFirst" = false;
# disable all the annoying quick actions
"browser.urlbar.quickactions.enabled" = false;
"browser.urlbar.quickactions.showPrefs" = false;
"browser.urlbar.shortcuts.quickactions" = false;
"browser.urlbar.suggest.quickactions" = false;
# disable tab preview on hover
"browser.tabs.hoverPreview.enabled" = false;
"browser.tabs.hoverPreview.showThumbnails" = false;
"distribution.searchplugins.defaultLocale" = "en-US";
"doh-rollout.balrog-migration-done" = true;
"doh-rollout.doneFirstRun" = true;
"general.useragent.locale" = "en-US";
"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
"extensions.extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
"extensions.update.enabled" = false;
"extensions.webcompat.enable_picture_in_picture_overrides" = true;
"extensions.webcompat.enable_shims" = true;
"extensions.webcompat.perform_injections" = true;
"extensions.webcompat.perform_ua_overrides" = true;
"privacy.donottrackheader.enabled" = true;
# Yubikey
"security.webauth.u2f" = true;
"security.webauth.webauthn" = true;
"security.webauth.webauthn_enable_softtoken" = false;
"security.webauth.webauthn_enable_usbtoken" = true;
"network.dns.ipv4OnlyDomains" = "google.com";
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"layout.word_select.stop_at_punctuation" = false;
};
in {
programs.firefox = {
enable = true; enable = true;
extraExtensions = with pkgs.nur.repos.rycee.firefox-addons; [keepassxc-browser];
package = pkgs.firefox-bin;
profiles = {
default = {
isDefault = true;
id = 0;
inherit extensions settings userChrome;
};
};
# webapps = {
# rocket-chat = {
# url = "https://chat.hetzner.company";
# id = 1;
# genericName = "Internet Messenger";
# categories = ["Network" "InstantMessaging"];
# };
# };
}; };
} }

View File

@ -1,88 +0,0 @@
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/toolbars_below_content.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* Moves tabs toolbar, bookmarks toolbar and main toolbar to the bottom of the window, and makes tabs be the bottom-most toolbar */
/* By default, menubar will stay on top with two options to select it's behavior - see below */
@-moz-document url(chrome://browser/content/browser.xhtml){
#titlebar{ -moz-appearance: none !important; }
#navigator-toolbox > div{ display: contents }
.global-notificationbox,
#mainPopupSet,
#browser,
#customization-container,
#tab-notification-deck{
order: -1;
}
/* Remove the next row if you want tabs to be the top-most row */
#titlebar{
order: 2;
}
#toolbar-menubar{
position: fixed;
display: flex;
width: 100vw;
top: 0px;
-moz-window-dragging: drag;
}
/* Remove bottom border that won't do anything useful when at bottom of the window */
#navigator-toolbox{ border-bottom: none !important; }
#toolbar-menubar > spacer{ flex-grow: 1 }
#urlbar[breakout][breakout-extend]{
display: flex !important;
flex-direction: column-reverse;
bottom: 0px !important; /* Change to 3-5 px if using compact_urlbar_megabar.css depending on toolbar density */
top: auto !important;
}
.urlbarView-body-inner{ border-top-style: none !important; }
/* Yeah, removes window controls. Likely not wanted on bottom row */
#TabsToolbar > .titlebar-buttonbox-container{ display: none }
#toolbar-menubar > .titlebar-buttonbox-container{ order: 1000 }
/* Fix panels sizing */
.panel-viewstack{ max-height: unset !important; }
/* Fullscreen mode support */
:root[sizemode="fullscreen"] #navigator-toolbox{ margin-top: 0 !important }
:root[sizemode="fullscreen"] #navigator-toolbox[style*="margin-top"]{ visibility: collapse }
#fullscr-toggler{ bottom: 0; top: unset !important; }
/* These three rules exist for compatibility with autohide_toolbox.css */
#navigator-toolbox{ bottom: 0px; transform-origin: bottom }
#main-window > body > box{ margin-top: 0 !important; }
#toolbar-menubar{ z-index: 1; background-color: var(--lwt-accent-color,black); }
:root[BookmarksToolbarOverlapsBrowser] #navigator-toolbox{
margin-block: calc(-1 * var(--bookmarks-toolbar-height)) 0 !important;
}
:root[BookmarksToolbarOverlapsBrowser] .newTabBrowserPanel{
padding-block: 0 var(--bookmarks-toolbar-height) !important;
}
/**************
Menubar options - By default, menubar is overlayed on top of web-content
***************/
/* Uncomment the following if you want static menubar on top of the window (make menubar enabled)
* Use when menubar is enabled to always show it */
/*
#browser,#customization-container{ padding-top: var(--uc-menubar-spacer,28px) }
*/
/* OR, uncomment the following if you want menubar to appear below content, above tabs toolbar */
#toolbar-menubar{ position: static; display: flex; margin-top: 0px !important; background-color: transparent }
/* set to "column-reverse" (without quotes) if you want tabs above menubar with the above option */
#titlebar{ flex-direction: column }
}

View File

@ -1,19 +1,82 @@
{pkgs, ...}: { {pkgs, ...}: {
wayland.windowManager.hyprland = let services.hypridle = {
locker = "${pkgs.swaylock}/bin/swaylock"; enable = true;
set-dpms = "${pkgs.hyprland}/bin/hyprctl dispatcher dpms";
locked-dpms = pkgs.writeShellScript "locked-dpms.sh" '' settings = {
${pkgs.swayidle}/bin/swayidle -w \ general = {
timeout 10 'if pgrep -x swaylock; then ${set-dpms} off; fi' \ lock_cmd = "pidof hyprlock || hyprlock";
resume '${set-dpms} on' };
'';
idle-script = pkgs.writeShellScript "idle-lock.sh" '' listener = [
${pkgs.swayidle}/bin/swayidle -w \ {
timeout 300 '${locker} -f' \ timeout = 300;
timeout 330 '${set-dpms} off' \ on-timeout = "loginctl lock-session";
resume '${set-dpms} on' }
''; {
in { timeout = 330;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
];
};
};
programs.hyprlock = {
enable = true;
settings = {
background = {
monitor = "";
path = "screenshot";
blur_passes = 2;
blur_size = 7;
noise = 1.17e-2;
};
label = [
{
monitor = "";
text = "$TIME";
color = "rgba(242, 243, 244, 0.75)";
font_size = 95;
position = "0, 300";
halign = "center";
valign = "center";
}
{
monitor = "";
text = ''cmd[update:1000] echo $(date +"%A, %B %d")'';
color = "rgba(242, 243, 244, 0.75)";
font_size = 22;
position = "0, 200";
halign = "center";
valign = "center";
}
];
input-field = {
monitor = "";
size = "200,50";
outline_thickness = 2;
dots_size = 0.2;
dots_spacing = 0.35;
dots_center = true;
outer_color = "rgba(0, 0, 0, 0)";
inner_color = "rgba(0, 0, 0, 0.2)";
font_color = "rgb(111, 45, 104)";
fade_on_empty = false;
rounding = -1;
check_color = "rgb(30, 107, 204)";
placeholder_text = ''<i><span foreground="##cdd6f4">Input Password...</span></i>'';
hide_input = false;
position = "0, -100";
halign = "center";
valign = "center";
};
};
};
wayland.windowManager.hyprland = {
enable = true; enable = true;
settings = { settings = {
@ -22,16 +85,12 @@
exec-once = [ exec-once = [
"${pkgs.waybar}/bin/waybar" "${pkgs.waybar}/bin/waybar"
"${pkgs.mako}/bin/mako" "${pkgs.mako}/bin/mako"
idle-script
locked-dpms
]; ];
monitor = [ monitor = [
"eDP-1,1920x1080,0x0,1.333333" # Laptop screen "eDP-1,1920x1080,0x0,1.333333" # Laptop screen
"desc:Dell Inc. DELL P2723DE 79RFH14,2560x1440,1440x0,1" "desc:Dell Inc. DELL P2723DE 79RFH14,2560x1440,1440x0,1"
"desc:Dell Inc. DELL P2723DE 39RFH14,2560x1440,4000x0,1" "desc:Dell Inc. DELL P2723DE 39RFH14,2560x1440,4000x0,1"
# "desc:LG Electronics LG ULTRAWIDE 0x000219F2,2560x1080,1440x0,1" # Primary @home
# "desc:Fujitsu Siemens Computers GmbH B22W-6 LED YV3U164923,1680x1050,4000x0,1" # Secondary @home
",preferred,auto,1" # Automatically configure everything else ",preferred,auto,1" # Automatically configure everything else
]; ];
@ -63,10 +122,12 @@
decoration = { decoration = {
rounding = 5; rounding = 5;
drop_shadow = true; shadow = {
shadow_range = 4; enabled = true;
shadow_render_power = 3; range = 4;
"col.shadow" = "rgba(1a1a1aee)"; render_power = 3;
color = "rgba(1a1a1aee)";
};
blur = { blur = {
enabled = true; enabled = true;
@ -95,7 +156,7 @@
"$mod, return, exec, ${pkgs.alacritty}/bin/alacritty" "$mod, return, exec, ${pkgs.alacritty}/bin/alacritty"
"$mod, D, exec, ${pkgs.rofi-wayland}/bin/rofi -show drun" "$mod, D, exec, ${pkgs.rofi-wayland}/bin/rofi -show drun"
"$mod SHIFT, Q, killactive, " "$mod SHIFT, Q, killactive, "
"$mod, L, exec, ${locker}" "$mod, L, exec, loginctl lock-session"
"$mod, V, togglefloating, " "$mod, V, togglefloating, "
"$mod, F, fullscreen, 1" "$mod, F, fullscreen, 1"
"$mod, P, pseudo, # dwindle" "$mod, P, pseudo, # dwindle"
@ -122,10 +183,6 @@
"$mod, mouse:273, resizewindow" "$mod, mouse:273, resizewindow"
]; ];
bindl = [
"$mod SHIFT, L, exec, ${locker}"
];
windowrulev2 = [ windowrulev2 = [
# KeePassXC # KeePassXC
"float,class:(org.keepassxc.KeePassXC)" "float,class:(org.keepassxc.KeePassXC)"

View File

@ -1,8 +1,10 @@
set -g history-limit 50000 set -g history-limit 50000
set -g default-terminal "screen-256color"
set -g mouse on set -g mouse on
set -sg escape-time 50 set -sg escape-time 50
set -g default-terminal "xterm-256color"
set -as terminal-overrides ",xterm-*:Tc"
unbind C-b unbind C-b
set-option -g prefix C-a set-option -g prefix C-a
bind-key C-a send-prefix bind-key C-a send-prefix

View File

@ -2,6 +2,7 @@
config, config,
lib, lib,
pkgs, pkgs,
mypkgs,
... ...
}: let }: let
makeVirtualHost = { makeVirtualHost = {
@ -38,6 +39,8 @@ in {
sops.secrets."restic_ssh_key" = {}; sops.secrets."restic_ssh_key" = {};
sops.secrets."restic_documents_repository_password" = {}; sops.secrets."restic_documents_repository_password" = {};
sops.secrets."restic_images_repository_password" = {}; sops.secrets."restic_images_repository_password" = {};
sops.secrets."protonvpn_wg_private_key" = {};
sops.secrets."telegraf_api_token" = {};
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
@ -52,6 +55,14 @@ in {
]; ];
boot.kernelModules = ["amd-pstate"]; boot.kernelModules = ["amd-pstate"];
# *arr services are not yet all updated to .NET 8
nixpkgs.config.permittedInsecurePackages = [
"aspnetcore-runtime-6.0.36"
"aspnetcore-runtime-wrapped-6.0.36"
"dotnet-sdk-6.0.428"
"dotnet-sdk-wrapped-6.0.428"
];
system.stateVersion = "23.11"; # Did you read the comment? system.stateVersion = "23.11"; # Did you read the comment?
networking = { networking = {
hostName = "celestia"; hostName = "celestia";
@ -68,7 +79,7 @@ in {
firewall = { firewall = {
enable = true; enable = true;
allowedTCPPorts = [22 111 443 2049 4000 4001 4002 20048]; allowedTCPPorts = [22 111 443 2049 4000 4001 4002 9999 20048];
allowedUDPPorts = [53 111 2049 4000 4001 4002 20048]; allowedUDPPorts = [53 111 2049 4000 4001 4002 20048];
}; };
}; };
@ -84,6 +95,10 @@ in {
zfs zfs
lm_sensors lm_sensors
ffmpeg ffmpeg
rtl_433
dump1090
rtl-sdr
mypkgs.nixvim
]; ];
users.users."root".openssh.authorizedKeys.keys = [ users.users."root".openssh.authorizedKeys.keys = [
@ -187,6 +202,15 @@ in {
# "force create mode" = "0666"; # "force create mode" = "0666";
# "force directory mode" = "0777"; # "force directory mode" = "0777";
}; };
all = {
path = "/tank";
browsable = "yes";
public = "yes";
"guest only" = "yes";
writable = "no";
# "force create mode" = "0666";
# "force directory mode" = "0777";
};
}; };
}; };
@ -194,28 +218,8 @@ in {
autoScrub.enable = true; autoScrub.enable = true;
}; };
gitea-actions-runner.instances = {
runner1 = {
enable = true;
name = "celestia";
url = "https://git.fuckwit.dev";
tokenFile = config.sops.secrets."act-runner-token".path;
labels = [
"native:host"
];
hostPackages = with pkgs; [
bash
coreutils
curl
wget
gnused
gitMinimal
];
};
};
restic = let restic = let
mkBackup = repo: paths: exclude: { mkBackup = repo: paths: exclude: pruneOpts: {
repository = "sftp:u169497-sub5@u169497.your-storagebox.de:${repo}"; repository = "sftp:u169497-sub5@u169497.your-storagebox.de:${repo}";
passwordFile = config.sops.secrets."restic_${repo}_repository_password".path; passwordFile = config.sops.secrets."restic_${repo}_repository_password".path;
initialize = true; initialize = true;
@ -224,6 +228,7 @@ in {
]; ];
paths = paths; paths = paths;
exclude = exclude; exclude = exclude;
pruneOpts = pruneOpts;
timerConfig = { timerConfig = {
OnCalendar = "00:05"; OnCalendar = "00:05";
RandomizedDelaySec = "1h"; RandomizedDelaySec = "1h";
@ -231,48 +236,126 @@ in {
}; };
in { in {
backups = { backups = {
documents = mkBackup "documents" ["/tank/documents"] []; documents = mkBackup "documents" ["/tank/documents"] [] ["-d 7" "-w 5" "-m 12"];
images = mkBackup "images" ["/tank/images"] ["/tank/images/import"]; images = mkBackup "images" ["/tank/images"] ["/tank/images/import"] ["-d 7" "-w 5" "-m 12"];
};
};
prometheus.exporters = {
zfs.enable = true;
smartctl = {
enable = true;
devices =
[
"/dev/disk/by-id/ata-Samsung_SSD_840_PRO_Series_S1ATNSAF213446M"
]
++ disks;
};
systemd.enable = true;
node.enable = true;
};
telegraf = {
enable = true;
environmentFiles = [config.sops.secrets."telegraf_api_token".path];
extraConfig = {
inputs = {
influxdb_v2_listener = {
service_address = "127.0.0.1:9998";
};
prometheus = {
urls = [
"http://127.0.0.1:${builtins.toString config.services.prometheus.exporters.zfs.port}"
"http://127.0.0.1:${builtins.toString config.services.prometheus.exporters.smartctl.port}"
"http://127.0.0.1:${builtins.toString config.services.prometheus.exporters.systemd.port}"
"http://127.0.0.1:${builtins.toString config.services.prometheus.exporters.node.port}"
];
};
};
outputs = {
influxdb_v2 = {
urls = ["https://influx.fuckwit.dev"];
token = "\${TELEGRAF_API_TOKEN}";
organization = "fuckwit.dev";
bucket = "world";
timeout = "60s";
};
};
}; };
}; };
nginx = { nginx = {
enable = true; enable = true;
clientMaxBodySize = "500m"; clientMaxBodySize = "500m";
virtualHosts = makeVirtualHosts [ virtualHosts =
# Tasmota devices check /health of the influxdb2 server.
# Telegraf does not provide this endpoint so we fake it via nginx
# https://github.com/influxdata/telegraf/issues/16321
{ {
subdomain = "jdownloader"; "influxdb-proxy.fuckwit.dev" = {
port = 8000; listen = [
{
port = 9999;
addr = "0.0.0.0";
}
];
locations = {
"/health".return = "200 ''";
"/".proxyPass = "http://127.0.0.1:9998";
};
};
} }
{ // makeVirtualHosts [
subdomain = "jellyfin"; {
port = 8096; subdomain = "jdownloader";
} port = 5800;
{ }
subdomain = "sonarr"; {
port = 8989; subdomain = "jellyfin";
} port = 8096;
{ }
subdomain = "radarr"; {
port = 7878; subdomain = "sonarr";
} port = 8989;
{ }
subdomain = "lidarr"; {
port = 8686; subdomain = "radarr";
} port = 7878;
{ }
subdomain = "paperless"; {
port = 28981; subdomain = "lidarr";
} port = 8686;
{ }
subdomain = "homepage"; {
port = 8082; subdomain = "prowlarr";
} port = 9696;
{ }
subdomain = "photoprism"; {
port = 2342; subdomain = "paperless";
} port = 28981;
]; }
{
subdomain = "homepage";
port = 8082;
}
{
subdomain = "photoprism";
port = 2342;
}
{
subdomain = "immich";
port = 2283;
}
{
subdomain = "qbittorrent";
port = 8080;
}
{
subdomain = "shimmie";
port = 8000;
}
];
}; };
paperless = { paperless = {
@ -314,6 +397,8 @@ in {
dataDir = "/var/lib/sonarr"; dataDir = "/var/lib/sonarr";
}; };
prowlarr.enable = true;
jellyfin.enable = true; jellyfin.enable = true;
photoprism = { photoprism = {
@ -324,9 +409,18 @@ in {
settings = { settings = {
PHOTOPRISM_ADMIN_USER = "root"; PHOTOPRISM_ADMIN_USER = "root";
PHOTOPRISM_DEFAULT_LOCALE = "de"; PHOTOPRISM_DEFAULT_LOCALE = "de";
PHOTOPRISM_DETECT_NSFW = "true";
PHOTOPRISM_UPLOAD_NSFW = "true";
}; };
}; };
immich = {
enable = true;
host = "127.0.0.1";
mediaLocation = "/tank/images/immich";
settings.server.externalDomain = "https://immich.fuckwit.dev";
};
homepage-dashboard = { homepage-dashboard = {
enable = true; enable = true;
@ -424,6 +518,8 @@ in {
}; };
hardware = { hardware = {
rtl-sdr.enable = true;
fancontrol = { fancontrol = {
enable = true; enable = true;
config = '' config = ''
@ -451,15 +547,75 @@ in {
backend = "podman"; backend = "podman";
containers = { containers = {
shimmie = {
image = "docker.io/shish2k/shimmie2:latest";
volumes = ["/tank/dump/shimmie:/app/data"];
ports = ["127.0.0.1:8000:8000"];
};
jdownloader = { jdownloader = {
image = "docker.io/jlesage/jdownloader-2:latest"; image = "docker.io/jlesage/jdownloader-2:latest";
autoStart = true; autoStart = true;
ports = ["0.0.0.0:8000:5800"]; networks = ["container:gluetun"];
dependsOn = ["gluetun"];
volumes = [ volumes = [
"jdownloader_config:/config" "jdownloader_config:/config"
"/tank/dump:/output" "/tank/dump:/output"
]; ];
}; };
gluetun = {
image = "docker.io/qmcgaw/gluetun";
autoStart = true;
environment = {
VPN_SERVICE_PROVIDER = "protonvpn";
VPN_TYPE = "wireguard";
VPN_PORT_FORWARDING = "on";
SERVER_COUNTRIES = "Switzerland";
PORT_FORWARD_ONLY = "on";
VPN_PORT_FORWARDING_UP_COMMAND = ''
/bin/sh -c 'wget -O- --retry-connrefused --post-data "json={\"listen_port\":{{PORTS}}}" http://127.0.0.1:8080/api/v2/app/setPreferences 2>&1'
'';
};
environmentFiles = [
config.sops.secrets."protonvpn_wg_private_key".path
];
capabilities = {
NET_ADMIN = true;
};
devices = ["/dev/net/tun"];
ports = [
"127.0.0.1:8080:8080"
"127.0.0.1:5800:5800"
"127.0.0.1:8123:8123"
];
};
qbittorrent = {
image = "lscr.io/linuxserver/qbittorrent:latest";
autoStart = true;
networks = ["container:gluetun"];
environment = {
WEBUI_PORT = "8080";
};
dependsOn = ["gluetun"];
volumes = [
"/var/lib/qbittorrent:/config"
"/tank/dump/torrent:/downloads"
];
};
# qbittorrent-exporter = {
# image = "docker.io/esanchezm/prometheus-qbittorrent-exporter";
# autoStart = true;
# networks = ["container:gluetun"];
# dependsOn = ["qbittorrent"];
# environment = {
# QBITTORRENT_PORT = "8080";
# QBITTORRENT_HOST = "127.0.0.1";
# EXPORTER_PORT = "8123";
# };
# };
}; };
}; };
}; };
@ -477,6 +633,7 @@ in {
script = '' script = ''
while read -r evt file; do while read -r evt file; do
printf "handling $evt for $file"
${pkgs.coreutils}/bin/chown ${user}:${group} "$file" ${pkgs.coreutils}/bin/chown ${user}:${group} "$file"
${pkgs.coreutils}/bin/chmod 775 "$file" ${pkgs.coreutils}/bin/chmod 775 "$file"
done < <(${pkgs.inotify-tools}/bin/inotifywait -e create,move -m -r --format '%e %w%f' ${path}) done < <(${pkgs.inotify-tools}/bin/inotifywait -e create,move -m -r --format '%e %w%f' ${path})
@ -487,6 +644,10 @@ in {
StateDirectory = "dnscrypt-proxy"; StateDirectory = "dnscrypt-proxy";
}; };
podman-qbittorrent.serviceConfig = {
StateDirectory = "qbittorrent";
};
ensure-radarr-perms = ensure-perms "/tank/video/movie" "radarr" "nas"; ensure-radarr-perms = ensure-perms "/tank/video/movie" "radarr" "nas";
ensure-sonarr-perms = ensure-perms "/tank/video/series" "sonarr" "nas"; ensure-sonarr-perms = ensure-perms "/tank/video/series" "sonarr" "nas";
ensure-lidarr-perms = ensure-perms "/tank/audio" "lidarr" "nas"; ensure-lidarr-perms = ensure-perms "/tank/audio" "lidarr" "nas";

View File

@ -21,7 +21,6 @@
forceImportRoot = false; forceImportRoot = false;
extraPools = ["tank"]; extraPools = ["tank"];
}; };
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-uuid/3652c231-d679-42dd-80f1-e9afccb4ca13"; device = "/dev/disk/by-uuid/3652c231-d679-42dd-80f1-e9afccb4ca13";
@ -34,6 +33,7 @@
allowDiscards = true; allowDiscards = true;
keyFileSize = 4096; keyFileSize = 4096;
keyFile = "/dev/disk/by-id/usb-Generic_Flash_Disk_D5A325A0-0:0"; keyFile = "/dev/disk/by-id/usb-Generic_Flash_Disk_D5A325A0-0:0";
tryEmptyPassphrase = true;
}; };
}; };

View File

@ -5,6 +5,8 @@ photoprism-password-file: ENC[AES256_GCM,data:a0fqrjRDc2M=,iv:H/kLPIJsti8QsOJjwP
restic_ssh_key: ENC[AES256_GCM,data:NK7WXhnnueZ6kVZJnjShZ/QaNXINrJ6+youN3EPBmNjiLBTJHFg4LVR3MCU1GaK2HJpbz3qEJa/kto9LPONRR0F6LO6/7U17O0fdzF7Ca7u4xHI7uKBE6x9/dhd5MHJ2yQpEUwJnTB6i/++OcbSfTJmp062jTgWxdarngt6skx0m5JIlu6lhLKyFzGa+cBIesFItredQ2SJroUC4rK3CiQLutuaBlhw90wys3T2uTtRRgzQ08AF90+JY5jqflZposQPT0ox+xEegOyZ4UJxX2WToxD998N7/eETxo2E94zL/5f2mGoubDxwPTZp8cPX+1g85tFjhn361OSgHBwgRRT3rs/js1xZkQQO2McKPyGZVHOzQ0GSrpvxiSiUZk8/49eynEkWUsY2YXQxvl3/s6r/Toh9Wbr9mo3X67A2phTx1beEnU8XMwWS/5ZnqtFNHvxC6tfkAIwblNvCc9mTigSYhOji9TBpcZNOCumY/MYzGSCzxSFXcOnsKZKjxdE3ByHFKcMvJ+uiaav000MbdplOOsYLCSpdQAAZH,iv:JFcu2GO8k7awfB8RV17tcFj5KhXmUxnzjnoEdmMaqxc=,tag:awy4njmuS/l5CCFqWdsy3A==,type:str] restic_ssh_key: ENC[AES256_GCM,data:NK7WXhnnueZ6kVZJnjShZ/QaNXINrJ6+youN3EPBmNjiLBTJHFg4LVR3MCU1GaK2HJpbz3qEJa/kto9LPONRR0F6LO6/7U17O0fdzF7Ca7u4xHI7uKBE6x9/dhd5MHJ2yQpEUwJnTB6i/++OcbSfTJmp062jTgWxdarngt6skx0m5JIlu6lhLKyFzGa+cBIesFItredQ2SJroUC4rK3CiQLutuaBlhw90wys3T2uTtRRgzQ08AF90+JY5jqflZposQPT0ox+xEegOyZ4UJxX2WToxD998N7/eETxo2E94zL/5f2mGoubDxwPTZp8cPX+1g85tFjhn361OSgHBwgRRT3rs/js1xZkQQO2McKPyGZVHOzQ0GSrpvxiSiUZk8/49eynEkWUsY2YXQxvl3/s6r/Toh9Wbr9mo3X67A2phTx1beEnU8XMwWS/5ZnqtFNHvxC6tfkAIwblNvCc9mTigSYhOji9TBpcZNOCumY/MYzGSCzxSFXcOnsKZKjxdE3ByHFKcMvJ+uiaav000MbdplOOsYLCSpdQAAZH,iv:JFcu2GO8k7awfB8RV17tcFj5KhXmUxnzjnoEdmMaqxc=,tag:awy4njmuS/l5CCFqWdsy3A==,type:str]
restic_documents_repository_password: ENC[AES256_GCM,data:rcQ5PsvJW2i3e2v1FqbqCOoqiblqFDsqRifzY6YxIKZTNSNrRPgqUduqei/0aSGJTNG+zYS4YRCooCZ/E7mYFg==,iv:IO6OGY+Dfai0Hl/NWT7bqqhTkfhXlUqqnJyQjm87fSw=,tag:K3D112tm+kC5OpEF2t+oZQ==,type:str] restic_documents_repository_password: ENC[AES256_GCM,data:rcQ5PsvJW2i3e2v1FqbqCOoqiblqFDsqRifzY6YxIKZTNSNrRPgqUduqei/0aSGJTNG+zYS4YRCooCZ/E7mYFg==,iv:IO6OGY+Dfai0Hl/NWT7bqqhTkfhXlUqqnJyQjm87fSw=,tag:K3D112tm+kC5OpEF2t+oZQ==,type:str]
restic_images_repository_password: ENC[AES256_GCM,data:yNWUqZ9ddkfD15mO7NocUYwqNWPaTHXfLkMNq7yy5xgSG4I3G01mFTt5qCPbZ0n+Y6DFlhDQBLAC5SwOvVNggA==,iv:LqA7TG9TS7eyHZ/xqF+L1w5imPdogQGH0DyokaQj4Bc=,tag:1OLRp7VO8Lfy1nQcUr3OWA==,type:str] restic_images_repository_password: ENC[AES256_GCM,data:yNWUqZ9ddkfD15mO7NocUYwqNWPaTHXfLkMNq7yy5xgSG4I3G01mFTt5qCPbZ0n+Y6DFlhDQBLAC5SwOvVNggA==,iv:LqA7TG9TS7eyHZ/xqF+L1w5imPdogQGH0DyokaQj4Bc=,tag:1OLRp7VO8Lfy1nQcUr3OWA==,type:str]
protonvpn_wg_private_key: ENC[AES256_GCM,data:cm4ytBg2lMDDppx50JxmEX8lC+x5bessRmIk60iSuYYCtb7DTlkcwROivz7oG/x1DXjvxjLPW9Y5wEE3GxXD8xo1,iv:B6TeBVC0d6S3XNhv7nSiuVI7nr3M1LeqYMuv0AxvG2c=,tag:RvhSLKRv1FDNntHFvtrelw==,type:str]
telegraf_api_token: ENC[AES256_GCM,data:pCNHkdKlBhYW+IJuvdLgAsk2oXVIowvCVwy2uvJIJQ8DdtRgYgR4JIMcz4l8u+yTPyRPGSqdXnkojNeB9O7T8FM25lklrcRfeKL3ofSY8RJ1FiovcEGYjESi/A7sgrETFMD2QIO0kmZ+3qM=,iv:PKm2hp6+aInR2+AglHImjxIPBFU0FRjpMklranVgjiM=,tag:T/88jJJjkgYxisKZtZAyQg==,type:str]
sops: sops:
kms: [] kms: []
gcp_kms: [] gcp_kms: []
@ -20,8 +22,8 @@ sops:
K0RaVVNSczZBcDNtaXhGem5iQnlVTDAK+XogkPQD2xYQ7sW8DwAXaaLA/ftw6vZM K0RaVVNSczZBcDNtaXhGem5iQnlVTDAK+XogkPQD2xYQ7sW8DwAXaaLA/ftw6vZM
wsNs0uun9dgGjZIXcU6AIsrJeUiWBl5zgc6CCd/ad/3QxpmKj1p9Mg== wsNs0uun9dgGjZIXcU6AIsrJeUiWBl5zgc6CCd/ad/3QxpmKj1p9Mg==
-----END AGE ENCRYPTED FILE----- -----END AGE ENCRYPTED FILE-----
lastmodified: "2024-11-18T18:21:19Z" lastmodified: "2025-03-29T14:12:23Z"
mac: ENC[AES256_GCM,data:3QqYfYJpIb1kcd6Kh92BbfQIBrsniet3HYVR56V5g/eHRwJpy526A8Gpntc0vdu7Adpv/bbaaPzmCTeanhEXwXB38iXnEsWSsUBn/KyT0bhIi7HcXNfRM6al7cWA6YBwSyy12ElD0Bf/fX2ptUId39tOj3yr7Rg4VaXMr9gEsMk=,iv:s5LlkeHcjoqWeQDBQmoOTZWI7L18bJi/yz3yv8uGoSM=,tag:FH/CbzCyqBp1ebeKIPox8g==,type:str] mac: ENC[AES256_GCM,data:5og1eH8IKVj0UHPgv1qVyC+VgjL1uf7uuJR3w0Y8qqAwNjhyifCTLVRxIg+3EPKQH+w5H0uIovmnlPdRCdwDbkysBkFL6xAlDszouEDX5F+S5ZOZkpONSieeCNG+obVO1PLstLffb+Rh2OR4hhi0xH6D8ryH0yqe7o0tZROBaqo=,iv:Tw6EC4pZcrF4k2H89ZVKlDPT40x02cOrNVH6e57bIGU=,tag:luYMemQCAjHu9D9JgfvpCw==,type:str]
pgp: pgp:
- created_at: "2024-01-25T08:00:56Z" - created_at: "2024-01-25T08:00:56Z"
enc: |- enc: |-
@ -36,4 +38,4 @@ sops:
-----END PGP MESSAGE----- -----END PGP MESSAGE-----
fp: 5FA64909521A5C85992F26E0F819AEFF941BB849 fp: 5FA64909521A5C85992F26E0F819AEFF941BB849
unencrypted_suffix: _unencrypted unencrypted_suffix: _unencrypted
version: 3.9.1 version: 3.9.4

View File

@ -1,11 +1,10 @@
{ {
self, self,
nixpkgs, nixpkgs,
nixpkgs-stable,
sops-nix, sops-nix,
home-manager,
lanzaboote, lanzaboote,
simple-nixos-mailserver, simple-nixos-mailserver,
nixvim,
inputs, inputs,
... ...
}: let }: let
@ -52,7 +51,7 @@
}: }:
np.lib.nixosSystem { np.lib.nixosSystem {
inherit system; inherit system;
specialArgs = {mypkgs = customPkgs."${system}";}; specialArgs = {mypkgs = customPkgs."${system}" // { nixvim = nixvim.packages.${system}.default;};};
modules = modules =
defaultModules defaultModules
++ [ ++ [
@ -92,7 +91,7 @@ in {
np = nixpkgs; np = nixpkgs;
system = "x86_64-linux"; system = "x86_64-linux";
ip = "192.168.1.11"; ip = "192.168.1.11";
# remoteBuild = false; remoteBuild = false;
file = ./celestia/configuration.nix; file = ./celestia/configuration.nix;
}; };

View File

@ -6,6 +6,8 @@
... ...
}: { }: {
imports = [./hardware-configuration.nix]; imports = [./hardware-configuration.nix];
sops.defaultSopsFile = ./secrets.yaml;
sops.secrets."tailscale-auth-key" = {};
boot.bootspec.enable = true; boot.bootspec.enable = true;
boot.loader.systemd-boot.enable = lib.mkForce false; boot.loader.systemd-boot.enable = lib.mkForce false;
@ -14,7 +16,6 @@
pkiBundle = "/etc/secureboot"; pkiBundle = "/etc/secureboot";
}; };
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_6_11;
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
@ -33,21 +34,26 @@
extraPackages = [pkgs.vaapiVdpau]; extraPackages = [pkgs.vaapiVdpau];
}; };
hardware.rtl-sdr.enable = true;
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
security.pam.services.swaylock = {}; security.pam.services.swaylock = {};
security.pam.services.hyprlock = {};
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
font-awesome font-awesome
(nerdfonts.override {fonts = ["FiraMono"];}) nerd-fonts.fira-mono
mypkgs.comic-mono mypkgs.comic-mono
]; ];
services = { services = {
illum.enable = true; illum.enable = true;
fwupd.enable = true; fwupd.enable = true;
fprintd.enable = false; # currently broken fprintd.enable = true; # currently broken
pcscd.enable = true; pcscd.enable = true;
udisks2.enable = true;
tlp = { tlp = {
enable = true; enable = true;
settings = { settings = {
@ -97,6 +103,14 @@
lidSwitchExternalPower = "ignore"; lidSwitchExternalPower = "ignore";
extraConfig = "HoldoffTimeoutSec=300s"; extraConfig = "HoldoffTimeoutSec=300s";
}; };
tailscale = {
enable = true;
extraUpFlags = [
"--accept-routes=true"
];
authKeyFile = config.sops.secrets."tailscale-auth-key".path;
};
}; };
services.pipewire = { services.pipewire = {
@ -111,7 +125,7 @@
users.users.patrick = { users.users.patrick = {
isNormalUser = true; isNormalUser = true;
extraGroups = ["wheel"]; extraGroups = ["wheel" "plugdev"];
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [

View File

@ -0,0 +1,33 @@
tailscale-auth-key: ENC[AES256_GCM,data:jReYmVBmruNXXOlB9ep1Vx84XSKA8JAPReuxXglPMNDCUOIaX2S7zPuxAJp4KYhE91CnCNzprW/rdGejMw==,iv:251dyqcTqRh6N/lM07spgcyBnsxvwTdhKXdM45hepTc=,tag:/JqRTN80TJmA3H06Efbx8A==,type:str]
sops:
kms: []
gcp_kms: []
azure_kv: []
hc_vault: []
age:
- recipient: age18kc63lpfutqlw505fkqagumqup6dtpudajeaheueuaf0frjpdc3suz49qk
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBGQ29IUmRFcjNXNFRVZDh5
ZGE0YUJxYmFITHJ1N1RtVkNHbnpBYS9IM0g0CmFWak94ZE9BR2x2cHhrTkxxVWVn
czlRNUJoSm5FUVVPQVdXMnp6V1dMRjAKLS0tIFNUWVNCMEhjbEpjUXhRS05QTFpL
bk1raG5pVE10ZEh1RXdYUXY0ZkVkUW8K5JWNqbd6k6slfOR9xfc6a58tdouElwlX
w4MzIE7dUlqYux4MxbTzXhnX/A3D2oXg60Ya5rKqakgnAYvWlNwwAw==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2024-11-25T15:49:24Z"
mac: ENC[AES256_GCM,data:GQcgu7CWkUPrcsYlSK8rbnZIu3Ph/q5ohEt2F46Q5afEh2j0aQQfdlO7suFUmO93qoQ4Z4qo6HmSsqajR5QTMvWMjERSdAYh8WiX64zgnxzYD32GCLjvtp3NSraIHy5RsnX/+4vNDsGVq1pJIEr6McWuvxuuZ3cT2JbHiui8cGI=,iv:GkHo9aM6JXM1+kY42au7Rm3fJrqOnncKLxLC52JrVUw=,tag:7Ua+LTsfihrr+qcVhKvJPA==,type:str]
pgp:
- created_at: "2024-11-25T15:46:53Z"
enc: |-
-----BEGIN PGP MESSAGE-----
hF4DMGJRmcuHhnsSAQdAIUNST8klTbwju58Y6yBe8tZtn0yK4hCrocSfV5qAOz8w
eDZyWmShWVeAMIksZPJthyq2GmExd6S+BPjgn6sLmeaDBHzUsLV2lexpGSTif6MW
1GgBCQIQVijI8dBnboVzsQHN1Yaj9Ntfb++u29TBmYiXLm455jsr/Aqwp8I9ZM0P
tMPkxT6kHebICXpsbZvkSxv3kaPK1+TBGZkk8VEZxZZBl7NpvCAKufOiCHU/sH8I
UOJGtqbpiWwqJQ==
=qjQD
-----END PGP MESSAGE-----
fp: 5FA64909521A5C85992F26E0F819AEFF941BB849
unencrypted_suffix: _unencrypted
version: 3.9.1

View File

@ -17,7 +17,7 @@
preLVM = true; preLVM = true;
}; };
}; };
boot.kernelPackages = pkgs.linuxPackages_6_11; boot.kernelPackages = pkgs.linuxPackages_6_6;
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";
@ -135,7 +135,7 @@
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
font-awesome font-awesome
(nerdfonts.override {fonts = ["FiraMono"];}) nerd-fonts.fira-mono
mypkgs.comic-mono mypkgs.comic-mono
]; ];

View File

@ -1,19 +1,45 @@
{ {
config, config,
pkgs, pkgs,
lib,
... ...
}: let }: let
makeVirtualHost = {
subdomain,
port,
}: {
name = "${subdomain}.fuckwit.dev";
value = {
forceSSL = true;
useACMEHost = "fuckwit.dev";
locations."/" = {
proxyPass = "http://127.0.0.1:${builtins.toString port}";
proxyWebsockets = true;
};
};
};
makeVirtualHosts = sites: builtins.listToAttrs (builtins.map makeVirtualHost sites);
mkWellKnown = data: '' mkWellKnown = data: ''
default_type application/json; default_type application/json;
add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Origin *;
return 200 '${builtins.toJSON data}'; return 200 '${builtins.toJSON data}';
''; '';
secretFile = name: config.sops.secrets.${name}.path;
in { in {
sops.defaultSopsFile = ./secrets.yaml; sops.defaultSopsFile = ./secrets.yaml;
sops.secrets."gitea.env" = {}; sops.secrets."acme.env" = {};
sops.secrets."keycloak_db_pw" = {};
sops.secrets."restic_mail_repository_password" = {}; sops.secrets."restic_mail_repository_password" = {};
sops.secrets."restic_ssh_key" = {}; sops.secrets."restic_ssh_key" = {};
sops.secrets."act-runner-token" = {};
sops.secrets."gitlab-db-password".owner = config.users.users.gitlab.name;
sops.secrets."gitlab-initial-root-pw".owner = config.users.users.gitlab.name;
sops.secrets."gitlab-db-key-base".owner = config.users.users.gitlab.name;
sops.secrets."gitlab-secret-key-base".owner = config.users.users.gitlab.name;
sops.secrets."gitlab-otp-key-base".owner = config.users.users.gitlab.name;
sops.secrets."gitlab-jws-key-pem".owner = config.users.users.gitlab.name;
sops.secrets."gitlab-runner-authentication-file" = {};
imports = [ imports = [
./mail.nix ./mail.nix
@ -22,6 +48,7 @@ in {
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.kernel.sysctl."net.ipv4.ip_forward" = true;
networking = { networking = {
hostName = "primordial"; hostName = "primordial";
@ -50,8 +77,20 @@ in {
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
security.acme.acceptTerms = true; security.acme = {
security.acme.defaults.email = "huanzodev@gmail.com"; acceptTerms = true;
defaults = {
email = "acme@fuckwit.dev";
dnsProvider = "cloudflare";
environmentFile = secretFile "acme.env";
dnsPropagationCheck = true;
};
certs."fuckwit.dev" = {
extraDomainNames = ["*.fuckwit.dev"];
};
};
users.users.nginx.extraGroups = ["acme"];
services = { services = {
openssh = { openssh = {
@ -80,6 +119,41 @@ in {
''; '';
}; };
gitlab = {
enable = true;
https = true;
host = "gitlab.fuckwit.dev";
port = 443;
databasePasswordFile = secretFile "gitlab-db-password";
initialRootPasswordFile = secretFile "gitlab-initial-root-pw";
secrets = {
secretFile = secretFile "gitlab-secret-key-base";
otpFile = secretFile "gitlab-otp-key-base";
dbFile = secretFile "gitlab-db-key-base";
jwsFile = secretFile "gitlab-jws-key-pem";
};
registry = {
enable = true;
package = pkgs.gitlab-container-registry;
defaultForProjects = true;
externalAddress = "https://registry-git.fuckwit.dev";
externalPort = 443;
keyFile = "/run/gitlab/registry.pem";
certFile = "/run/gitlab/registry.crt";
};
};
gitlab-runner = {
enable = true;
services = {
default = {
authenticationTokenConfigFile = secretFile "gitlab-runner-authentication-file";
dockerImage = "debian:stable";
};
};
};
matrix-synapse = { matrix-synapse = {
enable = true; enable = true;
settings.server_name = "fuckwit.dev"; settings.server_name = "fuckwit.dev";
@ -113,97 +187,73 @@ in {
recommendedGzipSettings = true; recommendedGzipSettings = true;
recommendedOptimisation = true; recommendedOptimisation = true;
virtualHosts."fuckwit.dev" = let virtualHosts =
serverConfig."m.server" = "matrix.fuckwit.dev:443"; {
clientConfig."m.homeserver".base_url = "https://matrix.fuckwit.dev:443"; "fuckwit.dev" = let
in { serverConfig."m.server" = "matrix.fuckwit.dev:443";
enableACME = true; clientConfig."m.homeserver".base_url = "https://matrix.fuckwit.dev:443";
forceSSL = true; in {
# This section is not needed if the server_name of matrix-synapse is equal to useACMEHost = "fuckwit.dev";
# the domain (i.e. example.org from @foo:example.org) and the federation port forceSSL = true;
# is 8448. # This section is not needed if the server_name of matrix-synapse is equal to
# Further reference can be found in the docs about delegation under # the domain (i.e. example.org from @foo:example.org) and the federation port
# https://element-hq.github.io/synapse/latest/delegate.html # is 8448.
locations."= /.well-known/matrix/server".extraConfig = mkWellKnown serverConfig; # Further reference can be found in the docs about delegation under
# This is usually needed for homeserver discovery (from e.g. other Matrix clients). # https://element-hq.github.io/synapse/latest/delegate.html
# Further reference can be found in the upstream docs at locations."= /.well-known/matrix/server".extraConfig = mkWellKnown serverConfig;
# https://spec.matrix.org/latest/client-server-api/#getwell-knownmatrixclient # This is usually needed for homeserver discovery (from e.g. other Matrix clients).
locations."= /.well-known/matrix/client".extraConfig = mkWellKnown clientConfig; # Further reference can be found in the upstream docs at
}; # https://spec.matrix.org/latest/client-server-api/#getwell-knownmatrixclient
locations."= /.well-known/matrix/client".extraConfig = mkWellKnown clientConfig;
};
virtualHosts."matrix.fuckwit.dev" = { "matrix.fuckwit.dev" = {
enableACME = true; useACMEHost = "fuckwit.dev";
forceSSL = true; forceSSL = true;
# It's also possible to do a redirect here or something else, this vhost is not # It's also possible to do a redirect here or something else, this vhost is not
# needed for Matrix. It's recommended though to *not put* element # needed for Matrix. It's recommended though to *not put* element
# here, see also the section about Element. # here, see also the section about Element.
locations."/".extraConfig = '' locations."/".extraConfig = ''
return 404; return 404;
''; '';
# Forward all Matrix API calls to the synapse Matrix homeserver. A trailing slash # Forward all Matrix API calls to the synapse Matrix homeserver. A trailing slash
# *must not* be used here. # *must not* be used here.
locations."/_matrix".proxyPass = "http://127.0.0.1:8005"; locations."/_matrix".proxyPass = "http://127.0.0.1:8005";
# Forward requests for e.g. SSO and password-resets. # Forward requests for e.g. SSO and password-resets.
locations."/_synapse/client".proxyPass = "http://127.0.0.1:8005"; locations."/_synapse/client".proxyPass = "http://127.0.0.1:8005";
}; };
virtualHosts."vault.fuckwit.dev" = { "gitlab.fuckwit.dev" = {
enableACME = true; useACMEHost = "fuckwit.dev";
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:8000"; proxyPass = "http://unix:/run/gitlab/gitlab-workhorse.socket";
}; };
}; };
}
virtualHosts."git.fuckwit.dev" = { // makeVirtualHosts [
enableACME = true; {
forceSSL = true; subdomain = "vault";
port = 8000;
locations."/" = { }
proxyPass = "http://127.0.0.1:8001"; {
}; subdomain = "git";
}; port = 8001;
}
virtualHosts."grafana.fuckwit.dev" = { {
enableACME = true; subdomain = "grafana";
forceSSL = true; port = 8002;
}
locations."/" = { {
proxyPass = "http://127.0.0.1:8002"; subdomain = "influx";
proxyWebsockets = true; port = 8003;
}; }
}; {
subdomain = "registry-git";
virtualHosts."influx.fuckwit.dev" = { port = 4567;
enableACME = true; }
addSSL = true; ];
locations."/" = {
proxyPass = "http://127.0.0.1:8003";
proxyWebsockets = true;
};
};
virtualHosts."sso.fuckwit.dev" = {
enableACME = true;
addSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8004";
proxyWebsockets = true;
};
};
# virtualHosts."drone.fuckwit.dev" = {
# enableACME = true;
# addSSL = true;
# locations."/" = {
# proxyPass = "http://127.0.0.1:8004";
# proxyWebsockets = true;
# };
# };
}; };
vaultwarden = { vaultwarden = {
@ -231,6 +281,22 @@ in {
lfs.enable = true; lfs.enable = true;
}; };
gitea-actions-runner.instances = {
docker-runner = {
enable = true;
name = "primordial-docker";
url = "https://git.fuckwit.dev";
tokenFile = config.sops.secrets."act-runner-token".path;
labels = [
"ubuntu-latest:docker://node:16-bullseye"
];
settings = {
runner.capacity = 5;
cache.enabled = false;
};
};
};
grafana = { grafana = {
enable = true; enable = true;
@ -267,36 +333,14 @@ in {
}; };
}; };
}; };
# keycloak = {
# enable = true;
#
# database = {
# type = "postgresql";
# createLocally = true;
# passwordFile = config.sops.secrets."keycloak_db_pw".path;
# };
#
# settings = {
# hostname = "sso.fuckwit.dev";
# http-host = "127.0.0.1";
# http-port = 8004;
# proxy = "edge";
# };
# };
# drone-server = {
# enable = true;
# config = {
# giteaServer = "https://git.fuckwit.dev";
# serverHost = "drone.fuckwit.dev";
# serverPort = ":8004";
# serverProto = "https";
# };
# environmentFile = config.sops.secrets."gitea.env".path;
# };
}; };
virtualisation.podman = {
enable = true;
dockerSocket.enable = true;
};
virtualisation.docker.enable = lib.mkForce false;
users.users."root".openssh.authorizedKeys.keys = [ users.users."root".openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP8zNAXScQ4FoWNxF4+ALJXMSi3EbpqZP5pO9kfg9t8o patrick@NBG1-DC3-PC20-2017-10-24" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP8zNAXScQ4FoWNxF4+ALJXMSi3EbpqZP5pO9kfg9t8o patrick@NBG1-DC3-PC20-2017-10-24"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPflDQOANGhgtfo2psRwSFtY5ETHX/bsDmqrho3iX9jt root@arschlinux" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPflDQOANGhgtfo2psRwSFtY5ETHX/bsDmqrho3iX9jt root@arschlinux"

View File

@ -16,6 +16,7 @@
}; };
}; };
certificateScheme = "acme-nginx"; certificateScheme = "acme";
acmeCertificateName = "fuckwit.dev";
}; };
} }

View File

@ -1,12 +1,15 @@
gitea.env: ENC[AES256_GCM,data:wkSPzLQtL3vGNIjG+jG6I3+R7wLBBdXeaCHbKxMbpVOldo8zrPLu8HdoryneRro58d7D9Cao9x+n5SvYNfGwHPgDJG8saXTeyEffIWIKNC+5+8fjiWwIkAvstckmZjSLitVxcwhifs49jmZgW/xQBPEPiAHzVkjeueV7p/Jm9WgyD2ycPrKUvNEYJ6DWZqQq9r10Y/KsRZsvRzF2cp6YeX7YGjW7E2wuQz9yy8gOFHxmoJxAc4zM7XaKZWKtow1UPCjTtxiY7qRkWK7KQt21Xf3FCsU=,iv:qQv7hbqh3Kl6sE/XW37D9AbYt4gLJw5BnfbbLIkzOd4=,tag:g6Cecvdb67W01HvIULNzsQ==,type:str] acme.env: ENC[AES256_GCM,data:+EwmrLsjjOvvXOBgbI5T2e98pJ+PImvbaCd5/9cvqmPWurzGe1H2fjBOguDf5Mb64eZXaL7jbZxeTqT1T/w32+Y=,iv:tBuFM3V6jW7M3eXb2cwK8ZoKqfEfMxHC31GvF0GTOJs=,tag:Z/vDDFAp2cY7UarPWT/ykg==,type:str]
keycloak_db_pw: ENC[AES256_GCM,data:1oBqzpFokAmjkT770YKYwzCllaGTprtDR9W4B/+V6ZUXPhJ1R9DNWZHqpQ==,iv:dK36GBiDj12HVjUkZqTVk/rR6s1sf6dmQTk1ZJQwi+I=,tag:6Ix9QSf+A0U82sG0z8wSmw==,type:str]
restic_mail_repository_password: ENC[AES256_GCM,data:B2XAP9tnztl/c7HB7bHywfJcwV9sLahfqCfI0TajWaWHPhRsZow4yxhn813FN4pINb5i1kYyiRG/sMXMKAFo9g==,iv:pQnVRVtuhcVtH/Kot9hcx8DSA4qlkksuUiY8HaOawfk=,tag:4lbmh8bQDSVNbI06/gNUlQ==,type:str] restic_mail_repository_password: ENC[AES256_GCM,data:B2XAP9tnztl/c7HB7bHywfJcwV9sLahfqCfI0TajWaWHPhRsZow4yxhn813FN4pINb5i1kYyiRG/sMXMKAFo9g==,iv:pQnVRVtuhcVtH/Kot9hcx8DSA4qlkksuUiY8HaOawfk=,tag:4lbmh8bQDSVNbI06/gNUlQ==,type:str]
restic_ssh_key: ENC[AES256_GCM,data:HpS73OEFvqSLYg8Qh1syJEjCfv5og5VxxzK2VPmAFRk5BzM4xF3Dn0cmJtQpwMMwaRGRWFdCTMrQCBWRrLgDt7wUyMpBn1HivLr4nwEOU4oDStv+1zKmrNbWLSYw3TbHoNJ2K+C46lfpV9CBdb+8dmv2vto6HoKFrOYc5/ftYd7lD9zMhueAMCc3q7aPsIFGb2TRGNz1wrF6Cn9ew1Oqh/P7xlUuIgS0kAKRrybhiIO9IUgQsTV3qqZIXogP4Yy2OLSyhbtDuvtLAncL2pJ/ZsGme47G8HoFomyqEIf0eq7YKqlpTqKPbbnxfWSlWYGg+l9OtCJOeyp5oEZ6sjPNdTUYjpcVZpHNEEa2zkaZzRj5Jo/GIiJfCu4F0kk4opbqEUTeDQHgesylxwpd/v5zaplGEqpYZ7y/DAud+YUw7XWYWjy60kjlZdkbKwrL/Cg4dxWY8Cc7v42Ve7aADgSEpEhwo5rHxM3JSVHHHunfC6y+/Qin26wQZhF1w+d8/yqSaJidx6FsDSipGCJtXa9liIG7oG2vUlmYm4rE,iv:d/AFzPAJGSGv1WzQY4+p8mImFoWKkaoMRtIBNAYiU0E=,tag:mdE/e2VX5zdrFT43NZaYNQ==,type:str] restic_ssh_key: ENC[AES256_GCM,data:HpS73OEFvqSLYg8Qh1syJEjCfv5og5VxxzK2VPmAFRk5BzM4xF3Dn0cmJtQpwMMwaRGRWFdCTMrQCBWRrLgDt7wUyMpBn1HivLr4nwEOU4oDStv+1zKmrNbWLSYw3TbHoNJ2K+C46lfpV9CBdb+8dmv2vto6HoKFrOYc5/ftYd7lD9zMhueAMCc3q7aPsIFGb2TRGNz1wrF6Cn9ew1Oqh/P7xlUuIgS0kAKRrybhiIO9IUgQsTV3qqZIXogP4Yy2OLSyhbtDuvtLAncL2pJ/ZsGme47G8HoFomyqEIf0eq7YKqlpTqKPbbnxfWSlWYGg+l9OtCJOeyp5oEZ6sjPNdTUYjpcVZpHNEEa2zkaZzRj5Jo/GIiJfCu4F0kk4opbqEUTeDQHgesylxwpd/v5zaplGEqpYZ7y/DAud+YUw7XWYWjy60kjlZdkbKwrL/Cg4dxWY8Cc7v42Ve7aADgSEpEhwo5rHxM3JSVHHHunfC6y+/Qin26wQZhF1w+d8/yqSaJidx6FsDSipGCJtXa9liIG7oG2vUlmYm4rE,iv:d/AFzPAJGSGv1WzQY4+p8mImFoWKkaoMRtIBNAYiU0E=,tag:mdE/e2VX5zdrFT43NZaYNQ==,type:str]
act-runner-token: ENC[AES256_GCM,data:QEiYYYg8fZQIwVPT+vG2Eo8JO9y5PgVJBm5E1UlujANigQKvVkhPbVtulIB1Fg==,iv:V88x7xqYlbZuawPFU824bZtvM/b44BBVIjhnmtdYCwo=,tag:PgQcH1nkRpHCiBBMCSXfxg==,type:str]
gitlab-db-password: ENC[AES256_GCM,data:2TEOCeTjbD+SddZej0Bt2nXiJO032IT4Z43I49ChW18=,iv:65G3bjLO+ebhJfG8DEWG7EImsLheR7YUxikU6x+xj0M=,tag:GoQBrYPAlzdz7oscL2ie6A==,type:str]
gitlab-initial-root-pw: ENC[AES256_GCM,data:Q+0cg6lNctY=,iv:Z+9AlxlQ5YsEWg+ff1rPWfiBDJM/wAqvNKPHQ+s8CiA=,tag:1PVqV8qXLyiKDwr02sg9tA==,type:str]
gitlab-db-key-base: ENC[AES256_GCM,data:zzuYk07Tk4ti4k0y/lSDqrhDxdr5YqqKP5DUl0nCO1s=,iv:nKC3OkOxo+CrGTBvDPQkjps5OYrO/QPtGTY6uQsAUi4=,tag:tgRK3oUD9ZJy/DtKVkawDg==,type:str]
gitlab-secret-key-base: ENC[AES256_GCM,data:wXaad/yooHobhuKS+BFxiy29g0iUmFn5rLRmEMWchoQ=,iv:6JFjgkfgfTNr59v+PvIKItYJXtycGffmc7gJtyeHzMg=,tag:Nll20xSIXd2DoWcd1MJojw==,type:str]
gitlab-otp-key-base: ENC[AES256_GCM,data:3LGpjpqaQdeO7v3waFCZDVVKtgXl3h0N/XiBcqlW2Kc=,iv:Kk1Af6FoTs+kejHmTL3FXoQJ9XAV+2J5+xC+heGbKu4=,tag:EI0agVoGUVEqphCCFfRwLA==,type:str]
gitlab-jws-key-pem: ENC[AES256_GCM,data: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,iv:/+l13lQ/8tvLt+SHO03H8dBsUyoIDVhfas1v2n1RYPc=,tag:3Q91nWeZT8PQo/EWq8/6DQ==,type:str]
gitlab-runner-authentication-file: ENC[AES256_GCM,data:M0dn62YNywEs08eHM0EcLJJfldsqlxrdeyJJSzp7yS3EO1umQPoPrlNnrZpwjLH2EDyMP81M/S5kPoR70ckB0LYt4w2d7Iao+6/WCvIGrhhN5WPejvg=,iv:qopX16X0dfrzjQ1vMuxWIouV96dig70iDU6dX4Y4Lc0=,tag:ZVac+M3OyMtLbJWM/1CPMA==,type:str]
sops: sops:
kms: []
gcp_kms: []
azure_kv: []
hc_vault: []
age: age:
- recipient: age12u7ayy2q5dps2pcpc6z7962pz07jxv3tt03hna6jyumlu4fdjvtqdg2n3e - recipient: age12u7ayy2q5dps2pcpc6z7962pz07jxv3tt03hna6jyumlu4fdjvtqdg2n3e
enc: | enc: |
@ -17,8 +20,8 @@ sops:
V1h2NGxyNVc3WnF2ZFBpQm1oK1AzeGcK4GoD2E8nwOl/WKtgMgs0Y1Q8abRX4mpy V1h2NGxyNVc3WnF2ZFBpQm1oK1AzeGcK4GoD2E8nwOl/WKtgMgs0Y1Q8abRX4mpy
GdHGDQUWvySCisJo4JXsooYkLjOyKvir+vcVbX4nDd4L1W2OMULkrg== GdHGDQUWvySCisJo4JXsooYkLjOyKvir+vcVbX4nDd4L1W2OMULkrg==
-----END AGE ENCRYPTED FILE----- -----END AGE ENCRYPTED FILE-----
lastmodified: "2024-11-17T19:36:07Z" lastmodified: "2025-04-05T16:20:30Z"
mac: ENC[AES256_GCM,data:htvYIuHrOZ8jyVPVW7mVeTtf1eefwYkkZJ0l3xLFsVcCBlU3CjDgx+J9WN0kHw6TP+cP/+StYOtAthFe6UpoF8pmCvI+dKysrN6iLmqZySmh576YOY0Aq83WO4UOawZbarx8VUqTFdBrdp2bnMEjJ4bYvoTRuvAkQZocP8BK460=,iv:W8W8IZeviuUjE1Zz0x5m1/py/Zmx6rwl1ndVXfaR+DE=,tag:QXj9FZVk+H8ztI1VEFLyOQ==,type:str] mac: ENC[AES256_GCM,data:eofNTFKPcT8oyhhjyEXtoLsNpaXZh+cinYARB6+cgNQiDSmrT4nO8V4VS6EWcL6RAqGLtd0UkEhHJN05JMrwyS3teCeC+/2opqJa0XN8OeYZSSUfDEW5ilN7Ms7UW1+2N/7FkJgvEkpAA08HCUoDdruRb0HPYG74RmTy2Q2Wz/Q=,iv:Nffwz6l1qBHvsMri3JhNY1xJqgcB/LGjZ6tDQeG8n50=,tag:/LDX2/MWvpaLwfJuqZ0zQQ==,type:str]
pgp: pgp:
- created_at: "2024-01-25T11:10:44Z" - created_at: "2024-01-25T11:10:44Z"
enc: |- enc: |-
@ -33,4 +36,4 @@ sops:
-----END PGP MESSAGE----- -----END PGP MESSAGE-----
fp: 5FA64909521A5C85992F26E0F819AEFF941BB849 fp: 5FA64909521A5C85992F26E0F819AEFF941BB849
unencrypted_suffix: _unencrypted unencrypted_suffix: _unencrypted
version: 3.9.1 version: 3.10.1

View File

@ -2,8 +2,6 @@
self, self,
flake-utils, flake-utils,
nixpkgs, nixpkgs,
nurpkgs,
deploy,
home-manager, home-manager,
... ...
} @ inputs: } @ inputs:
@ -13,7 +11,6 @@ in {
packages = import ./pkgs {inherit pkgs;}; packages = import ./pkgs {inherit pkgs;};
devShell = pkgs.callPackage ./shell.nix { devShell = pkgs.callPackage ./shell.nix {
# inherit (deploy.packages.${system}) deploy-rs;
inherit (home-manager.packages.${system}) home-manager; inherit (home-manager.packages.${system}) home-manager;
}; };
@ -45,18 +42,4 @@ in {
imports = value._module.args.modules; imports = value._module.args.modules;
}) })
self.nixosConfigurations; self.nixosConfigurations;
# deploy.nodes =
# builtins.mapAttrs (name: value: {
# hostname = value.config.remote.ip;
# profiles.system = {
# sshUser = value.config.remote.sshUser;
# sshOpts = ["-p" (builtins.toString value.config.remote.sshPort)];
# remoteBuild = value.config.remote.remoteBuild;
# path = deploy.lib.x86_64-linux.activate.nixos value;
# };
# })
# self.nixosConfigurations;
# checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy.lib;
} }

12
renovate.json Normal file
View File

@ -0,0 +1,12 @@
{
"nix": {
"enabled": true
},
"lockFileMaintenance": {
"enabled": true,
"schedule": [
"0 10 * * 0"
]
},
"automerge": true
}

View File

@ -2,8 +2,6 @@
mkShell, mkShell,
sops, sops,
colmena, colmena,
# deploy-rs,
nixpkgs-fmt,
nil, nil,
alejandra, alejandra,
home-manager, home-manager,
@ -12,8 +10,6 @@ mkShell {
nativeBuildInputs = [ nativeBuildInputs = [
sops sops
colmena colmena
# deploy-rs
nixpkgs-fmt
nil nil
alejandra alejandra
home-manager home-manager