2024-12-28 22:16:46 -05:00
|
|
|
{ modulesPath, lib, pkgs, ...}:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
(modulesPath + "/profiles/qemu-guest.nix")
|
|
|
|
../common.nix
|
|
|
|
./disk-config.nix
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
loader = {
|
|
|
|
systemd-boot.enable = true;
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
};
|
|
|
|
tmp.cleanOnBoot = true;
|
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
};
|
|
|
|
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
settings.PasswordAuthentication = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
users.users.root.openssh.authorizedKeys.keys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPdhAQYy0+vS+QmyCd0MAbqbgzyMGcsuuFyf6kg2yKge yt@ytlinux"
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINyn2+OoRN4nExti+vFQ1NHEZip0slAoCH9C5/FzvgZD yt@ytnix"
|
|
|
|
];
|
|
|
|
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
|
|
|
|
environment.systemPackages = map lib.lowPrio [
|
|
|
|
pkgs.curl
|
|
|
|
pkgs.gitMinimal
|
|
|
|
];
|
|
|
|
|
|
|
|
users.users.yt = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [
|
|
|
|
"wheel"
|
|
|
|
"networkmanager"
|
|
|
|
];
|
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPdhAQYy0+vS+QmyCd0MAbqbgzyMGcsuuFyf6kg2yKge yt@ytlinux"
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINyn2+OoRN4nExti+vFQ1NHEZip0slAoCH9C5/FzvgZD yt@ytnix"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
security.sudo.enable = true;
|
|
|
|
security.sudo.wheelNeedsPassword = false;
|
2024-12-28 22:27:48 -05:00
|
|
|
|
|
|
|
# network stuff
|
|
|
|
networking.hostName = "titan";
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
networking.firewall = {
|
|
|
|
enable = true;
|
|
|
|
allowedTCPPorts = [
|
|
|
|
22
|
|
|
|
80
|
|
|
|
443
|
|
|
|
];
|
|
|
|
allowedUDPPorts = [
|
|
|
|
443
|
|
|
|
];
|
|
|
|
};
|
2024-12-28 22:16:46 -05:00
|
|
|
}
|