mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-23 06:28:28 +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}";
|
||||
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"
|
||||
"Projects"
|
||||
"Videos"
|
||||
".local/share/zsh"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
@ -134,7 +135,10 @@ in
|
|||
restic.backups.syncthing = lib.mkIf cfg.doBackups {
|
||||
conflictingService = "syncthing.service";
|
||||
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;
|
||||
direnv.enable = true;
|
||||
};
|
||||
atuin.enable = true;
|
||||
ssh.enable = true;
|
||||
git.enable = true;
|
||||
kitty.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue