2026-02-28 00:06:25 +00:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports =
|
|
|
|
|
lib.optional (builtins.pathExists ./hardware-configuration.nix)
|
|
|
|
|
./hardware-configuration.nix;
|
|
|
|
|
|
|
|
|
|
networking.hostName = "nixos-template";
|
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
|
networking.nameservers = [ "1.1.1.1" "8.8.8.8" ];
|
|
|
|
|
|
|
|
|
|
boot.loader.systemd-boot.enable = lib.mkForce false;
|
|
|
|
|
boot.loader.grub = {
|
|
|
|
|
enable = true;
|
|
|
|
|
device = "/dev/sda";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
services.qemuGuest.enable = true;
|
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
services.tailscale.enable = true;
|
|
|
|
|
services.openssh.settings = {
|
|
|
|
|
PasswordAuthentication = false;
|
|
|
|
|
KbdInteractiveAuthentication = false;
|
|
|
|
|
PermitRootLogin = "prohibit-password";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
programs.fish.enable = true;
|
|
|
|
|
|
|
|
|
|
users.users.micqdf = {
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
extraGroups = [ "wheel" ];
|
|
|
|
|
shell = pkgs.fish;
|
|
|
|
|
openssh.authorizedKeys.keys = [
|
2026-02-28 12:36:20 +00:00
|
|
|
"REPLACE_WITH_SINGLE_LINE_PUBLIC_KEY"
|
2026-02-28 00:06:25 +00:00
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
security.sudo.wheelNeedsPassword = false;
|
|
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
btop
|
|
|
|
|
curl
|
|
|
|
|
dig
|
|
|
|
|
eza
|
|
|
|
|
fd
|
|
|
|
|
fzf
|
|
|
|
|
git
|
|
|
|
|
htop
|
|
|
|
|
jq
|
|
|
|
|
ripgrep
|
2026-02-28 00:33:14 +00:00
|
|
|
tailscale
|
2026-02-28 00:06:25 +00:00
|
|
|
tree
|
|
|
|
|
unzip
|
|
|
|
|
vim
|
2026-02-28 00:44:08 +00:00
|
|
|
neovim
|
2026-02-28 00:06:25 +00:00
|
|
|
wget
|
|
|
|
|
];
|
|
|
|
|
|
2026-02-28 00:44:08 +00:00
|
|
|
system.stateVersion = "25.05";
|
2026-02-28 00:06:25 +00:00
|
|
|
}
|