tvl-depot/nixos/configuration.nix
William Carroll 01f0ebfa32 Support basic nixos/configuration.nix
I'm attempting to configure an old Acer laptop that I bought at a used
electronics store in Shepherd's Bush (~100GBP) as my server. I'd like to install
NixOS on it. The configuration.nix herein defines a starting point for the
configuration for that machine. It isn't currently working.

Troubleshooting and solutions forthcoming...
2020-02-20 19:49:15 +00:00

35 lines
804 B
Nix

{ 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";
}