mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-06-16 16:36:08 -07:00
update docker to program besides torus
This commit is contained in:
parent
3b8d09ef2d
commit
607b1b7a07
@ -21,10 +21,6 @@
|
||||
powerManagement.enable = true;
|
||||
nvidiaSettings = true;
|
||||
};
|
||||
|
||||
# Enable docker
|
||||
virtualisation.docker.enable = true;
|
||||
virtualisation.docker.storageDriver = "btrfs";
|
||||
|
||||
# Secrets
|
||||
age.secrets."wireguard/kestrel".file = ../../secrets/wireguard/kestrel.age;
|
||||
@ -48,6 +44,10 @@
|
||||
pc.enable = true;
|
||||
};
|
||||
programs = {
|
||||
docker = {
|
||||
enable = true;
|
||||
storageDriver = "btrfs";
|
||||
};
|
||||
virt-manager.enable = true;
|
||||
};
|
||||
services = {
|
||||
|
@ -6,10 +6,6 @@
|
||||
# Set networking options
|
||||
networking.firewall.checkReversePath = "loose";
|
||||
networking.firewall.enable = false;
|
||||
|
||||
# Enable docker
|
||||
virtualisation.docker.enable = true;
|
||||
virtualisation.docker.storageDriver = "btrfs";
|
||||
|
||||
# Modules
|
||||
modules = {
|
||||
@ -26,6 +22,10 @@
|
||||
programming.enable = true;
|
||||
};
|
||||
programs = {
|
||||
docker = {
|
||||
enable = true;
|
||||
storageDriver = "btrfs";
|
||||
};
|
||||
virt-manager.enable = false;
|
||||
};
|
||||
services = {
|
||||
|
@ -39,9 +39,6 @@ in
|
||||
# Don't allow emergency mode, because we don't have a console.
|
||||
systemd.enableEmergencyMode = false;
|
||||
|
||||
# Enable docker
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
firefox
|
||||
wget
|
||||
@ -63,6 +60,7 @@ in
|
||||
modules = {
|
||||
devel.programming.enable = true;
|
||||
programs = {
|
||||
docker.enable = true;
|
||||
git.keys = false;
|
||||
};
|
||||
services.ssh.enable = true;
|
||||
|
@ -6,6 +6,7 @@
|
||||
./borg.nix
|
||||
./chezmoi.nix
|
||||
./chrome.nix
|
||||
./docker.nix
|
||||
./firefox.nix
|
||||
./git.nix
|
||||
./kitty.nix
|
||||
|
24
provision/modules/programs/docker.nix
Normal file
24
provision/modules/programs/docker.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ config, lib, pkgs, user, ... }:
|
||||
|
||||
let cfg = config.modules.programs.docker;
|
||||
in {
|
||||
options.modules.programs.docker = with lib; {
|
||||
enable = lib.mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
keyPath = mkOption {
|
||||
type = types.path;
|
||||
default = ./key.pem;
|
||||
};
|
||||
storageDriver = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
virtualisation.docker.enable = true;
|
||||
virtualisation.docker.storageDriver = lib.mkIf (cfg.storageDriver != null) "${cfg.storageDriver}";
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user