chore: make namespace generic so people can copy easier
This commit is contained in:
parent
0158f7ff06
commit
0562818aa7
45 changed files with 249 additions and 217 deletions
|
@ -1,15 +1,16 @@
|
|||
{
|
||||
options,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
lib,
|
||||
namespace,
|
||||
options,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard;
|
||||
with lib.${namespace};
|
||||
let
|
||||
cfg = config.wyrdgard.security.gpg;
|
||||
cfg = config.${namespace}.security.gpg;
|
||||
|
||||
gpgConf = "${inputs.gpg-base-conf}/gpg.conf";
|
||||
|
||||
|
@ -25,7 +26,7 @@ let
|
|||
'';
|
||||
in
|
||||
{
|
||||
options.wyrdgard.security.gpg = with types; {
|
||||
options.${namespace}.security.gpg = with types; {
|
||||
enable = mkBoolOpt false "Wether or not to enable GPG.";
|
||||
agentTimeout = mkOpt int 5 "The amount of time to wait before continuing with shell init.";
|
||||
};
|
||||
|
@ -56,7 +57,7 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
wyrdgard = {
|
||||
${namespace} = {
|
||||
home.file = {
|
||||
".gnupg/.keep".text = "";
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
}:
|
||||
let
|
||||
inherit (lib) mkIf;
|
||||
inherit (lib.wyrdgard) mkBoolOpt;
|
||||
inherit (lib.${namespace}) mkBoolOpt;
|
||||
cfg = config.${namespace}.security.keyring;
|
||||
in
|
||||
{
|
||||
|
|
|
@ -1,16 +1,17 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
namespace,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard;
|
||||
with lib.${namespace};
|
||||
let
|
||||
cfg = config.wyrdgard.security.sops;
|
||||
cfg = config.${namespace}.security.sops;
|
||||
in
|
||||
{
|
||||
options.wyrdgard.security.sops = with types; {
|
||||
options.${namespace}.security.sops = with types; {
|
||||
enable = mkBoolOpt true "Enable sops (Default true)";
|
||||
};
|
||||
|
||||
|
|
|
@ -1,12 +1,17 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard;
|
||||
with lib.${namespace};
|
||||
let
|
||||
cfg = config.wyrdgard.security.syncthing;
|
||||
user = config.wyrdgard.user;
|
||||
cfg = config.${namespace}.security.syncthing;
|
||||
user = config.${namespace}.user;
|
||||
in
|
||||
{
|
||||
options.wyrdgard.security.syncthing = with types; {
|
||||
options.${namespace}.security.syncthing = with types; {
|
||||
enable = mkEnableOption "Enable Syncthing";
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue