kasei: misc changes

- new screen setup
- new network setup
- don't explicitly enable xserver and lightdm
- add nvidia video drivers to x11
This commit is contained in:
Oystein Kristoffer Tveit 2023-02-25 18:04:55 +01:00
parent 7ee4535963
commit 42938295ac
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 15 additions and 15 deletions

View File

@ -1,23 +1,11 @@
{ config, lib, pkgs, inputs, specialArgs, ... }:
{
imports = [
./hardware-configuration.nix
];
services.xserver.enable = true;
services.xserver.videoDrivers = ["nvidia"];
# TODO: See ../common.nix
services.xserver.displayManager.lightdm.enable = true;
machineVars = {
headless = false;
gaming = true;
development = true;
creative = true;
wlanInterface = "wlp2s0f0u7u3";
dataDrives = let
main = "/data";
in {
@ -26,11 +14,11 @@
};
screens = {
DP-4 = {
DVI-D-0 = {
primary = true;
frequency = 144;
};
HDMI-0 = {
DP-4 = {
frequency = 144;
position = "1920x0";
};
};
@ -45,6 +33,18 @@
# security.pam.services.login.unixAuth = true;
networking = {
hostName = "kasei";
networkmanager.enable = true;
interfaces.enp6s0.useDHCP = true;
firewall.enable = true;
};
services = {
openssh.enable = true;
xserver.videoDrivers = ["nvidia"];
};
# TODO: remove when merged: https://github.com/NixOS/nixpkgs/pull/167388
systemd.services.logid = {
description = "Logitech Configuration Daemon";