Created
June 3, 2018 12:02
-
-
Save expipiplus1/0dc67fbd61bb75b23c25cc7c20b3a2e3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ ./hardware-configuration.nix | |
]; | |
boot.loader.grub.enable = false; | |
boot.loader.generic-extlinux-compatible.enable = true; | |
boot.consoleLogLevel = pkgs.lib.mkDefault 7; | |
boot.kernelPackages = pkgs.recurseIntoAttrs pkgs.linuxPackages_testing; | |
boot.kernelParams = [ | |
"cma=32M" | |
"console=ttyS0,115200n8" | |
"console=ttyAMA0,115200n8" | |
"console=tty0" | |
]; | |
hardware.enableRedistributableFirmware = true; | |
networking.hostName = "nebula"; # Define your hostname. | |
time.timeZone = "Asia/Singapore"; | |
environment.systemPackages = with pkgs; [ | |
vim | |
bmon | |
]; | |
programs.zsh.enable = true; | |
# List services that you want to enable: | |
# Enable the OpenSSH daemon. | |
services.openssh.enable = true; | |
# Open ports in the firewall. | |
# networking.firewall.allowedTCPPorts = [ ... ]; | |
# networking.firewall.allowedUDPPorts = [ ... ]; | |
# Or disable the firewall altogether. | |
# networking.firewall.enable = false; | |
users.extraUsers.jophish = { | |
isNormalUser = true; | |
uid = 1000; | |
shell = pkgs.zsh; | |
extraGroups = [ "wheel" ]; | |
openssh.authorizedKeys.keys = [ | |
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDNConZIB5Qvg3NP/UPsXidmOrxN3vKyfix+3RoaIrYos63J85nFqVd9IVfyWbQ+AnRcb4W51jvRskJTjDQRql5kqlunoHpggUCR5JEtgADNrAAT7Fn2ETGIUXBZ7Uk6Fsqm7U5g0PDb35pPYXgGssrxaabA4Ao+Xf2DmZGbJqJcl/6EotQBNqieFBWz+PU+BQR0iqCKF823bfrLWJm8+kaoETAve6iyHUAJcdBImJ1A968Qx2iPFvQFpDk/cACQHUIRtF7QvT4FE+PEQETMEVJtkLtjt8reenmUTSXggw46KPFmC+WEwWTb62tAyvbSwe7xhbXXIzWYXsLLxB+YQN9 [email protected]" | |
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFErWB61gZadEEFteZYWZm8QRwabpl4kDHXsm0/rsLqoyWJN5Y4zF4kowSGyf92LfJu9zNBs2viuT3vmsLfg6r4wkbVyujpEo3JLuV79r9K8LcM32wA52MvQYATEzxuamZPZCBT9fI/2M6bC9lz67RQ5IoENfjZVCstOegSmODmOvGUs6JjrB40slB+4YXCVFypYq3uTyejaBMtKdu1S4TWUP8WRy8cWYmCt1+a6ACV2yJcwnhSoU2+QKt14R4XZ4QBSk4hFgiw64Bb3WVQlfQjz3qA4j5Tc8P3PESKJcKW/+AsavN1I2FzdiX1CGo2OL7p9TcZjftoi5gpbmzRX05 j@riza" | |
]; | |
}; | |
# This value determines the NixOS release with which your system is to be | |
# compatible, in order to avoid breaking some software such as database | |
# servers. You should change this only after NixOS release notes say you | |
# should. | |
system.nixos.stateVersion = "18.09"; # Did you read the comment? | |
nix.nixPath = [ "nixpkgs=/etc/nixpkgs" "nixos-config=/etc/nixos/configuration.nix" ]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment