Extract Docker configuration to a mixin

This commit is contained in:
Oliver Davies 2024-09-21 12:46:14 +01:00
parent 24e2edfb8e
commit cd4e7048c5
2 changed files with 14 additions and 10 deletions

View file

@ -9,7 +9,10 @@ let
username = "opdavies";
in
{
imports = [ ../../modules/mixins/fonts.nix ];
imports = [
../../modules/mixins/docker.nix
../../modules/mixins/fonts.nix
];
nixpkgs.config = {
allowUnfree = true;
@ -200,15 +203,6 @@ in
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "22.11"; # Did you read the comment?
virtualisation.docker = {
enable = true;
autoPrune = {
enable = true;
dates = "weekly";
};
};
programs.zsh.enable = true;
programs.zsh.histSize = 5000;

10
modules/mixins/docker.nix Normal file
View file

@ -0,0 +1,10 @@
{
virtualisation.docker = {
enable = true;
autoPrune = {
enable = true;
dates = "weekly";
};
};
}