fork/home-manager
git clone https://git.julia.blue/fork/home-manager
65700a4f
master
1{ config , pkgs , ...} : 2 3{ 4config = { 5services . polybar = { 6enable = true ; 7package = config . lib . test . mkStubPackage { }; 8script = "polybar bar &" ; 9config = { 10"bar/top" = { 11monitor = "\${env:MONITOR:eDP1}" ; 12width = "100%" ; 13height = "3%" ; 14radius = 0 ; 15modules-center = "date" ; 16}; 17"module/date" = { 18type = "internal/date" ; 19internal = 5 ; 20date = "%d.%m.%y" ; 21time = "%H:%M" ; 22label = "%time% %date%" ; 23}; 24}; 25settings = { 26"module/volume" = { 27type = "internal/pulseaudio" ; 28format . volume = "<ramp-volume> <label-volume>" ; 29label . muted . text = "🔇" ; 30label . muted . foreground = "#666" ; 31ramp . volume = [ "🔈" "🔉" "🔊" ]; 32click . right = "pavucontrol &" ; 33}; 34}; 35extraConfig = '' 36[module/date] 37type = internal/date 38interval = 5 39date = "%d.%m.%y" 40time = %H:%M 41format-prefix-foreground = ''${colors.foreground-alt} 42label = %time% %date% 43'' ; 44}; 45 46nmt . script = '' 47serviceFile =home-files/.config/systemd/user/polybar.service 48 49assertFileExists $ serviceFile 50assertFileRegex $ serviceFile 'X-Restart-Triggers=/nix/store/.*-polybar.conf$' 51assertFileRegex $ serviceFile 'ExecStart=.*/bin/polybar-start' 52 53assertFileExists home-files/.config/polybar/config.ini 54assertFileContent home-files/.config/polybar/config.ini \ 55${ ./basic-configuration.conf } 56'' ; 57}; 58}