{ config, lib, pkgs, ... }: { imports = [ ../modules/secrets ]; boot.resumeDevice = if config.swapDevices != [] then (builtins.head config.swapDevices).device else null; nixpkgs.config.allowUnfree = true; boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.consoleMode = "max"; boot.loader.efi.canTouchEfiVariables = true; nix.settings.experimental-features = [ "nix-command" "flakes" ]; networking.networkmanager.enable = true; programs.fish.enable = true; programs.tmux.enable = true; programs.neovim = { enable = true; defaultEditor = true; }; time.timeZone = "Europe/London"; i18n.defaultLocale = "en_US.UTF-8"; console = { font = "Lat2-Terminus16"; useXkbConfig = true; }; users.users.root.shell = pkgs.fish; users.users.me = { isNormalUser = true; shell = pkgs.fish; extraGroups = [ "wheel" "video" "networkmanager" "input" ]; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMPFh01e9doyInt0980V8T4xaakcSaOyXaxxYE4+oSwM me@syedm # server" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJFUwk54CNtSLUyXSTLsIs5KXgEsjOgE4HGlA4FacKjV me@tardis # msi laptop" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC13WMc8GJE3lB1YJ6MtYW7PLqfT9H0uGz76pQBDxIzz me@might # mobile" ]; }; security.sudo.wheelNeedsPassword = false; services.getty = { autologinUser = "me"; autologinOnce = true; }; environment.systemPackages = with pkgs; [ neovim gitui libinput gnupg age bind wget curl unzip git ]; # DO NOT CHNAGE, EVER! system.stateVersion = "26.05"; }