formatting

This commit is contained in:
Moritz Böhme 2021-10-06 15:35:31 +02:00
parent 407bf46d5d
commit c12eaad5f0
6 changed files with 17 additions and 44 deletions

View file

@ -67,7 +67,4 @@ let
}; };
}; };
}; };
in in { home-manager.users.moritz = { ... }: (base); }
{
home-manager.users.moritz = { ... }: (base);
}

View file

@ -20,7 +20,4 @@ let
}; };
}; };
}; };
in in { home-manager.users.moritz = { ... }: (base); }
{
home-manager.users.moritz = { ... }: (base);
}

View file

@ -4,19 +4,15 @@ let
base = { base = {
services.polybar = { services.polybar = {
enable = true; enable = true;
package = pkgs.polybar.override { package = pkgs.polybar.override { pulseSupport = true; };
pulseSupport = true; script = ''
}; for m in $(polybar --list-monitors | ${pkgs.coreutils}/bin/cut -d":" -f1); do
script = ''for m in $(polybar --list-monitors | ${pkgs.coreutils}/bin/cut -d":" -f1); do
MONITOR=$m polybar --reload bottom & MONITOR=$m polybar --reload bottom &
done done
''; '';
config = ./config.ini; config = ./config.ini;
extraConfig = builtins.readFile ./modules.ini + extraConfig = builtins.readFile ./modules.ini
builtins.readFile ./colors.ini; + builtins.readFile ./colors.ini;
}; };
}; };
in in { home-manager.users.moritz = { ... }: (base); }
{
home-manager.users.moritz = { ... }: (base);
}

View file

@ -1,17 +1,9 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
imports = [ imports = [ ./dunst ./diskstation ./emacs ./agenix.nix ./picom.nix ];
./dunst
./diskstation
./emacs
./agenix.nix
./picom.nix
];
home-manager.users.moritz.services = { home-manager.users.moritz.services = { kdeconnect.enable = true; };
kdeconnect.enable = true;
};
services = { services = {
printing.enable = true; printing.enable = true;

View file

@ -4,13 +4,8 @@ let
base = { base = {
xdg = { xdg = {
enable = true; enable = true;
configFile."dunt/dunstrc" = { configFile."dunt/dunstrc" = { source = ./dunstrc; };
source = ./dunstrc;
};
}; };
services.dunst.enable = true; services.dunst.enable = true;
}; };
in in { home-manager.users.moritz = { ... }: (base); }
{
home-manager.users.moritz = { ... }: (base);
}

View file

@ -1,14 +1,10 @@
{ inputs }: { inputs }:
final: prev: { final: prev: {
picom = prev.picom.overrideAttrs (old: { picom = prev.picom.overrideAttrs (old: { src = inputs.picom; });
src = inputs.picom;
});
unstable = import inputs.unstable { unstable = import inputs.unstable {
system = prev.system; system = prev.system;
config.allowUnfree = true; config.allowUnfree = true;
}; };
nur = import inputs.nur { nur = import inputs.nur { system = prev.system; };
system = prev.system;
};
} }