Compare commits
6 Commits
cb5feba4a0
...
778fcb1b9d
Author | SHA1 | Date |
---|---|---|
Mateusz Słodkowicz | 778fcb1b9d | |
Mateusz Słodkowicz | 4cd531103a | |
Mateusz Słodkowicz | f374e1a698 | |
Mateusz Słodkowicz | a0a81309cb | |
Mateusz Słodkowicz | 5fc7a32788 | |
Mateusz Słodkowicz | 214c293128 |
|
@ -29,9 +29,10 @@
|
||||||
i18n.defaultLocale = "pl_PL.UTF-8";
|
i18n.defaultLocale = "pl_PL.UTF-8";
|
||||||
services.xserver.xkb.layout = "pl";
|
services.xserver.xkb.layout = "pl";
|
||||||
console = {
|
console = {
|
||||||
font = "lat2-16";
|
enable = true;
|
||||||
# keyMap = "pl";
|
earlySetup = true;
|
||||||
useXkbConfig = true; # use xkbOptions in tty.
|
font = "${pkgs.kbd}/share/consolefonts/lat2-16.psfu.gz";
|
||||||
|
keyMap = "pl";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
|
|
Binary file not shown.
|
@ -10,23 +10,39 @@
|
||||||
cfg = config.valkyrieService.secureyoursoul;
|
cfg = config.valkyrieService.secureyoursoul;
|
||||||
in
|
in
|
||||||
lib.mkIf cfg.enable {
|
lib.mkIf cfg.enable {
|
||||||
systemd.timers.secureyoursoul = {
|
systemd.timers.secureyoursoul-steam = {
|
||||||
wantedBy = [ "timers.target" ];
|
wantedBy = [ "timers.target" ];
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnCalendar = "*-*-1,7,14,21 3:00:00";
|
OnCalendar = "*-*-1,7,14,21 3:00:00";
|
||||||
Persistent = true;
|
Persistent = true;
|
||||||
Unit = "secureyoursoul.service";
|
Unit = "secureyoursoul-steam.service";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
systemd.timers.secureyoursoul-p1 = {
|
||||||
|
wantedBy = [ "timers.target" ];
|
||||||
|
timerConfig = {
|
||||||
|
OnCalendar = "*-*-3,9,16,23 3:00:00";
|
||||||
|
Persistent = true;
|
||||||
|
Unit = "secureyoursoul-p1.service";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
systemd.timers.secureyoursoul-p2 = {
|
||||||
|
wantedBy = [ "timers.target" ];
|
||||||
|
timerConfig = {
|
||||||
|
OnCalendar = "*-*-5,11,18,25 3:00:00";
|
||||||
|
Persistent = true;
|
||||||
|
Unit = "secureyoursoul-p2.service";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.secureyoursoul = {
|
systemd.services.secureyoursoul-steam = {
|
||||||
description = "Make curl requests to archive related things";
|
description = "Make curl requests to archive steam related things";
|
||||||
path = [ pkgs.coreutils pkgs.util-linux pkgs.curl ];
|
path = [ pkgs.coreutils pkgs.util-linux pkgs.curl ];
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
serviceConfig.RemainAfterExit = false;
|
serviceConfig.RemainAfterExit = false;
|
||||||
script = ''
|
script = ''
|
||||||
STEAM_IDS=( ${ builtins.foldl' (x: y: x +"\""+ y + "\" ") "" materusArg.to_save.steamids })
|
STEAM_IDS=( ${ builtins.foldl' (x: y: x +"\""+ y + "\" ") "" materusArg.to_save.steamids })
|
||||||
EXTRA_LINKS=( ${ builtins.foldl' (x: y: x +"\""+ y + "\" ") "" materusArg.to_save.extraLinks })
|
EXTRA_LINKS=( ${ builtins.foldl' (x: y: x +"\""+ y + "\" ") "" materusArg.to_save.extraLinks-steam })
|
||||||
|
|
||||||
steamladder() {
|
steamladder() {
|
||||||
for id in ''${STEAM_IDS[@]}; do
|
for id in ''${STEAM_IDS[@]}; do
|
||||||
|
@ -69,6 +85,56 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
systemd.services.secureyoursoul-p1 = {
|
||||||
|
description = "Make curl requests to archive related things";
|
||||||
|
path = [ pkgs.coreutils pkgs.util-linux pkgs.curl ];
|
||||||
|
serviceConfig.Type = "oneshot";
|
||||||
|
serviceConfig.RemainAfterExit = false;
|
||||||
|
script = ''
|
||||||
|
EXTRA_LINKS=( ${ builtins.foldl' (x: y: x +"\""+ y + "\" ") "" materusArg.to_save.extraLinks1 })
|
||||||
|
webarchive(){
|
||||||
|
for link in ''${EXTRA_LINKS[@]}; do
|
||||||
|
curl -X POST -H "Accept: application/json" \
|
||||||
|
-H "Authorization: LOW ''$(cat ${config.sops.secrets.webarchive-accesskey.path}):''$(cat ${config.sops.secrets.webarchive-secretkey.path})" \
|
||||||
|
-d"url=$link" \
|
||||||
|
-d"capture_outlinks=1" \
|
||||||
|
-d"capture_screenshot=on" \
|
||||||
|
-d"capture_all=on" \
|
||||||
|
"https://web.archive.org/save";
|
||||||
|
sleep 180;
|
||||||
|
done;
|
||||||
|
|
||||||
|
}
|
||||||
|
webarchive
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services.secureyoursoul-p2 = {
|
||||||
|
description = "Make curl requests to archive related things - part 2";
|
||||||
|
path = [ pkgs.coreutils pkgs.util-linux pkgs.curl ];
|
||||||
|
serviceConfig.Type = "oneshot";
|
||||||
|
serviceConfig.RemainAfterExit = false;
|
||||||
|
script = ''
|
||||||
|
EXTRA_LINKS=( ${ builtins.foldl' (x: y: x +"\""+ y + "\" ") "" materusArg.to_save.extraLinks2 })
|
||||||
|
webarchive(){
|
||||||
|
for link in ''${EXTRA_LINKS[@]}; do
|
||||||
|
curl -X POST -H "Accept: application/json" \
|
||||||
|
-H "Authorization: LOW ''$(cat ${config.sops.secrets.webarchive-accesskey.path}):''$(cat ${config.sops.secrets.webarchive-secretkey.path})" \
|
||||||
|
-d"url=$link" \
|
||||||
|
-d"capture_outlinks=1" \
|
||||||
|
-d"capture_screenshot=on" \
|
||||||
|
-d"capture_all=on" \
|
||||||
|
"https://web.archive.org/save";
|
||||||
|
sleep 180;
|
||||||
|
done;
|
||||||
|
|
||||||
|
}
|
||||||
|
webarchive
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,16 @@ in
|
||||||
{
|
{
|
||||||
options.materus.profile.zsh.enable = materusArg.pkgs.lib.mkBoolOpt true "Enable materus system zsh config";
|
options.materus.profile.zsh.enable = materusArg.pkgs.lib.mkBoolOpt true "Enable materus system zsh config";
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
users.defaultUserShell = pkgs.zsh;
|
||||||
|
environment.shells = [ pkgs.zsh ];
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableGlobalCompInit=false;
|
enableGlobalCompInit=false;
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
|
if [[ $(${pkgs.coreutils}/bin/echo $TTY | ${pkgs.gnugrep}/bin/grep "/dev/tty") ]] && [[ "$TERM" == "linux" ]]; then
|
||||||
|
setfont lat2-16 -m 8859-2
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ ''${__MATERUS_HM_ZSH:-0} == 0 ]]; then
|
if [[ ''${__MATERUS_HM_ZSH:-0} == 0 ]]; then
|
||||||
source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
|
source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue