Commit 2a57c76e68ad
Changed files (4)
modules/profiles/docker.nix
@@ -0,0 +1,32 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+let
+ cfg = config.profiles.docker;
+in
+{
+ options = {
+ profiles.docker = {
+ enable = mkOption {
+ default = false;
+ description = "Enable docker profile";
+ type = types.bool;
+ };
+ };
+ };
+ config = mkIf cfg.enable (mkMerge [
+ {
+ home.packages = with pkgs; [
+ docker
+ docker-machine
+ docker-machine-kvm
+ docker-machine-kvm2
+ ];
+ }
+ (mkIf config.profiles.fish.enable {
+ xdg.configFile."fish/conf.d/docker.fish".text = ''
+ set -gx DOCKER_BUILDKIT 1
+ '';
+ })
+ ]);
+}
modules/module-list.nix
@@ -11,6 +11,7 @@
./profiles/dev.js.nix
./profiles/dev.python.nix
./profiles/dev.rust.nix
+ ./profiles/docker.nix
./profiles/emacs.nix
./profiles/fish.nix
./profiles/gaming.nix
shikoku.nix
@@ -16,6 +16,7 @@
python.enable = true;
rust.enable = true;
};
+ profiles.docker.enable = true;
programs.vscode.enable = true;
programs.podman.enable = true;
xdg.configFile."fish/conf.d/docker.fish".text = ''
wakasu.nix
@@ -15,11 +15,9 @@
python.enable = true;
rust.enable = true;
};
+ profiles.docker.enable = true;
programs.vscode.enable = true;
programs.podman.enable = true;
- xdg.configFile."fish/conf.d/docker.fish".text = ''
- set -gx DOCKER_BUILDKIT 1
- '';
home.packages = with pkgs; [
google-chrome
obs-studio