dotfiles/machines/pvv-terminal.nix

40 lines
913 B
Nix
Raw Normal View History

2022-04-24 00:26:26 +02:00
{ config, lib, pkgs, ... }:
{
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
};
profiles.base.enable = true;
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 = "which uquota";
exec = "" + pkgs.writers.writePerl "parse_uquota" { } ''
my $raw = `uquota`;
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
programs.home-manager = {
enable = true;
path = "https://github.com/rycee/home-manager/archive/release-21.11.tar.gz";
};
}