Switch from SDDM to LightDM and fix Wireguard

This commit is contained in:
2020-05-11 06:39:22 +02:00
parent 4bcfb6a660
commit 3147727b77
3 changed files with 22 additions and 20 deletions

View File

@@ -1,18 +1,13 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
avahi
wireguard
];
environment.systemPackages = with pkgs; [ avahi wireguard ];
# Set hostname and hostid
networking = {
hostName = "panacea";
hostId = "8feb0bb8";
wireless = {
enable = true;
};
wireless.enable = true;
};
# Enable zeroconf
@@ -22,10 +17,11 @@
};
# Wireguard setup
networking.wireguard.interfaces = {
networking.wg-quick.interfaces = {
wg0 = {
ips = [ "10.8.0.4/32" ];
address = [ "10.8.0.4/32" ];
privateKeyFile = "/home/coolneng/.wg/keys/privatekey";
dns = [ "198.100.148.224" "151.80.222.79" ];
peers = [
# zion
{