Files
nixos-config/hosts/loki-nixos/configuration.nix
T
2026-01-20 23:02:45 +03:00

30 lines
763 B
Nix

{ config, pkgs, ... }:
{
networking.hostName = "loki-nixos";
imports = [ ../../nixos/custom.nix ./hardware-configuration.nix ];
fileSystems."/".options = [ "ssd" "noatime" "compress=zstd" ];
swapDevices = [{
device = "/swapfile";
size = 16 * 1024;
randomEncryption.enable = true;
}];
boot.resumeDevice = "/dev/nvme0n1p2";
# -- tmp --
services.xserver.enable = false;
services.displayManager.gdm.enable = false;
services.getty.autologinUser = "krosh";
services.getty.autologinOnce = true;
programs.zsh.enable = true;
programs.zsh.loginShellInit = ''
if [ "$(tty)" = "/dev/tty1" ] && [ -z "$WAYLAND_DISPLAY" ] && [ -z "$DISPLAY" ] && [ -z "$SSH_CONNECTION" ]; then
exec Hyprland 2>/dev/null 1>&2
fi
'';
}