42 lines
722 B
Nix
42 lines
722 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
username,
|
|
...
|
|
}:
|
|
{
|
|
system.stateVersion = "24.11";
|
|
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
|
|
../../system/core
|
|
../../programs/ssh.nix
|
|
../../programs/utility.nix
|
|
../../programs/shell.nix
|
|
../../programs/docker.nix
|
|
];
|
|
environment.systemPackages = with pkgs; [
|
|
];
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
users.users.${username} = {
|
|
extraGroups = [
|
|
"docker"
|
|
];
|
|
shell = pkgs.fish;
|
|
openssh.authorizedKeys.keys = [
|
|
];
|
|
};
|
|
programs.nix-ld.enable = true;
|
|
|
|
services.openssh.enable = true;
|
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
22
|
|
];
|
|
networking.firewall.allowedUDPPorts = [ ];
|
|
}
|