Skip to content

Instantly share code, notes, and snippets.

@expipiplus1
Created June 3, 2018 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save expipiplus1/d797d61afe9a6b61759d2a70216f2856 to your computer and use it in GitHub Desktop.
Save expipiplus1/d797d61afe9a6b61759d2a70216f2856 to your computer and use it in GitHub Desktop.
{ 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 jophish@cardassia.local"
"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" ];
}
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, ... }:
{
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
boot.initrd.availableKernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
fsType = "ext4";
};
fileSystems."/nix/store" =
{ device = "/nix/store";
fsType = "none";
options = [ "bind" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/2178-694E";
fsType = "vfat";
};
swapDevices =
[ { device = "/root/swapfile"; }
];
nix.maxJobs = lib.mkDefault 4;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment