Created
December 22, 2019 21:41
-
-
Save Th0rgal/3b2e2b7993dc996a63aaa56d9461758f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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; | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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