nichts/hosts/vali/mars/i3/i3.nix
2024-04-13 00:15:21 +02:00

22 lines
573 B
Nix

{ pkgs, lib, config, callPackage, ... }:
with lib; let
cfg = config.myOptions.programs.i3;
username = config.myOptions.other.system.username;
in {
options.myOptions.programs.i3.enable = mkEnableOption "i3";
config = mkIf cfg.enable {
home-manager.users.${username}.xdg.configFile."i3/config".source = ./config;
services.xserver = {
enable = true;
xkb.layout = "de";
windowManager = {
i3.enable = true;
};
displayManager = {
gdm.enable = true;
defaultSession = "none+i3";
};
};
};
}