30 lines
763 B
Nix
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
|
|
'';
|
|
|
|
}
|