home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 09b8ae0c319e0c879ab3ec0f7d1eae63c170d417
parent 673106d186db7255221bb08187735d41b3267dcb
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Sun, 24 Mar 2019 14:50:31 +0100

profiles: add fincances profile with ledger 💃

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mmachines/hokkaido.nix | 2+-
Mmachines/wakasu.nix | 1+
Mmodules/module-list.nix | 1+
Amodules/profiles/finances.nix | 20++++++++++++++++++++
4 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/machines/hokkaido.nix b/machines/hokkaido.nix @@ -10,6 +10,7 @@ rust.enable = true; java = { enable = true; javaPackage = pkgs.jre; }; }; + profiles.finances.enable = true; profiles.laptop.enable = true; profiles.media.enable = true; profiles.mails = { @@ -18,7 +19,6 @@ }; programs.podman.enable = true; home.packages = with pkgs; [ - ledger slack ]; } diff --git a/machines/wakasu.nix b/machines/wakasu.nix @@ -20,6 +20,7 @@ rust.enable = true; vscode.enable = true; }; + profiles.finances.enable = true; profiles.laptop.enable = true; profiles.media.enable = true; profiles.mails.enable = true; diff --git a/modules/module-list.nix b/modules/module-list.nix @@ -12,6 +12,7 @@ ./profiles/dev.rust.nix ./profiles/docker.nix ./profiles/emacs.nix + ./profiles/finances.nix ./profiles/fish.nix ./profiles/gaming.nix ./profiles/gcloud.nix diff --git a/modules/profiles/finances.nix b/modules/profiles/finances.nix @@ -0,0 +1,20 @@ +{ config, lib, pkgs, ... }: + +with lib; +let + cfg = config.profiles.finances; +in +{ + options = { + profiles.finances = { + enable = mkOption { + default = false; + description = "Enable fincances profile"; + type = types.bool; + }; + }; + }; + config = mkIf cfg.enable { + home.packages = with pkgs; [ ledger ]; + }; +}