2023-04-07 11:34:18 +01:00
|
|
|
{ config, pkgs, inputs, lib, ... }: {
|
|
|
|
imports = [
|
|
|
|
../cli.nix
|
|
|
|
./disks.nix
|
|
|
|
"${inputs.nixpkgs-stable}/nixos/modules/profiles/qemu-guest.nix"
|
2023-04-07 21:26:37 +01:00
|
|
|
"${inputs.nixpkgs-nixos-unstable}/nixos/modules/services/misc/atuin.nix"
|
2023-04-17 14:11:38 +01:00
|
|
|
../nginx.nix
|
2023-04-07 11:34:18 +01:00
|
|
|
];
|
|
|
|
networking.hostName = "mb1";
|
|
|
|
environment.systemPackages = with pkgs; [ ];
|
|
|
|
|
|
|
|
boot.loader.grub = {
|
|
|
|
devices = [ "/dev/vda" ];
|
|
|
|
efiSupport = true;
|
|
|
|
efiInstallAsRemovable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
zramSwap = {
|
|
|
|
enable = true;
|
|
|
|
algorithm = "zstd";
|
2023-04-17 14:11:38 +01:00
|
|
|
memoryPercent = 100;
|
2023-04-07 11:34:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
time.timeZone = "Europe/London";
|
2023-04-07 21:26:37 +01:00
|
|
|
|
|
|
|
disabledModules = [ "services/misc/atuin.nix" ];
|
|
|
|
|
2023-04-17 14:11:38 +01:00
|
|
|
services.nginx = {
|
|
|
|
virtualHosts = {
|
|
|
|
"atuin.cyplo.dev" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
locations."/" = { proxyPass = "http://127.0.0.1:8888"; };
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-04-07 21:26:37 +01:00
|
|
|
services.atuin = {
|
2023-04-17 14:11:38 +01:00
|
|
|
host = "127.0.0.1";
|
|
|
|
port = 8888;
|
2023-04-07 21:26:37 +01:00
|
|
|
enable = true;
|
2023-04-17 14:11:38 +01:00
|
|
|
openRegistration = false;
|
2023-04-07 21:26:37 +01:00
|
|
|
};
|
2023-04-07 11:34:18 +01:00
|
|
|
}
|