mirror of
https://github.com/nix-community/home-manager
synced 2024-11-01 08:49:44 +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.
38 lines
984 B
Nix
38 lines
984 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
dummy-package = pkgs.runCommandLocal "dummy-package" { } "mkdir $out";
|
|
|
|
in {
|
|
config = {
|
|
home.stateVersion = "20.09";
|
|
|
|
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@";
|
|
};
|
|
sway = dummy-package // { outPath = "@sway@"; };
|
|
i3status = dummy-package // { outPath = "@i3status@"; };
|
|
xwayland = dummy-package // { outPath = "@xwayland@"; };
|
|
})
|
|
];
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/sway/config
|
|
assertFileContent home-files/.config/sway/config \
|
|
${./sway-default.conf}
|
|
'';
|
|
};
|
|
}
|