mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-23 09:58:27 +01:00
Compare commits
No commits in common. "10a1eafca4f6598ff6a2c7321ceb090678563e91" and "fa2bef14f4fcd50030d9fd4673af053a91ac29d5" have entirely different histories.
10a1eafca4
...
fa2bef14f4
5 changed files with 5 additions and 56 deletions
|
|
@ -46,11 +46,6 @@
|
||||||
domain = "budget.${privateDomain}";
|
domain = "budget.${privateDomain}";
|
||||||
doBackups = true;
|
doBackups = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
atuin = {
|
|
||||||
enable = true;
|
|
||||||
domain = "atuin.${privateDomain}";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
osConfig,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
options.custom.programs.atuin.enable = lib.mkEnableOption "";
|
|
||||||
|
|
||||||
config = lib.mkIf config.custom.programs.atuin.enable {
|
|
||||||
programs.atuin = {
|
|
||||||
enable = true;
|
|
||||||
forceOverwriteSettings = true;
|
|
||||||
flags = [ "--disable-up-arrow" ];
|
|
||||||
settings = {
|
|
||||||
sync_address = "https://atuin.${osConfig.custom.networking.overlay.domain}";
|
|
||||||
key_path = pkgs.writeText "atuin-key" "3AAgzNnMicyALmrMt8ywzL/Mv3LMkEI/zKdPzLDMwCB9KCAwWsybzOrMn8zmzLZszIgMMQ==\n";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -44,6 +44,7 @@ in
|
||||||
"Pictures"
|
"Pictures"
|
||||||
"Projects"
|
"Projects"
|
||||||
"Videos"
|
"Videos"
|
||||||
|
".local/share/zsh"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -134,7 +135,10 @@ in
|
||||||
restic.backups.syncthing = lib.mkIf cfg.doBackups {
|
restic.backups.syncthing = lib.mkIf cfg.doBackups {
|
||||||
conflictingService = "syncthing.service";
|
conflictingService = "syncthing.service";
|
||||||
paths = [ dataDir ];
|
paths = [ dataDir ];
|
||||||
extraConfig.exclude = [ "${dataDir}/Downloads" ];
|
extraConfig.exclude = [
|
||||||
|
"${dataDir}/Downloads"
|
||||||
|
"${dataDir}/.local/share/zsh"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.custom.web-services.atuin;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.custom.web-services.atuin = {
|
|
||||||
enable = lib.mkEnableOption "";
|
|
||||||
domain = lib.mkOption {
|
|
||||||
type = lib.types.nonEmptyStr;
|
|
||||||
default = "";
|
|
||||||
};
|
|
||||||
port = lib.mkOption {
|
|
||||||
type = lib.types.port;
|
|
||||||
default = 8849;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
services.atuin = {
|
|
||||||
enable = true;
|
|
||||||
openRegistration = true;
|
|
||||||
inherit (cfg) port;
|
|
||||||
};
|
|
||||||
|
|
||||||
custom.services.caddy.virtualHosts.${cfg.domain}.port = cfg.port;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -27,7 +27,6 @@
|
||||||
aliases.enable = true;
|
aliases.enable = true;
|
||||||
direnv.enable = true;
|
direnv.enable = true;
|
||||||
};
|
};
|
||||||
atuin.enable = true;
|
|
||||||
ssh.enable = true;
|
ssh.enable = true;
|
||||||
git.enable = true;
|
git.enable = true;
|
||||||
kitty.enable = true;
|
kitty.enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue