Skip to content

Instantly share code, notes, and snippets.

@wpcarro
Created February 20, 2020 19:46
Show Gist options
  • Select an option

  • Save wpcarro/4e20d5bf1253a734ccc050062c89ca17 to your computer and use it in GitHub Desktop.

Select an option

Save wpcarro/4e20d5bf1253a734ccc050062c89ca17 to your computer and use it in GitHub Desktop.
Posting this here so that I can download it when I'm installing NixOS
{ config, pkgs, ... }:
# TODO(wpcarro): Refactor to prefer nested attribute for configuration values
# instead of using one-liner field accessors.
{
imports = [
./hardware-configuration.nix
];
# TODO(wpcarro): Is this correct? I believe my laptop only supports BIOS and
# not UEFI.
boot.loader.grub.device = "/dev/sda";
networking.hostName = "socrates";
networking.wireless.enable = true;
# Don't remove this.
networking.useDHCP = false;
networking.interfaces.enp2s0f1.useDHCP = true;
networking.interfaces.wlp3s0.useDHCP = true;
time.timeZone = "UTC";
environment.systemPackages = with pkgs; [
emacs
];
services.openssh.enable = true;
users.users.wpcarro = {
isNormalUser = true;
extraGroups = [ "wheel" ];
};
system.stateVersion = "20.09";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment