diff --git a/machines/desktop.nix b/machines/desktop.nix index 62ce089..6c1d452 100644 --- a/machines/desktop.nix +++ b/machines/desktop.nix @@ -6,6 +6,7 @@ name = "DanixDesktop"; eth = "eno1"; wlan = null; + secondary-fs = "/mnt/henning"; }; profiles.base.enable = true; profiles.xsession.enable = true; diff --git a/profiles/base/default.nix b/profiles/base/default.nix index 0a853ff..bb24fe4 100644 --- a/profiles/base/default.nix +++ b/profiles/base/default.nix @@ -6,10 +6,14 @@ in { options.machine = { name = lib.mkOption { - type = "str"; + type = lib.types.str; }; eth = lib.mkOption {}; wlan = lib.mkOption {}; + secondary-fs = lib.mkOption { + type = lib.types.str; + default = "$HOME"; + }; }; options.profiles.base = { diff --git a/profiles/xsession/.polybar.nix.swp b/profiles/xsession/.polybar.nix.swp new file mode 100644 index 0000000..b7e0159 Binary files /dev/null and b/profiles/xsession/.polybar.nix.swp differ diff --git a/profiles/xsession/polybar.nix b/profiles/xsession/polybar.nix index 02368f9..1c15d1f 100644 --- a/profiles/xsession/polybar.nix +++ b/profiles/xsession/polybar.nix @@ -115,7 +115,7 @@ in interval = 25; mount-0 = "/"; - mount-1 = "/mnt/henning"; + mount-1 = config.machine.secondary-fs; label-mounted = "%{F#0a81f5}%mountpoint%%{F-}: %free%"; label-unmounted = "%mountpoint% not mounted";