mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-12 15:10:11 -05:00
Moving Docker Stuff To Proper Config
This commit is contained in:
parent
fb4275e049
commit
32b83aeae5
3 changed files with 21 additions and 4 deletions
|
|
@ -77,6 +77,7 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||||
vscode.enable = true;
|
vscode.enable = true;
|
||||||
# Utilities
|
# Utilities
|
||||||
# git is not optional
|
# git is not optional
|
||||||
|
docker.enable = true;
|
||||||
yubikey.enable = true;
|
yubikey.enable = true;
|
||||||
|
|
||||||
# TODO: Move this out
|
# TODO: Move this out
|
||||||
|
|
@ -88,11 +89,7 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||||
nix-direnv.enable = true;
|
nix-direnv.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
home.packages = [
|
|
||||||
pkgs.docker
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
virtualization.docker.enable = true;
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./docker.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
./yubikey-manager.nix
|
./yubikey-manager.nix
|
||||||
];
|
];
|
||||||
|
|
|
||||||
19
modules/common/utilities/docker.nix
Normal file
19
modules/common/utilities/docker.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
docker = {
|
||||||
|
enable = lib.mkEnableOption {
|
||||||
|
description = "Enable docker";
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf (config.docker.enable) {
|
||||||
|
home-manager.users.${config.user} = {
|
||||||
|
home.packages = [
|
||||||
|
pkgs.docker
|
||||||
|
];
|
||||||
|
};
|
||||||
|
virtualization.docker.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue