diff --git a/lib/nixos/configuration.nix b/lib/nixos/configuration.nix index 29a7e50..70ed52a 100644 --- a/lib/nixos/configuration.nix +++ b/lib/nixos/configuration.nix @@ -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; diff --git a/modules/mixins/docker.nix b/modules/mixins/docker.nix new file mode 100644 index 0000000..1a9a4b9 --- /dev/null +++ b/modules/mixins/docker.nix @@ -0,0 +1,10 @@ +{ + virtualisation.docker = { + enable = true; + + autoPrune = { + enable = true; + dates = "weekly"; + }; + }; +}