Files
dotfiles/hosts/common.nix
T
2026-07-09 10:52:27 +01:00

78 lines
1.6 KiB
Nix

{ 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 AAAAC3NzaC1lZDI1NTE5AAAAILMeU7L0yQ4+O1GME4D4UM4f6nqua+pWt/zdsMvyHV94 u0_a309@localhost # 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";
}