feat: add exercism module
This commit is contained in:
parent
cf47ac19a8
commit
59c843d452
4 changed files with 23 additions and 2 deletions
|
@ -21,6 +21,7 @@
|
||||||
impermanence.enable = true;
|
impermanence.enable = true;
|
||||||
};
|
};
|
||||||
programs.hyprland.monitors = [ "HDMI-A-1,3840x2160,auto,1.2" ",preferred,auto,1" ];
|
programs.hyprland.monitors = [ "HDMI-A-1,3840x2160,auto,1.2" ",preferred,auto,1" ];
|
||||||
|
programs.exercism.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# BOOT
|
# BOOT
|
||||||
|
|
19
modules/programs/exercism.nix
Normal file
19
modules/programs/exercism.nix
Normal 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
BIN
secrets/exercism.age
Normal file
Binary file not shown.
|
@ -23,6 +23,7 @@ in
|
||||||
"wireguard-private-key.age".publicKeys = personal;
|
"wireguard-private-key.age".publicKeys = personal;
|
||||||
"webis.age".publicKeys = hosts-personal ++ [ scadspc25 moritz ];
|
"webis.age".publicKeys = hosts-personal ++ [ scadspc25 moritz ];
|
||||||
"webis-ssh.age".publicKeys = hosts-personal ++ [ scadspc25 moritz ];
|
"webis-ssh.age".publicKeys = hosts-personal ++ [ scadspc25 moritz ];
|
||||||
"root-password.age".publicKeys = hosts-personal ++ [ moritz ];
|
"root-password.age".publicKeys = personal;
|
||||||
"moritz-password.age".publicKeys = hosts-personal ++ [ moritz ];
|
"moritz-password.age".publicKeys = personal;
|
||||||
|
"exercism.age".publicKeys = personal;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue