Add tools.secrets option

This commit is contained in:
2024-07-13 11:36:38 -07:00
parent 6bedd27dea
commit 6d574b9a6e
4 changed files with 27 additions and 5 deletions

11
common/default.nix Normal file
View File

@@ -0,0 +1,11 @@
{ pkgs, lib, config, ... }:
with lib;
{
options.tools.secrets = {
enable = mkEnableOption "Enable secret-management tools";
};
config = mkIf config.tools.secrets.enable {
environment.systemPackages = [ pkgs.git-crypt ];
};
}

View File

@@ -12,12 +12,18 @@
nixosConfigurations = {
marauder = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ ./marauder ];
modules = [
./marauder
./common
];
specialArgs = { inherit inputs secrets; };
};
monolith = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ ./monolith ];
modules = [
./monolith
./common
];
specialArgs = { inherit inputs secrets; };
};
};

View File

@@ -65,6 +65,10 @@
nix.settings.experimental-features = [ "nix-command" "flakes" ];
tools.secrets = {
enable = true;
};
environment.systemPackages = with pkgs; [
# Chat clients
discord
@@ -87,9 +91,6 @@
# Productivity
obsidian
# Utilities
git-crypt
];
programs.git = {

View File

@@ -37,6 +37,10 @@
nix.settings.experimental-features = [ "nix-command" "flakes" ];
tools.secrets = {
enable = true;
};
programs.git = {
enable = true;
lfs.enable = true;