diff options
author | Vincent Ambo <tazjin@google.com> | 2019-12-14T11·44+0000 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2019-12-14T11·44+0000 |
commit | 3f199f96506d2559dd51d8fff629790e057c9149 (patch) | |
tree | 2ffdc8289f70568fa63ed97097d8da04ccaee989 /infra/nixos/stallo-configuration.nix | |
parent | 83f1b769fb433c1f3be1fe38c8d31910753a6123 (diff) |
chore(nixos): Move NixOS config to infra/nixos
Diffstat (limited to 'infra/nixos/stallo-configuration.nix')
-rw-r--r-- | infra/nixos/stallo-configuration.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/infra/nixos/stallo-configuration.nix b/infra/nixos/stallo-configuration.nix new file mode 100644 index 000000000000..4af4a5fd4c22 --- /dev/null +++ b/infra/nixos/stallo-configuration.nix @@ -0,0 +1,39 @@ +# Local configuration for 'stallo' (Home desktop PC) +{ config, pkgs, ...}: + +{ + boot.initrd.luks.devices.stallo-luks.device = "/dev/disk/by-uuid/b484cf1e-a27b-4785-8bd6-fa85a004b073"; + + # Use proprietary nvidia driver + services.xserver.videoDrivers = [ "nvidia" ]; + + # Enable 32-bit compatibility for Steam: + hardware.opengl.driSupport32Bit = true; + hardware.pulseaudio.support32Bit = true; + + # Wine for Blizzard stuff + environment.systemPackages = with pkgs.unstable; [ wineWowPackages.staging winetricks ]; + + networking = { + hostName = "stallo"; + wireless.enable = true; + wireless.networks = { + # Welcome to roast club! + + "How do I computer fast?" = { + psk = "washyourface"; + # Prefer 5Ghz unless the card is acting up. + priority = 10; + }; + + "How do I computer?" = { + psk = "washyourface"; + }; + }; + # IPv6 at home, of course: + nameservers = [ + "2606:4700:4700::1111" + "2606:4700:4700::1001" + ]; + }; +} |