mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 19:49:45 +01:00
7b6ebf2785
This reverts commit 99b75f99df
. See
https://github.com/nix-community/home-manager/issues/1613 and
https://github.com/nix-community/home-manager/pull/1614
for associated discussions.
36 lines
950 B
Nix
36 lines
950 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
dummy-package = pkgs.runCommandLocal "dummy-package" { } "mkdir $out";
|
|
|
|
in {
|
|
config = {
|
|
wayland.windowManager.sway = {
|
|
enable = true;
|
|
package = dummy-package // { outPath = "@sway"; };
|
|
# overriding findutils causes issues
|
|
config.menu = "${pkgs.dmenu}/bin/dmenu_run";
|
|
};
|
|
|
|
nixpkgs.overlays = [
|
|
(self: super: {
|
|
dmenu = dummy-package // { outPath = "@dmenu@"; };
|
|
rxvt-unicode-unwrapped = dummy-package // {
|
|
outPath = "@rxvt-unicode-unwrapped@";
|
|
};
|
|
i3status = dummy-package // { outPath = "@i3status@"; };
|
|
sway = dummy-package // { outPath = "@sway@"; };
|
|
xwayland = dummy-package // { outPath = "@xwayland@"; };
|
|
})
|
|
];
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/sway/config
|
|
assertFileContent home-files/.config/sway/config \
|
|
${./sway-default.conf}
|
|
'';
|
|
};
|
|
}
|