1
0
Fork 0

Enter accounting in home-manager

This commit is contained in:
Malte Brandy 2018-07-29 13:06:46 +02:00
parent 1b28767805
commit 2a52e409fb
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
5 changed files with 11 additions and 4 deletions

View file

@ -11,7 +11,7 @@ imports = [
./modules/force-copies.nix ./modules/force-copies.nix
./modules/battery.nix ./modules/battery.nix
./modules/laptop.nix ./modules/laptop.nix
./modules/accounting.nix ./modules/accounting
./modules/rustdev.nix ./modules/rustdev.nix
./modules/latex.nix ./modules/latex.nix
./modules/sleep-nag.nix ./modules/sleep-nag.nix

View file

@ -3,8 +3,12 @@ with lib;
{ {
options.m-0.accounting.enable = mkEnableOption "Accounting"; options.m-0.accounting.enable = mkEnableOption "Accounting";
options.m-0.accounting.config = mkOption {
type = types.str;
};
config = mkIf config.m-0.accounting.enable { config = mkIf config.m-0.accounting.enable {
home.file.".config/jali/config.py".text = config.m-0.accounting.config;
home.packages = with pkgs; [ home.packages = with pkgs; [
hledger hledger
haskellPackages.hledger-ui haskellPackages.hledger-ui

View file

@ -86,11 +86,11 @@ fn main() -> Result<()> {
), ),
term( term(
"Private Buchhaltung", "Private Buchhaltung",
"hledger -f data/aktuell/lebenshaltung/buchhaltung/buchhaltung.ledger ui" "hledger -f ~/git/buchhaltung.ledger ui"
), ),
term( term(
"CDA Buchhaltung", "CDA Buchhaltung",
"hledger -f data/aktuell/ccc/cda/vorstand/buchhaltung/buchhaltung.ledger ui" "hledger -f ~/git/cda/buchhaltung/buchhaltung.ledger ui"
), ),
] ]
), ),

View file

@ -10,7 +10,10 @@ m-0.laptop.enable = true;
m-0.sleep-nag.enable = true; m-0.sleep-nag.enable = true;
m-0.battery.enable = true; m-0.battery.enable = true;
m-0.latex.enable = true; m-0.latex.enable = true;
m-0.accounting.enable = true; m-0.accounting = {
enable = true;
config = builtins.readFile secret/jaliconfig.py;
};
m-0.graphical.enable = true; m-0.graphical.enable = true;
m-0.rustdev.enable = true; m-0.rustdev.enable = true;
m-0.taskwarrior.enable = true; m-0.taskwarrior.enable = true;

Binary file not shown.