mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 23:29:08 +01:00
Compare commits
4 commits
fa2bef14f4
...
10a1eafca4
| Author | SHA1 | Date | |
|---|---|---|---|
| 10a1eafca4 | |||
| e520ed03ea | |||
| c64820af7f | |||
| eef54ae432 |
5 changed files with 56 additions and 5 deletions
|
|
@ -46,6 +46,11 @@
|
||||||
domain = "budget.${privateDomain}";
|
domain = "budget.${privateDomain}";
|
||||||
doBackups = true;
|
doBackups = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
atuin = {
|
||||||
|
enable = true;
|
||||||
|
domain = "atuin.${privateDomain}";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
22
modules/home/programs/atuin.nix
Normal file
22
modules/home/programs/atuin.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
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,7 +44,6 @@ in
|
||||||
"Pictures"
|
"Pictures"
|
||||||
"Projects"
|
"Projects"
|
||||||
"Videos"
|
"Videos"
|
||||||
".local/share/zsh"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -135,10 +134,7 @@ 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 = [
|
extraConfig.exclude = [ "${dataDir}/Downloads" ];
|
||||||
"${dataDir}/Downloads"
|
|
||||||
"${dataDir}/.local/share/zsh"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
27
modules/system/web-services/atuin.nix
Normal file
27
modules/system/web-services/atuin.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
{ 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,6 +27,7 @@
|
||||||
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