refactor: Move user config into modules/

This commit is contained in:
Madeleine Sydney
2025-03-13 11:14:32 -06:00
parent 257f011a99
commit fb3299d89c
85 changed files with 597 additions and 542 deletions

View File

@@ -1,24 +1,22 @@
{ config, lib, pkgs, ... }:
with lib;
let cfg = config.sydnix.sops;
in {
options = {
sydnix.sops = {
enable = mkEnableOption "Sops";
keyFile = mkOption {
enable = lib.mkEnableOption "Sops";
keyFile = lib.mkOption {
description = "Path to an Age key file.";
type = types.path;
type = lib.types.path;
default = config.home.homeDirectory + "/key.txt";
};
secrets = mkOption {
secrets = lib.mkOption {
description = "Secrets passed directly to sops-nix.";
};
};
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
home.packages = [
pkgs.sops
];