feat: Added docker for nixos mirai

This commit is contained in:
uttarayan21
2024-11-18 19:00:36 +02:00
parent 48fb6909cb
commit f0b4656e90
2 changed files with 11 additions and 2 deletions

View File

@@ -7,6 +7,7 @@
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
./mirai.nix ./mirai.nix
./docker.nix
]; ];
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
@@ -35,11 +36,11 @@
users.users.fs0c131y = { users.users.fs0c131y = {
isNormalUser = true; isNormalUser = true;
extraGroups = ["wheel"]; extraGroups = ["wheel" "docker"];
}; };
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# networking.hostName = "nixos"; # Define your hostname. networking.hostName = "mirai"; # Define your hostname.
# Pick only one of the below networking options. # Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. # networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.

8
nixos/mirai/docker.nix Normal file
View File

@@ -0,0 +1,8 @@
{
config,
lib,
pkgs,
...
}: {
virtualisation.docker.enable = true;
}