Enter accounting in home-manager
This commit is contained in:
parent
1b28767805
commit
2a52e409fb
|
@ -11,7 +11,7 @@ imports = [
|
|||
./modules/force-copies.nix
|
||||
./modules/battery.nix
|
||||
./modules/laptop.nix
|
||||
./modules/accounting.nix
|
||||
./modules/accounting
|
||||
./modules/rustdev.nix
|
||||
./modules/latex.nix
|
||||
./modules/sleep-nag.nix
|
||||
|
|
|
@ -3,8 +3,12 @@ with lib;
|
|||
{
|
||||
|
||||
options.m-0.accounting.enable = mkEnableOption "Accounting";
|
||||
options.m-0.accounting.config = mkOption {
|
||||
type = types.str;
|
||||
};
|
||||
|
||||
config = mkIf config.m-0.accounting.enable {
|
||||
home.file.".config/jali/config.py".text = config.m-0.accounting.config;
|
||||
home.packages = with pkgs; [
|
||||
hledger
|
||||
haskellPackages.hledger-ui
|
|
@ -86,11 +86,11 @@ fn main() -> Result<()> {
|
|||
),
|
||||
term(
|
||||
"Private Buchhaltung",
|
||||
"hledger -f data/aktuell/lebenshaltung/buchhaltung/buchhaltung.ledger ui"
|
||||
"hledger -f ~/git/buchhaltung.ledger ui"
|
||||
),
|
||||
term(
|
||||
"CDA Buchhaltung",
|
||||
"hledger -f data/aktuell/ccc/cda/vorstand/buchhaltung/buchhaltung.ledger ui"
|
||||
"hledger -f ~/git/cda/buchhaltung/buchhaltung.ledger ui"
|
||||
),
|
||||
]
|
||||
),
|
||||
|
|
|
@ -10,7 +10,10 @@ m-0.laptop.enable = true;
|
|||
m-0.sleep-nag.enable = true;
|
||||
m-0.battery.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.rustdev.enable = true;
|
||||
m-0.taskwarrior.enable = true;
|
||||
|
|
BIN
hosts/apollo/secret/jaliconfig.py
Normal file
BIN
hosts/apollo/secret/jaliconfig.py
Normal file
Binary file not shown.
Loading…
Reference in a new issue