2022-06-02 05:08:38 +02:00
|
|
|
{ config, lib, pkgs, overlays, ... }:
|
2022-04-24 00:26:26 +02:00
|
|
|
{
|
2022-06-02 05:08:38 +02:00
|
|
|
nixpkgs.overlays = overlays;
|
2022-09-09 02:49:19 +02:00
|
|
|
nixpkgs.config.allowUnfreePredicate = (pkg: true);
|
2022-06-02 05:08:38 +02:00
|
|
|
|
2022-04-24 00:26:26 +02:00
|
|
|
imports = [ ../profiles ];
|
|
|
|
|
|
|
|
machine = {
|
|
|
|
name = "PVV Terminal";
|
|
|
|
eth = null;
|
|
|
|
wlan = null;
|
2022-05-02 23:45:57 +02:00
|
|
|
secondary-fs = null;
|
2022-04-24 00:26:26 +02:00
|
|
|
};
|
2022-09-09 02:49:19 +02:00
|
|
|
|
2022-04-24 00:26:26 +02:00
|
|
|
profiles.base.enable = true;
|
2022-06-03 12:22:24 +02:00
|
|
|
profiles.base.plus = false;
|
2022-04-24 00:26:26 +02:00
|
|
|
profiles.gui.enable = true;
|
|
|
|
profiles.non-nixos.enable = true;
|
|
|
|
profiles.xsession.enable = true;
|
|
|
|
profiles.zsh.enable = true;
|
|
|
|
|
2022-04-24 18:37:29 +02:00
|
|
|
profiles.audio.fancy = false;
|
|
|
|
|
2022-04-24 00:26:26 +02:00
|
|
|
profiles.games.enable = false;
|
|
|
|
|
2022-05-02 23:45:57 +02:00
|
|
|
services.polybar.config."module/uquota" = {
|
|
|
|
type = "custom/script";
|
2022-05-22 05:02:06 +02:00
|
|
|
exec-if = "test -f /usr/local/bin/uquota";
|
2022-05-02 23:45:57 +02:00
|
|
|
exec = "" + pkgs.writers.writePerl "parse_uquota" { } ''
|
2022-05-22 05:02:06 +02:00
|
|
|
my $raw = `/usr/local/bin/uquota`;
|
2022-05-02 23:45:57 +02:00
|
|
|
if ( $raw =~ /Du har brukt (\d+(?:[KMGT]iB)) av (\d+(?:[KMGT]iB)), eller (\d+)/ )
|
|
|
|
{
|
|
|
|
print $3 . "%\n";
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
interval = 10;
|
|
|
|
format = "ﴥ <label>";
|
|
|
|
};
|
2022-04-24 00:26:26 +02:00
|
|
|
}
|