From e906399a84ef3d31397eec27c3bfc8c3b11828cd Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Fri, 20 Aug 2021 19:20:18 +0200 Subject: [PATCH] install comma, display wlan --- machines/laptop.nix | 3 ++- profiles/base/default.nix | 3 +++ profiles/xsession/polybar.nix | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/machines/laptop.nix b/machines/laptop.nix index abec5b0..277dad6 100644 --- a/machines/laptop.nix +++ b/machines/laptop.nix @@ -4,7 +4,8 @@ machine = { name = "DanixLaptop"; - eth = "enp0s25"; + eth = "enp0s31f6"; + wlan = "wlp5s0"; }; profiles.base.enable = true; profiles.gui.enable = true; diff --git a/profiles/base/default.nix b/profiles/base/default.nix index 37aea5d..6e26348 100644 --- a/profiles/base/default.nix +++ b/profiles/base/default.nix @@ -9,6 +9,7 @@ in { type = "str"; }; eth = lib.mkOption {}; + wlan = lib.mkOption {}; }; options.profiles.base = { @@ -45,6 +46,8 @@ in { # unstable.youtubeDL ffmpeg-full + nix-index + nur.repos.j-k.comma ] ++ lib.optionals config.profiles.gui.enable [ # virtmanager # virt-viewer diff --git a/profiles/xsession/polybar.nix b/profiles/xsession/polybar.nix index f8db8a7..a624d92 100644 --- a/profiles/xsession/polybar.nix +++ b/profiles/xsession/polybar.nix @@ -81,7 +81,7 @@ in }; "module/wlan" = { type = "internal/network"; - interface = "wlp4s0"; + interface = config.machine.wlan; interval = "3.0"; format-connected = " ";