Changes
4 changed files (+47/-20)
-
-
@@ -225,17 +225,16 @@wantedBy = [ "default.target" ]; serviceConfig.ExecStart = pkgs.writers.writeFish "switch-virtual-keyboard" '' function switch_virtual_keyboard echo Starting $argv[1] ${pkgs.kdePackages.kconfig}/bin/kwriteconfig6 --file kwinrc --group Wayland --key InputMethod /run/current-system/sw/share/applications/$argv[1] busctl --user emit /kwinrc org.kde.kconfig.notify ConfigChanged a{saay} 1 Wayland 1 11 73 110 112 117 116 77 101 116 104 111 100 echo Starting $argv[1] ${pkgs.kdePackages.kconfig}/bin/kwriteconfig6 --file kwinrc --group Wayland --key InputMethod /run/current-system/sw/share/applications/$argv[1] busctl --user emit /kwinrc org.kde.kconfig.notify ConfigChanged a{saay} 1 Wayland 1 11 73 110 112 117 116 77 101 116 104 111 100 end busctl --user monitor --match type=signal,interface=org.kde.KWin.TabletModeManager,member=tabletModeChanged | \ while read -l line if string match -q "*true*" $line switch_virtual_keyboard org.kde.plasma.keyboard.desktop else if string match -q "*false*" $line switch_virtual_keyboard fcitx5-wayland-launcher.desktop end busctl --user monitor --match type=signal,interface=org.kde.KWin.TabletModeManager,member=tabletModeChanged | while read -l line if string match -q "*true*" $line switch_virtual_keyboard org.kde.plasma.keyboard.desktop else if string match -q "*false*" $line switch_virtual_keyboard fcitx5-wayland-launcher.desktop end end ''; };
-
-
-
@@ -90,7 +90,7 @@# https://forgejo.org/docs/latest/admin/recommendations/#git-over-ssh # https://docs.gitlab.com/administration/git_protocol/ # Test using GIT_TRACE_PACKET=1 git ls-remote AcceptEnv = "GIT_PROTOCOL"; AcceptEnv = [ "GIT_PROTOCOL" ]; # Don't hack me PasswordAuthentication = false; };
-
@@ -209,10 +209,38 @@# toINIWithGlobalSection sorts the options so we have to manually concatenate scan-path # https://wiki.archlinux.org/title/Cgit#readme_files_are_not_found,_about_tab_not_shown + "scan-path=/srv/git"; # The cgit cache dir must be writable by dynamic user running cgit # Easy solution is to use /var/tmp as the cache dir # I couldn't figure out how to set cache-root for cgit, so instead symlink it systemd.tmpfiles.rules = [ "L /var/cache/cgit - - - - /var/tmp" ]; systemd = { # The cgit cache dir must be writable by dynamic user running cgit # Easy solution is to use /var/tmp as the cache dir # I couldn't figure out how to set cache-root for cgit, so instead symlink it tmpfiles.rules = [ "L /var/cache/cgit - - - - /var/tmp" ]; # Update Git mirrors # I could use the find command but this is more readable services.update-mirrors = { wantedBy = [ "multi-user.target" ]; serviceConfig = { User = "a"; Group = "users"; ExecStart = pkgs.writers.writeFish "update-mirrors" '' function update-mirrors if test -f $argv[1]/description cd $argv[1] ${pkgs.git}/bin/git remote update else for i in $argv[1]/* update-mirrors $i end end end update-mirrors /srv/git ''; }; }; timers.update-mirrors = { wantedBy = [ "multi-user.target" ]; timerConfig.OnCalendar = "weekly"; }; }; # Back up /srv using btrfs snapshots and btrbk services.btrbk = {
-
-
-
@@ -10,13 +10,13 @@# BAD NIX STORE STOP BEING 100GB gc = { automatic = true; dates = "saturday"; dates = "weekly"; options = "--delete-older-than 7d"; }; optimise = { automatic = true; # Run the optimiser on a different day since running it simultaneously with the gc is buggy dates = [ "sunday" ]; dates = [ "wednesday" ]; }; settings = { # Don't trash my $HOME please like come on it's not 2005 anymore
-
-
-
@@ -23,11 +23,11 @@}, "nixpkgs": { "locked": { "lastModified": 1766070988, "narHash": "sha256-G/WVghka6c4bAzMhTwT2vjLccg/awmHkdKSd2JrycLc=", "lastModified": 1766309749, "narHash": "sha256-3xY8CZ4rSnQ0NqGhMKAy5vgC+2IVK0NoVEzDoOh4DA4=", "owner": "NixOS", "repo": "nixpkgs", "rev": "c6245e83d836d0433170a16eb185cefe0572f8b8", "rev": "a6531044f6d0bef691ea18d4d4ce44d0daa6e816", "type": "github" }, "original": {
-