From 6452d591a77f7003ed7b5e4a2f309ae87694e444 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Mon, 8 Dec 2025 23:20:33 -0500 Subject: [PATCH] Install yaml2nix. --- nix/configuration/configuration.nix | 1 + nix/configuration/hosts/odo/default.nix | 1 + nix/configuration/hosts/odowork/default.nix | 1 + nix/configuration/hosts/quark/default.nix | 1 + nix/configuration/roles/nixdev/default.nix | 25 +++++++++++++++++++++ 5 files changed, 29 insertions(+) create mode 100644 nix/configuration/roles/nixdev/default.nix diff --git a/nix/configuration/configuration.nix b/nix/configuration/configuration.nix index 2bfd356e..b2657bf9 100644 --- a/nix/configuration/configuration.nix +++ b/nix/configuration/configuration.nix @@ -55,6 +55,7 @@ ./roles/network ./roles/nix_index ./roles/nix_worker + ./roles/nixdev ./roles/nvme ./roles/openpgp_card_tools ./roles/optimized_build diff --git a/nix/configuration/hosts/odo/default.nix b/nix/configuration/hosts/odo/default.nix index 130425f1..3b760bec 100644 --- a/nix/configuration/hosts/odo/default.nix +++ b/nix/configuration/hosts/odo/default.nix @@ -114,6 +114,7 @@ me.memtest.enable = true; me.network.enable = true; me.nix_index.enable = true; + me.nixdev.enable = true; me.nvme.enable = true; me.openpgp_card_tools.enable = true; me.pcsx2.enable = true; diff --git a/nix/configuration/hosts/odowork/default.nix b/nix/configuration/hosts/odowork/default.nix index 4e004686..0ca2c62b 100644 --- a/nix/configuration/hosts/odowork/default.nix +++ b/nix/configuration/hosts/odowork/default.nix @@ -115,6 +115,7 @@ me.memtest.enable = true; me.network.enable = true; me.nix_index.enable = true; + me.nixdev.enable = true; me.nvme.enable = true; me.openpgp_card_tools.enable = true; me.podman.enable = true; diff --git a/nix/configuration/hosts/quark/default.nix b/nix/configuration/hosts/quark/default.nix index c77ad723..238607e8 100644 --- a/nix/configuration/hosts/quark/default.nix +++ b/nix/configuration/hosts/quark/default.nix @@ -109,6 +109,7 @@ me.network.enable = true; me.nix_index.enable = true; me.nix_worker.enable = true; + me.nixdev.enable = true; me.nvme.enable = true; me.openpgp_card_tools.enable = true; me.pcsx2.enable = true; diff --git a/nix/configuration/roles/nixdev/default.nix b/nix/configuration/roles/nixdev/default.nix new file mode 100644 index 00000000..1414285b --- /dev/null +++ b/nix/configuration/roles/nixdev/default.nix @@ -0,0 +1,25 @@ +{ + config, + lib, + pkgs, + ... +}: + +{ + imports = [ ]; + + options.me = { + nixdev.enable = lib.mkOption { + type = lib.types.bool; + default = false; + example = true; + description = "Whether we want to install nixdev."; + }; + }; + + config = lib.mkIf config.me.nixdev.enable { + environment.systemPackages = with pkgs; [ + yaml2nix + ]; + }; +}