dotfiles/machines/pvv-terminal.nix

40 lines
937 B
Nix
Raw Normal View History

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;
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;
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";
exec-if = "test -f /usr/local/bin/uquota";
2022-05-02 23:45:57 +02:00
exec = "" + pkgs.writers.writePerl "parse_uquota" { } ''
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
}