agenix module
This commit is contained in:
parent
0ba4cbb699
commit
7499da1897
4 changed files with 36 additions and 16 deletions
|
|
@ -44,7 +44,6 @@
|
||||||
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
|
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
inputs.agenix.packages.x86_64-linux.default
|
|
||||||
inputs.osbm-nvim.packages.x86_64-linux.default
|
inputs.osbm-nvim.packages.x86_64-linux.default
|
||||||
nixd
|
nixd
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,6 @@
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
nvidia-container-toolkit
|
nvidia-container-toolkit
|
||||||
inputs.agenix.packages.x86_64-linux.default
|
|
||||||
inputs.osbm-nvim.packages.x86_64-linux.default
|
inputs.osbm-nvim.packages.x86_64-linux.default
|
||||||
nixd
|
nixd
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,6 @@
|
||||||
lolcat
|
lolcat
|
||||||
cmatrix
|
cmatrix
|
||||||
inxi
|
inxi
|
||||||
age
|
|
||||||
jq
|
jq
|
||||||
onefetch
|
onefetch
|
||||||
just
|
just
|
||||||
|
|
|
||||||
|
|
@ -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 = {
|
age.secrets = {
|
||||||
network-manager.file = ../secrets/network-manager.age;
|
network-manager.file = ../secrets/network-manager.age;
|
||||||
ssh-key-private = {
|
ssh-key-private = {
|
||||||
|
|
@ -14,4 +35,6 @@
|
||||||
mode = "0644";
|
mode = "0644";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue