mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-19 02:46:06 -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
|
||||||
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;
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
./base
|
./base
|
||||||
./desktop
|
./desktop
|
||||||
./devel
|
./devel
|
||||||
|
./extra
|
||||||
./gaming
|
./gaming
|
||||||
./programs
|
./programs
|
||||||
./services
|
./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, ... }:
|
{ 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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user