mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 21:49:48 +01:00
47 lines
865 B
Nix
47 lines
865 B
Nix
|
{ config, lib, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
config = let
|
||
|
i3 = {
|
||
|
ws1 = "1";
|
||
|
ws2 = "ABC";
|
||
|
ws3 = "3: Test";
|
||
|
ws4 = ''!"§$%&/(){}[]=?\*#<>-_.:,;²³'';
|
||
|
};
|
||
|
|
||
|
in {
|
||
|
xsession.windowManager.i3 = {
|
||
|
enable = true;
|
||
|
|
||
|
config.workspaceOutputAssign = [
|
||
|
{
|
||
|
workspace = "${i3.ws1}";
|
||
|
output = "eDP";
|
||
|
}
|
||
|
{
|
||
|
workspace = "${i3.ws2}";
|
||
|
output = "DP";
|
||
|
}
|
||
|
{
|
||
|
workspace = "${i3.ws3}";
|
||
|
output = "HDMI";
|
||
|
}
|
||
|
{
|
||
|
workspace = "${i3.ws4}";
|
||
|
output = "DVI";
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
|
||
|
nixpkgs.overlays = [ (import ./i3-overlay.nix) ];
|
||
|
|
||
|
nmt.script = ''
|
||
|
assertFileExists home-files/.config/i3/config
|
||
|
assertFileContent home-files/.config/i3/config \
|
||
|
${./i3-workspace-output-expected.conf}
|
||
|
'';
|
||
|
};
|
||
|
}
|