From 7a7058bb5c2eb412348bf02f797c5018ac1544d1 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 9 Oct 2015 12:35:26 +0200 Subject: [PATCH] m 2 awesomecfg -> m 5 awesomecfg --- makefu/2configs/base-gui.nix | 4 ++-- makefu/5pkgs/awesomecfg/default.nix | 5 +++++ .../{2configs/awesome/rc.lua => 5pkgs/awesomecfg/full.cfg} | 0 makefu/5pkgs/default.nix | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 makefu/5pkgs/awesomecfg/default.nix rename makefu/{2configs/awesome/rc.lua => 5pkgs/awesomecfg/full.cfg} (100%) diff --git a/makefu/2configs/base-gui.nix b/makefu/2configs/base-gui.nix index 3dd225359..30e4c735e 100644 --- a/makefu/2configs/base-gui.nix +++ b/makefu/2configs/base-gui.nix @@ -13,6 +13,7 @@ with lib; let mainUser = config.krebs.build.user.name; + awesomecfg = pkgs.awesomecfg.full; in { imports = [ ]; @@ -34,9 +35,8 @@ in }; nixpkgs.config.packageOverrides = pkgs: rec { awesome = pkgs.stdenv.lib.overrideDerivation pkgs.awesome (oldAttrs : { - awesomecfg = ./awesome/rc.lua; postInstall = '' - cp $awesomecfg $out/etc/xdg/awesome/rc.lua + cp ${awesomecfg} $out/etc/xdg/awesome/rc.lua ''; }); }; diff --git a/makefu/5pkgs/awesomecfg/default.nix b/makefu/5pkgs/awesomecfg/default.nix new file mode 100644 index 000000000..a636db78b --- /dev/null +++ b/makefu/5pkgs/awesomecfg/default.nix @@ -0,0 +1,5 @@ +_: + +{ + full = ./cfg/full.cfg; +} diff --git a/makefu/2configs/awesome/rc.lua b/makefu/5pkgs/awesomecfg/full.cfg similarity index 100% rename from makefu/2configs/awesome/rc.lua rename to makefu/5pkgs/awesomecfg/full.cfg diff --git a/makefu/5pkgs/default.nix b/makefu/5pkgs/default.nix index b78183a2a..7945b6ebd 100644 --- a/makefu/5pkgs/default.nix +++ b/makefu/5pkgs/default.nix @@ -8,4 +8,5 @@ in alsa-hdspconf = callPackage ./alsa-tools { alsaToolTarget="hdspconf";}; alsa-hdsploader = callPackage ./alsa-tools { alsaToolTarget="hdsploader";}; tinc_graphs = callPackage ./tinc_graphs {}; + awesomecfg = callPackage ./awesomecfg {}; }