summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-07-02 08:39:58 +0200
committermakefu <github@syntax-fehler.de>2020-07-02 08:39:58 +0200
commit023ea390e4d8c679d06cf6249c98012d7ba9fc11 (patch)
tree2f0e8ee98733ec71385f30d64cbdaccd20702e9e
parent7608f2a509790d06d63dcbd7d498011595a0a94f (diff)
ma awesome-config: use home-manager instead of patching the awesome package itself
-rw-r--r--makefu/3modules/awesome-extra.nix15
1 files changed, 6 insertions, 9 deletions
diff --git a/makefu/3modules/awesome-extra.nix b/makefu/3modules/awesome-extra.nix
index 6f19f8f72..9e9dfdfde 100644
--- a/makefu/3modules/awesome-extra.nix
+++ b/makefu/3modules/awesome-extra.nix
@@ -1,6 +1,6 @@
{config, lib, pkgs, ... }:
-with import <stockholm/lib>;
+with lib;
let
cfg = config.makefu.awesome;
out = {
@@ -27,13 +27,10 @@ let
};
};
imp = {
- # TODO: configure display manager as well
- nixpkgs.config.packageOverrides = pkgs: rec {
- awesome = pkgs.stdenv.lib.overrideDerivation pkgs.awesome (oldAttrs : {
- postFixup = let
- rclua = cfg.baseConfig.override { inherit (cfg) modkey; };
- in "cp ${rclua} $out/etc/xdg/awesome/rc.lua";
- });
- };
+ home-manager.users.makefu.home.file.".config/awesome/rc.lua".source =
+ cfg.baseConfig.override {
+ inherit (cfg) modkey;
+ };
+
};
in out