Extract Docker configuration to a mixin
This commit is contained in:
parent
24e2edfb8e
commit
cd4e7048c5
|
@ -9,7 +9,10 @@ let
|
||||||
username = "opdavies";
|
username = "opdavies";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [ ../../modules/mixins/fonts.nix ];
|
imports = [
|
||||||
|
../../modules/mixins/docker.nix
|
||||||
|
../../modules/mixins/fonts.nix
|
||||||
|
];
|
||||||
|
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
|
@ -200,15 +203,6 @@ in
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "22.11"; # Did you read the comment?
|
system.stateVersion = "22.11"; # Did you read the comment?
|
||||||
|
|
||||||
virtualisation.docker = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
autoPrune = {
|
|
||||||
enable = true;
|
|
||||||
dates = "weekly";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
programs.zsh.histSize = 5000;
|
programs.zsh.histSize = 5000;
|
||||||
|
|
||||||
|
|
10
modules/mixins/docker.nix
Normal file
10
modules/mixins/docker.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
virtualisation.docker = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
autoPrune = {
|
||||||
|
enable = true;
|
||||||
|
dates = "weekly";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue