From b28f88c5e6b9761e74398556ef7661a8a8f764bd Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Wed, 18 Oct 2023 20:17:03 +0200 Subject: [PATCH] enable docker enable automatic garbage collection disable swiping in firefox fix ssh config for work --- configuration.nix | 23 ++++++++++++++++++++--- home/firefox/default.nix | 2 ++ home/git/default.nix | 4 ++++ home/ssh/default.nix | 5 ----- 4 files changed, 26 insertions(+), 8 deletions(-) diff --git a/configuration.nix b/configuration.nix index 48bb1c4..261a705 100644 --- a/configuration.nix +++ b/configuration.nix @@ -29,9 +29,11 @@ in excludePackages = with pkgs; [ xterm ]; }; - users.users.pim = { - isNormalUser = true; - extraGroups = [ "wheel" ]; + users = { + users.pim = { + isNormalUser = true; + extraGroups = [ "wheel" "docker" ]; + }; }; environment = { @@ -81,6 +83,13 @@ in extraOptions = '' experimental-features = nix-command flakes ''; + + gc = { + automatic = true; + persistent = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; }; age.secrets.wg-quick-home-privkey.file = ./secrets/wg-quick-home-privkey.age; @@ -106,4 +115,12 @@ in }]; }; }; + + virtualisation.docker = { + enable = true; + rootless = { + enable = true; + setSocketVariable = true; + }; + }; } diff --git a/home/firefox/default.nix b/home/firefox/default.nix index 2d44cff..d5825b3 100644 --- a/home/firefox/default.nix +++ b/home/firefox/default.nix @@ -11,6 +11,8 @@ let "browser.translations.automaticallyPopup" = false; "signon.rememberSignons" = false; "media.webspeech.synth.dont_notify_on_error" = true; + "browser.gesture.swipe.left" = false; + "browser.gesture.swipe.right" = false; }; in { diff --git a/home/git/default.nix b/home/git/default.nix index 735b4d5..f641c54 100644 --- a/home/git/default.nix +++ b/home/git/default.nix @@ -7,6 +7,10 @@ extraConfig = { push.autoSetupRemote = true; }; + includes = [{ + path = "~/git/suecode/.gitconfig"; + condition = "gitdir:~/git/suecode/**"; + }]; }; }; } diff --git a/home/ssh/default.nix b/home/ssh/default.nix index 04138cc..0718130 100644 --- a/home/ssh/default.nix +++ b/home/ssh/default.nix @@ -7,11 +7,6 @@ extraConfig = "User root"; matchBlocks = { - gitlab-sue = lib.hm.dag.entryBefore [ "*" ] { - hostname = "gitlab.com"; - identityFile = "~/.ssh/sue_ed25519"; - identitiesOnly = true; - }; github = lib.hm.dag.entryBefore [ "*" ] { hostname = "github.com"; user = "pizzapim";