mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-18 18:36:05 -07:00
add extra module and control beancount with it
This commit is contained in:
parent
dd2872287a
commit
317580fe9a
@ -31,6 +31,7 @@
|
||||
|
||||
# Modules
|
||||
modules = {
|
||||
extra.enable = true;
|
||||
desktop = {
|
||||
enable = true;
|
||||
gnome.enable = true;
|
||||
@ -46,7 +47,6 @@
|
||||
pc.enable = true;
|
||||
};
|
||||
programs = {
|
||||
beancount.enable = true;
|
||||
borg.enable = true;
|
||||
chezmoi.apply = true;
|
||||
kitty.enable = true;
|
||||
|
@ -4,6 +4,7 @@
|
||||
./base
|
||||
./desktop
|
||||
./devel
|
||||
./extra
|
||||
./gaming
|
||||
./programs
|
||||
./services
|
||||
|
7
provision/modules/extra/default.nix
Normal file
7
provision/modules/extra/default.nix
Normal file
@ -0,0 +1,7 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
../programs/beancount.nix
|
||||
];
|
||||
options.modules.extra.enable = lib.mkEnableOption "extra";
|
||||
}
|
@ -1,8 +1,7 @@
|
||||
{ config, lib, pkgs, user, ... }:
|
||||
|
||||
let cfg = config.modules.programs.beancount;
|
||||
let cfg = config.modules.extra;
|
||||
in {
|
||||
options.modules.programs.beancount.enable = lib.mkEnableOption "beancount";
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
fava # Web interface for the double-entry bookkeeping software Beancount
|
||||
|
@ -2,7 +2,6 @@
|
||||
{
|
||||
imports = [
|
||||
./appgate-sdp.nix
|
||||
./beancount.nix
|
||||
./borg.nix
|
||||
./chrome.nix
|
||||
./firefox.nix
|
||||
|
Loading…
x
Reference in New Issue
Block a user