From d2e8d17a21fb0c70ac452daa1fdd5ef86809c68b Mon Sep 17 00:00:00 2001 From: derped Date: Thu, 15 Jun 2023 11:06:54 +0200 Subject: [PATCH] Emacs: add docker and dockerfile mode. --- pkgsets/emacs/docker.nix | 20 ++++++++++++++++++++ pkgsets/emacs/dockerfile.nix | 9 +++++++++ 2 files changed, 29 insertions(+) create mode 100644 pkgsets/emacs/docker.nix create mode 100644 pkgsets/emacs/dockerfile.nix diff --git a/pkgsets/emacs/docker.nix b/pkgsets/emacs/docker.nix new file mode 100644 index 0000000..1a78a55 --- /dev/null +++ b/pkgsets/emacs/docker.nix @@ -0,0 +1,20 @@ +{ config, lib, ... }: + +with lib; + +mkIf (elem "emacs::docker" config.machine.pkgs) { + programs.emacs.init.usePackage = { + dockerfile-mode = { + enable = true; + }; + docker = { + enable = true; + }; + docker-compose-mode = { + enable = true; + }; + docker-tramp = { + enable = true; + }; + }; +} diff --git a/pkgsets/emacs/dockerfile.nix b/pkgsets/emacs/dockerfile.nix new file mode 100644 index 0000000..a67624b --- /dev/null +++ b/pkgsets/emacs/dockerfile.nix @@ -0,0 +1,9 @@ +{ config, lib, ... }: + +with lib; + +mkIf (elem "emacs::dockerfile" config.machine.pkgs) { + programs.emacs.init.usePackage.dockerfile-mode = { + enable = true; + }; +}