WIP rootless docker

This commit is contained in:
2024-11-17 20:15:55 +00:00
parent 54b277bed2
commit 7286b5d291
3 changed files with 25 additions and 9 deletions

View File

@@ -10,6 +10,7 @@ in
(import "${builtins.fetchTarball https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz}/nixos")
(fetchTarball "https://github.com/nix-community/nixos-vscode-server/tarball/master")
./users.nix
# ./mounts.nix
];
environment.systemPackages = with pkgs; [
@@ -26,14 +27,17 @@ in
services.openssh.enable = true;
# Networking stuff
# networking.interfaces.eth0.useDHCP = true;
# services.resolved = { enable = true; dns = "default"; };
# services.resolved.enable = true;
# networking.nameservers = [ "192.168.1.1" ];
# services.avahi = { enable = true; nssmdns4 = true; };
services.avahi = { enable = true; nssmdns4 = true; };
# Enables some tools
virtualisation.docker.enable = true;
# https://nixos.wiki/wiki/Docker
virtualisation.docker = {
enable = true;
# https://docs.docker.com/engine/security/rootless/
rootless = {
enable = true;
setSocketVariable = true;
};
};
services.vscode-server.enable = true;
system.activationScripts.startup = ''