Initial Adding of i3. Wayland is a bit of pain right now.

This commit is contained in:
James Patrick 2022-04-24 22:26:57 -04:00
parent 14288dda6b
commit e9cfe83e80
3 changed files with 31 additions and 0 deletions

View File

@ -10,5 +10,6 @@
./nextcloud.nix ./nextcloud.nix
./spotify.nix ./spotify.nix
./sway ./sway
./i3
]; ];
} }

View File

@ -0,0 +1 @@
{ config, pkgs, ... }: { imports = [ ./i3.nix ]; }

View File

@ -0,0 +1,29 @@
{ config, lib, pkgs, ... }:
let
cfg = config.this.application.i3;
graphical = config.this.graphical;
modifier = "Mod4";
wallpaper = pkgs.fetchurl {
url =
"https://raw.githubusercontent.com/catppuccin/wallpapers/main/landscapes/evening-sky.png";
sha256 = "sha256-fYMzoY3un4qGOSR4DMqVUAFmGGil+wUze31rLLrjcAc=";
};
in with lib; {
options = {
this.application.i3.enable = mkOption {
default = graphical.enable;
type = with types; bool;
};
};
config = mkif cfg.enable {
this.graphical.protocol = "X11";
home-manager.users.james = {
xsession.windowManager.i3 = {
enable = true;
package = "pkgs.i3-gaps";
};
};
};
}