enable docker

enable automatic garbage collection
disable swiping in firefox
fix ssh config for work
This commit is contained in:
Pim Kunis 2023-10-18 20:17:03 +02:00
parent a4c108afd5
commit b28f88c5e6
4 changed files with 26 additions and 8 deletions

View file

@ -29,9 +29,11 @@ in
excludePackages = with pkgs; [ xterm ]; excludePackages = with pkgs; [ xterm ];
}; };
users.users.pim = { users = {
isNormalUser = true; users.pim = {
extraGroups = [ "wheel" ]; isNormalUser = true;
extraGroups = [ "wheel" "docker" ];
};
}; };
environment = { environment = {
@ -81,6 +83,13 @@ in
extraOptions = '' extraOptions = ''
experimental-features = nix-command flakes 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; 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;
};
};
} }

View file

@ -11,6 +11,8 @@ let
"browser.translations.automaticallyPopup" = false; "browser.translations.automaticallyPopup" = false;
"signon.rememberSignons" = false; "signon.rememberSignons" = false;
"media.webspeech.synth.dont_notify_on_error" = true; "media.webspeech.synth.dont_notify_on_error" = true;
"browser.gesture.swipe.left" = false;
"browser.gesture.swipe.right" = false;
}; };
in in
{ {

View file

@ -7,6 +7,10 @@
extraConfig = { extraConfig = {
push.autoSetupRemote = true; push.autoSetupRemote = true;
}; };
includes = [{
path = "~/git/suecode/.gitconfig";
condition = "gitdir:~/git/suecode/**";
}];
}; };
}; };
} }

View file

@ -7,11 +7,6 @@
extraConfig = "User root"; extraConfig = "User root";
matchBlocks = { matchBlocks = {
gitlab-sue = lib.hm.dag.entryBefore [ "*" ] {
hostname = "gitlab.com";
identityFile = "~/.ssh/sue_ed25519";
identitiesOnly = true;
};
github = lib.hm.dag.entryBefore [ "*" ] { github = lib.hm.dag.entryBefore [ "*" ] {
hostname = "github.com"; hostname = "github.com";
user = "pizzapim"; user = "pizzapim";