diff options
Diffstat (limited to 'nixos/configuration.nix')
-rw-r--r-- | nixos/configuration.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nixos/configuration.nix b/nixos/configuration.nix new file mode 100644 index 000000000000..197007abe29d --- /dev/null +++ b/nixos/configuration.nix @@ -0,0 +1,35 @@ +{ 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"; +} |