summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--machines/x1-pincer.nix1
-rw-r--r--modules/development.nix19
2 files changed, 20 insertions, 0 deletions
diff --git a/machines/x1-pincer.nix b/machines/x1-pincer.nix
index 210deda..7f8fe96 100644
--- a/machines/x1-pincer.nix
+++ b/machines/x1-pincer.nix
@@ -12,6 +12,7 @@ let ports = {
orbekk.desktop.enable = true;
orbekk.thinkpad.enable = true;
orbekk.simple-firewall.allowedTCPPorts = [ ports.minecraft 631 5353 ]; # socks proxy
+ orbekk.development.enable = true;
orbekk.vpn.enable = true;
diff --git a/modules/development.nix b/modules/development.nix
new file mode 100644
index 0000000..6b380db
--- /dev/null
+++ b/modules/development.nix
@@ -0,0 +1,19 @@
+{ config, lib, pkgs, ... }:
+let cfg = config.orbekk.development;
+in {
+ options = {
+ orbekk.development = {
+ enable = lib.mkEnableOption "Enable development config";
+ };
+ };
+
+ config = lib.mkIf cfg.enable {
+ virtualisation = {
+ podman = {
+ enable = true;
+ dockerCompat = true;
+ defaultNetwork.dnsname.enable = true;
+ };
+ };
+ };
+}