Initial Adding of i3. Wayland is a bit of pain right now.
This commit is contained in:
parent
14288dda6b
commit
e9cfe83e80
|
@ -10,5 +10,6 @@
|
|||
./nextcloud.nix
|
||||
./spotify.nix
|
||||
./sway
|
||||
./i3
|
||||
];
|
||||
}
|
||||
|
|
1
modules/applications/i3/default.nix
Normal file
1
modules/applications/i3/default.nix
Normal file
|
@ -0,0 +1 @@
|
|||
{ config, pkgs, ... }: { imports = [ ./i3.nix ]; }
|
29
modules/applications/i3/i3.nix
Normal file
29
modules/applications/i3/i3.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user