agenix module

This commit is contained in:
Osman Faruk Bayram 2025-02-16 02:25:43 +03:00
parent 0ba4cbb699
commit 7499da1897
4 changed files with 36 additions and 16 deletions

View file

@ -44,7 +44,6 @@
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
environment.systemPackages = with pkgs; [
inputs.agenix.packages.x86_64-linux.default
inputs.osbm-nvim.packages.x86_64-linux.default
nixd
];

View file

@ -90,7 +90,6 @@
environment.systemPackages = with pkgs; [
nvidia-container-toolkit
inputs.agenix.packages.x86_64-linux.default
inputs.osbm-nvim.packages.x86_64-linux.default
nixd
];

View file

@ -30,7 +30,6 @@
lolcat
cmatrix
inxi
age
jq
onefetch
just

View file

@ -1,4 +1,25 @@
{
config,
pkgs,
inputs,
lib,
...
}: {
options = {
myModules.enableSecrets = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Enable agenix secrets management";
};
};
config = lib.mkMerge [
(lib.mkIf config.myModules.enableSecrets {
environment.systemPackages = with pkgs; [
inputs.agenix.packages.x86_64-linux.default
age
];
age.secrets = {
network-manager.file = ../secrets/network-manager.age;
ssh-key-private = {
@ -14,4 +35,6 @@
mode = "0644";
};
};
})
];
}