Skip to content

Instantly share code, notes, and snippets.

@Th0rgal
Created December 22, 2019 21:41
Show Gist options
  • Save Th0rgal/3b2e2b7993dc996a63aaa56d9461758f to your computer and use it in GitHub Desktop.
Save Th0rgal/3b2e2b7993dc996a63aaa56d9461758f to your computer and use it in GitHub Desktop.
{ pkgs, ... }: {
imports = [
./hardware-configuration.nix
./networking.nix
./users.nix
];
boot = {
loader = {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
};
kernelParams = [ "net.ifnames=0" "biosdevname=0" ];
kernelPackages = pkgs.linuxPackages_latest;
cleanTmpDir = true;
};
programs.fish.enable = true;
}
{ lib, ... }: {
services.openssh = {
enable = true;
ports = [ 4387 ];
permitRootLogin = "no";
passwordAuthentication = false;
};
networking = {
hostName = "hestia";
firewall = {
allowPing = true;
allowedTCPPorts = [ 8080 ];
};
useDHCP = false;
interfaces.ens3.useDHCP = true;
};
}
{ pkgs, ... }: {
users.users.thomas = {
isNormalUser = true;
extraGroups = [ "wheel" ];
shell = pkgs.fish;
openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDcVl0JGuR8XLj2xnGhHqazghmuQWAFdxVVMOyQdYqJSp1MSWnRwQ7uaLGfBnahBzxlw92VLrcuG20rfGHH8EFy/WU7kG0BFGbjLiPtUQdN+XHu9469haJjqCm6Uol0Dj/dnM7XbQlhRal/h2iYtxZIIbPr3quSrmvqu3fZxJ5LNtlqW9J6h8aC9g3iz6nzXzZVY5c7URZQxWnBUVx4z5haHqUkSwCmUyrE6cAsWSMH9gR/8zvYg4sbh5iRRUgt1EOlgANDaKabCd6Ee5g9v54E9svoQEzD03qKgbMIV2cFc88KgfKXgEyUK6A0tEwGb2KILdIJeU/Z4bSUPqdbnDdx thoma@DESK" ];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment