feat: add exercism module

nixos
Moritz Böhme 2024-02-03 20:49:24 +01:00
parent cf47ac19a8
commit 59c843d452
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
4 changed files with 23 additions and 2 deletions

View File

@ -21,6 +21,7 @@
impermanence.enable = true;
};
programs.hyprland.monitors = [ "HDMI-A-1,3840x2160,auto,1.2" ",preferred,auto,1" ];
programs.exercism.enable = true;
};
# BOOT

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";
};
};
}

BIN
secrets/exercism.age Normal file

Binary file not shown.

View File

@ -23,6 +23,7 @@ in
"wireguard-private-key.age".publicKeys = personal;
"webis.age".publicKeys = hosts-personal ++ [ scadspc25 moritz ];
"webis-ssh.age".publicKeys = hosts-personal ++ [ scadspc25 moritz ];
"root-password.age".publicKeys = hosts-personal ++ [ moritz ];
"moritz-password.age".publicKeys = hosts-personal ++ [ moritz ];
"root-password.age".publicKeys = personal;
"moritz-password.age".publicKeys = personal;
"exercism.age".publicKeys = personal;
}