Customize the secondary free space indicator

This commit is contained in:
Daniel Lovbrotte Olsen 2022-05-02 14:49:06 +02:00
parent 2781064e61
commit 176c0569b8
4 changed files with 7 additions and 2 deletions

View File

@ -6,6 +6,7 @@
name = "DanixDesktop"; name = "DanixDesktop";
eth = "eno1"; eth = "eno1";
wlan = null; wlan = null;
secondary-fs = "/mnt/henning";
}; };
profiles.base.enable = true; profiles.base.enable = true;
profiles.xsession.enable = true; profiles.xsession.enable = true;

View File

@ -6,10 +6,14 @@ in {
options.machine = { options.machine = {
name = lib.mkOption { name = lib.mkOption {
type = "str"; type = lib.types.str;
}; };
eth = lib.mkOption {}; eth = lib.mkOption {};
wlan = lib.mkOption {}; wlan = lib.mkOption {};
secondary-fs = lib.mkOption {
type = lib.types.str;
default = "$HOME";
};
}; };
options.profiles.base = { options.profiles.base = {

Binary file not shown.

View File

@ -115,7 +115,7 @@ in
interval = 25; interval = 25;
mount-0 = "/"; mount-0 = "/";
mount-1 = "/mnt/henning"; mount-1 = config.machine.secondary-fs;
label-mounted = "%{F#0a81f5}%mountpoint%%{F-}: %free%"; label-mounted = "%{F#0a81f5}%mountpoint%%{F-}: %free%";
label-unmounted = "%mountpoint% not mounted"; label-unmounted = "%mountpoint% not mounted";