add extra module and control beancount with it

This commit is contained in:
Tyler Starr 2025-03-12 22:53:10 -07:00
parent dd2872287a
commit 317580fe9a
5 changed files with 10 additions and 4 deletions

View File

@ -31,6 +31,7 @@
# Modules # Modules
modules = { modules = {
extra.enable = true;
desktop = { desktop = {
enable = true; enable = true;
gnome.enable = true; gnome.enable = true;
@ -46,7 +47,6 @@
pc.enable = true; pc.enable = true;
}; };
programs = { programs = {
beancount.enable = true;
borg.enable = true; borg.enable = true;
chezmoi.apply = true; chezmoi.apply = true;
kitty.enable = true; kitty.enable = true;

View File

@ -4,6 +4,7 @@
./base ./base
./desktop ./desktop
./devel ./devel
./extra
./gaming ./gaming
./programs ./programs
./services ./services

View File

@ -0,0 +1,7 @@
{ lib, ... }:
{
imports = [
../programs/beancount.nix
];
options.modules.extra.enable = lib.mkEnableOption "extra";
}

View File

@ -1,8 +1,7 @@
{ config, lib, pkgs, user, ... }: { config, lib, pkgs, user, ... }:
let cfg = config.modules.programs.beancount; let cfg = config.modules.extra;
in { in {
options.modules.programs.beancount.enable = lib.mkEnableOption "beancount";
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
fava # Web interface for the double-entry bookkeeping software Beancount fava # Web interface for the double-entry bookkeeping software Beancount

View File

@ -2,7 +2,6 @@
{ {
imports = [ imports = [
./appgate-sdp.nix ./appgate-sdp.nix
./beancount.nix
./borg.nix ./borg.nix
./chrome.nix ./chrome.nix
./firefox.nix ./firefox.nix