Add tools.secrets option
This commit is contained in:
parent
6bedd27dea
commit
6d574b9a6e
4 changed files with 27 additions and 5 deletions
11
common/default.nix
Normal file
11
common/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
||||||
10
flake.nix
10
flake.nix
|
|
@ -12,12 +12,18 @@
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
marauder = nixpkgs.lib.nixosSystem {
|
marauder = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [ ./marauder ];
|
modules = [
|
||||||
|
./marauder
|
||||||
|
./common
|
||||||
|
];
|
||||||
specialArgs = { inherit inputs secrets; };
|
specialArgs = { inherit inputs secrets; };
|
||||||
};
|
};
|
||||||
monolith = nixpkgs.lib.nixosSystem {
|
monolith = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [ ./monolith ];
|
modules = [
|
||||||
|
./monolith
|
||||||
|
./common
|
||||||
|
];
|
||||||
specialArgs = { inherit inputs secrets; };
|
specialArgs = { inherit inputs secrets; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,10 @@
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
|
tools.secrets = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# Chat clients
|
# Chat clients
|
||||||
discord
|
discord
|
||||||
|
|
@ -87,9 +91,6 @@
|
||||||
|
|
||||||
# Productivity
|
# Productivity
|
||||||
obsidian
|
obsidian
|
||||||
|
|
||||||
# Utilities
|
|
||||||
git-crypt
|
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,10 @@
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
|
tools.secrets = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue