44 lines
951 B
Nix
44 lines
951 B
Nix
{ config, pkgs, inputs, lib, ... }: {
|
|
imports = [
|
|
../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
|
|
];
|
|
networking.hostName = "mb1";
|
|
environment.systemPackages = with pkgs; [ ];
|
|
|
|
boot.loader.grub = {
|
|
devices = [ "/dev/vda" ];
|
|
efiSupport = true;
|
|
efiInstallAsRemovable = true;
|
|
};
|
|
|
|
zramSwap = {
|
|
enable = true;
|
|
algorithm = "zstd";
|
|
memoryPercent = 100;
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|