refactor atuin out

This commit is contained in:
Cyryl Płotnicki 2023-04-17 15:19:45 +01:00
parent e663596473
commit e60b48be55
2 changed files with 26 additions and 21 deletions

24
nixos/boxes/mb1/atuin.nix Normal file
View file

@ -0,0 +1,24 @@
{ config, pkgs, inputs, lib, ... }: {
imports = [
"${inputs.nixpkgs-nixos-unstable}/nixos/modules/services/misc/atuin.nix"
../nginx.nix
];
disabledModules = [ "services/misc/atuin.nix" ];
services.nginx = {
virtualHosts = {
"atuin.cyplo.dev" = {
forceSSL = true;
enableACME = true;
locations."/" = { proxyPass = "http://127.0.0.1:8888"; };
};
};
};
services.atuin = {
host = "127.0.0.1";
port = 8888;
enable = true;
openRegistration = false;
};
}

View file

@ -1,10 +1,9 @@
{ config, pkgs, inputs, lib, ... }: {
imports = [
"${inputs.nixpkgs-stable}/nixos/modules/profiles/qemu-guest.nix"
../cli.nix
./disks.nix
"${inputs.nixpkgs-stable}/nixos/modules/profiles/qemu-guest.nix"
"${inputs.nixpkgs-nixos-unstable}/nixos/modules/services/misc/atuin.nix"
../nginx.nix
./atuin.nix
];
networking.hostName = "mb1";
environment.systemPackages = with pkgs; [ ];
@ -23,22 +22,4 @@
time.timeZone = "Europe/London";
disabledModules = [ "services/misc/atuin.nix" ];
services.nginx = {
virtualHosts = {
"atuin.cyplo.dev" = {
forceSSL = true;
enableACME = true;
locations."/" = { proxyPass = "http://127.0.0.1:8888"; };
};
};
};
services.atuin = {
host = "127.0.0.1";
port = 8888;
enable = true;
openRegistration = false;
};
}