From 5e949e101339d63dc6a8da959fe9f096779aa04c Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Tue, 27 Oct 2026 19:42:52 -0400 Subject: [PATCH] Add a role for installing bubblewrap. --- nix/configuration/configuration.nix | 1 + nix/configuration/hosts/odo/default.nix | 1 + nix/configuration/hosts/quark/default.nix | 1 + .../roles/bubblewrap/default.nix | 25 +++++++++++++++++++ 4 files changed, 28 insertions(+) create mode 100644 nix/configuration/roles/bubblewrap/default.nix diff --git a/nix/configuration/configuration.nix b/nix/configuration/configuration.nix index 5f92004..be9677f 100644 --- a/nix/configuration/configuration.nix +++ b/nix/configuration/configuration.nix @@ -22,6 +22,7 @@ in ./roles/base ./roles/bluetooth ./roles/boot + ./roles/bubblewrap ./roles/build_in_ram ./roles/chromecast ./roles/chromium diff --git a/nix/configuration/hosts/odo/default.nix b/nix/configuration/hosts/odo/default.nix index 97d8d59..0a7f897 100644 --- a/nix/configuration/hosts/odo/default.nix +++ b/nix/configuration/hosts/odo/default.nix @@ -82,6 +82,7 @@ me.ares.enable = true; me.base.enable = true; me.bluetooth.enable = true; + me.bubblewrap.enable = true; me.build_in_ram.enable = true; me.chromecast.enable = true; me.chromium.enable = true; diff --git a/nix/configuration/hosts/quark/default.nix b/nix/configuration/hosts/quark/default.nix index 3540285..c6ea2f0 100644 --- a/nix/configuration/hosts/quark/default.nix +++ b/nix/configuration/hosts/quark/default.nix @@ -76,6 +76,7 @@ me.ares.enable = true; me.base.enable = true; me.bluetooth.enable = true; + me.bubblewrap.enable = true; me.build_in_ram.enable = true; me.chromecast.enable = true; me.chromium.enable = true; diff --git a/nix/configuration/roles/bubblewrap/default.nix b/nix/configuration/roles/bubblewrap/default.nix new file mode 100644 index 0000000..11b7cf7 --- /dev/null +++ b/nix/configuration/roles/bubblewrap/default.nix @@ -0,0 +1,25 @@ +{ + config, + lib, + pkgs, + ... +}: + +{ + imports = [ ]; + + options.me = { + bubblewrap.enable = lib.mkOption { + type = lib.types.bool; + default = false; + example = true; + description = "Whether we want to install bubblewrap."; + }; + }; + + config = lib.mkIf config.me.bubblewrap.enable { + environment.systemPackages = with pkgs; [ + bubblewrap + ]; + }; +}