ma awesome-config: use home-manager instead of patching the awesome package itself
This commit is contained in:
parent
7608f2a509
commit
023ea390e4
@ -1,6 +1,6 @@
|
|||||||
{config, lib, pkgs, ... }:
|
{config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with import <stockholm/lib>;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.makefu.awesome;
|
cfg = config.makefu.awesome;
|
||||||
out = {
|
out = {
|
||||||
@ -27,13 +27,10 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
imp = {
|
imp = {
|
||||||
# TODO: configure display manager as well
|
home-manager.users.makefu.home.file.".config/awesome/rc.lua".source =
|
||||||
nixpkgs.config.packageOverrides = pkgs: rec {
|
cfg.baseConfig.override {
|
||||||
awesome = pkgs.stdenv.lib.overrideDerivation pkgs.awesome (oldAttrs : {
|
inherit (cfg) modkey;
|
||||||
postFixup = let
|
|
||||||
rclua = cfg.baseConfig.override { inherit (cfg) modkey; };
|
|
||||||
in "cp ${rclua} $out/etc/xdg/awesome/rc.lua";
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
in out
|
in out
|
||||||
|
Loading…
Reference in New Issue
Block a user