From 3117aaa3402841aca929eeca954c1128fd08aea6 Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Sun, 22 Sep 2024 19:18:59 +0200 Subject: [PATCH] temperance/programs.nix: add pwvucontrol --- hosts/temperance/programs.nix | 5 ++++- modules/options/meta/module.nix | 35 +++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 modules/options/meta/module.nix diff --git a/hosts/temperance/programs.nix b/hosts/temperance/programs.nix index 734f690..c096783 100644 --- a/hosts/temperance/programs.nix +++ b/hosts/temperance/programs.nix @@ -53,18 +53,21 @@ polkit prismlauncher pulsemixer - pavucontrol python3 + pwvucontrol qbittorrent + qutebrowser r2modman ripgrep signal-desktop-beta smartmontools + strawberry telegram-desktop tldr thunderbird tor-browser trash-cli + ungoogled-chromium util-linux v4l-utils vlc diff --git a/modules/options/meta/module.nix b/modules/options/meta/module.nix new file mode 100644 index 0000000..4440d8c --- /dev/null +++ b/modules/options/meta/module.nix @@ -0,0 +1,35 @@ +{ + config, + lib, + ... +}: let + inherit (builtins) elemAt; + inherit (lib) options types; + inherit (options) mkOption; + inherit (types) listOf str; +in { + options.meta = { + users = mkOption { + type = listOf str; + default = ["cr"]; + description = '' + A list of users on a system. + ''; + }; + mainUser = { + username = mkOption { + type = str; + default = elemAt config.meta.users 0; + description = '' + The main user for each system. This is the first element of the list of users by default. + ''; + }; + gitSigningKey = mkOption { + type = str; + description = '' + The main user's git signing key, used to automatically sing git commits with this key + ''; + }; + }; + }; +}