summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2022-02-13 18:23:22 +0100
committerQuentin Aristote <quentin@aristote.fr>2022-02-13 18:23:22 +0100
commit89f7f41c43c8b9183230cdbbdde7c990faa677cb (patch)
tree08fcc08ed07e267ee7b92f291af181000e75b791 /nixos
parent38a306430552c49c5fe5545ab15daaaa130f5634 (diff)
enable docker
Diffstat (limited to 'nixos')
-rw-r--r--nixos/services.nix4
-rw-r--r--nixos/users.nix1
2 files changed, 4 insertions, 1 deletions
diff --git a/nixos/services.nix b/nixos/services.nix
index 19f61ff..665477c 100644
--- a/nixos/services.nix
+++ b/nixos/services.nix
@@ -14,8 +14,10 @@
# Update the system.
@daily root ${pkgs.nix}/bin/nix-channel --update; ${pkgs.nixos-rebuild}/bin/nixos-rebuild switch
# Update virtual environments
- @daily qaristote find /home/qaristote -type d -name .nix-gc-roots -execdir ${pkgs.direnv}/bin/direnv reload \;
+ @daily qaristote find /home/qaristote -type d -name .nix-gc-roots -execdir ${pkgs.direnv}/bin/direnv exec . true \;
'';
};
};
+
+ virtualisation.docker.enable = true;
}
diff --git a/nixos/users.nix b/nixos/users.nix
index f9254a7..2b1a630 100644
--- a/nixos/users.nix
+++ b/nixos/users.nix
@@ -8,6 +8,7 @@ in {
"wheel" # Enable ‘sudo’ for the user.
"audio"
"networkmanager"
+ "docker"
];
};