From 98f57210c989fdf83f4db10b6bcba32ca9b49352 Mon Sep 17 00:00:00 2001 From: Quentin Boyer Date: Sun, 10 Apr 2022 18:07:08 +0200 Subject: [PATCH] add commented xorg server to localcfg --- nixos/localcfg.nix | 41 +++++++++++++++++------------------------ 1 file changed, 17 insertions(+), 24 deletions(-) diff --git a/nixos/localcfg.nix b/nixos/localcfg.nix index 1b8d077..50def1f 100644 --- a/nixos/localcfg.nix +++ b/nixos/localcfg.nix @@ -1,8 +1,5 @@ { config, pkgs, ... }: -let - sensitiveInfo = (import ./sensitive.nix); -in { boot = { initrd = { @@ -35,28 +32,24 @@ in }; }; - networking = { - hostName = "ZeNixLaptop"; - interfaces = { - eno0.useDHCP = true; - wlp1s0.useDHCP = true; - }; - wireguard.interfaces = { - octopi = { - ips = [ "10.42.42.4/32" ]; - privateKeyFile = "/etc/wireguard/zelaptop.key"; - peers = [ - { - publicKey = sensitiveInfo.octopiPubKey; - presharedKeyFile = "/etc/wireguard/octopi-laptop.psk"; - allowedIPs = [ "10.42.42.1/32" ]; - endpoint = "${sensitiveInfo.homeUrl}:51820"; - persistentKeepalive = 25; - } - ]; - }; - }; +/* + services.xserver = { + enable = true; + videoDrivers = [ "nvidia" ]; + layout = "us"; + xkbVariant = "dvp"; + libinput.enable = true; + desktopManager.session = [ + { + name = "home-manager"; + start = '' + ${pkgs.runtimeShell} $HOME/.hm-xsession-dbg& + waitPID=$! + ''; + } + ]; }; +*/ users = { users = {