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...
This commit is contained in:
parent
66c38f8656
commit
01f0ebfa32
1 changed files with 35 additions and 0 deletions
35
nixos/configuration.nix
Normal file
35
nixos/configuration.nix
Normal file
|
@ -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";
|
||||||
|
}
|
Loading…
Reference in a new issue