This commit is contained in:
parent
1b360709f8
commit
a3e4cd0e13
4 changed files with 4 additions and 13 deletions
|
@ -13,8 +13,6 @@
|
||||||
|
|
||||||
features = {
|
features = {
|
||||||
cli = {
|
cli = {
|
||||||
docker.enable = true;
|
|
||||||
|
|
||||||
password-store.enable = true;
|
password-store.enable = true;
|
||||||
password-store.extensions = with pkgs.passExtensions; [
|
password-store.extensions = with pkgs.passExtensions; [
|
||||||
pass-otp
|
pass-otp
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./avahi.nix
|
./avahi.nix
|
||||||
./dconf.nix
|
./dconf.nix
|
||||||
./docker.nix
|
|
||||||
./dwm
|
./dwm
|
||||||
./fonts.nix
|
./fonts.nix
|
||||||
./gitea-actions-runner.nix
|
./gitea-actions-runner.nix
|
||||||
|
|
|
@ -1,14 +1,7 @@
|
||||||
{ config, lib, ... }:
|
{ config, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.features.cli.docker;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
options.features.cli.docker.enable = mkEnableOption "Enable docker";
|
flake.modules.nixos.pc = {
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
oci-containers.backend = "docker";
|
oci-containers.backend = "docker";
|
||||||
|
|
||||||
|
@ -21,5 +14,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
users.users.${config.flake.meta.owner.username}.extraGroups = [ "docker" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -17,7 +17,6 @@ with lib;
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
"wheel"
|
"wheel"
|
||||||
]
|
]
|
||||||
++ optional config.features.cli.docker.enable "docker"
|
|
||||||
++ optional config.features.cli.podman.enable "podman";
|
++ optional config.features.cli.podman.enable "podman";
|
||||||
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue