Created
February 20, 2020 19:46
-
-
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
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, ... }: | |
| # 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