feat: add exercism module

This commit is contained in:
Moritz Böhme 2024-02-03 20:49:24 +01:00
parent cf47ac19a8
commit 59c843d452
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
4 changed files with 23 additions and 2 deletions

View file

@ -0,0 +1,19 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.my.programs.exercism;
in
{
options.my.programs.exercism.enable = mkEnableOption "Exercism";
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ exercism ];
age.secrets.exercism = {
path = "/home/moritz/.config/exercism/user.json";
file = ../../secrets/exercism.age;
owner = "1000";
mode = "500";
};
};
}