commit 41647eca35cd9df586e96c87b115c9abd82ed8e4
parent 8b4168373adceb50db6aa6f39c7456a04fe3b529
Author: Vincent Demeester <vincent@sbr.pm>
Date: Fri, 10 Apr 2020 14:04:35 +0200
desktop.nix: add next nr and nixpkgs-fmt
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 21 insertions(+), 17 deletions(-)
diff --git a/modules/profiles/desktop.nix b/modules/profiles/desktop.nix
@@ -5,13 +5,13 @@ let
cfg = config.profiles.desktop;
dim-screen = pkgs.writeScript "dim-sreen.sh" ''
-#!${pkgs.stdenv.shell}
-export PATH=${lib.getBin pkgs.xlibs.xbacklight}/bin:$PATH
-trap "exit 0" INT TERM
-trap "kill \$(jobs -p); xbacklight -steps 1 -set $(xbacklight -get);" EXIT
-xbacklight -time 5000 -steps 400 -set 0 &
-sleep 2147483647 &
-wait
+ #!${pkgs.stdenv.shell}
+ export PATH=${lib.getBin pkgs.xlibs.xbacklight}/bin:$PATH
+ trap "exit 0" INT TERM
+ trap "kill \$(jobs -p); xbacklight -steps 1 -set $(xbacklight -get);" EXIT
+ xbacklight -time 5000 -steps 400 -set 0 &
+ sleep 2147483647 &
+ wait
'';
in
{
@@ -30,9 +30,9 @@ in
type = types.bool;
};
i3 = mkOption {
- default = true;
- description = "Enable i3 managed window manager";
- type = types.bool;
+ default = true;
+ description = "Enable i3 managed window manager";
+ type = types.bool;
};
};
};
@@ -54,7 +54,7 @@ in
home.keyboard = mkIf cfg.xsession.enable {
layout = "fr(bepo),fr";
variant = "oss";
- options = ["grp:menu_toggle" "grp_led:caps" "compose:caps"];
+ options = [ "grp:menu_toggle" "grp_led:caps" "compose:caps" ];
};
gtk = {
enable = true;
@@ -84,12 +84,16 @@ in
xdg.configFile."user-dirs.dirs".source = ./assets/xorg/user-dirs.dirs;
xdg.configFile."nr/desktop" = {
text = builtins.toJSON [
- {cmd = "surf";} {cmd = "dmenu";} {cmd = "sxiv";} { cmd = "screenkey"; }
- {cmd = "gimp";}
- {cmd = "virt-manager"; pkg = "virtmanager";}
- {cmd = "update-desktop-database"; pkg = "desktop-file-utils"; chan = "unstable";}
- {cmd = "lgogdownloader"; chan = "unstable";}
- {cmd = "xev"; pkg = "xorg.xev";}
+ { cmd = "surf"; }
+ { cmd = "next"; }
+ { cmd = "dmenu"; }
+ { cmd = "sxiv"; }
+ { cmd = "screenkey"; }
+ { cmd = "gimp"; }
+ { cmd = "virt-manager"; pkg = "virtmanager"; }
+ { cmd = "update-desktop-database"; pkg = "desktop-file-utils"; chan = "unstable"; }
+ { cmd = "lgogdownloader"; chan = "unstable"; }
+ { cmd = "xev"; pkg = "xorg.xev"; }
];
onChange = "${pkgs.nur.repos.vdemeester.nr}/bin/nr desktop";
};