nichts/hosts/vali/mars/i3/i3.nix

23 lines
567 B
Nix
Raw Normal View History

2024-04-10 20:46:23 +02:00
{ pkgs, lib, config, callPackage, ... }:
with lib; let
2024-04-13 15:38:42 +02:00
username = config.modules.other.system.username;
2024-04-12 22:03:29 +02:00
cfg = config.modules.programs.i3;
2024-04-10 20:46:23 +02:00
in {
2024-04-12 22:03:29 +02:00
options.modules.programs.i3.enable = mkEnableOption "i3";
2024-04-10 19:42:28 +02:00
2024-04-10 20:46:23 +02:00
config = mkIf cfg.enable {
2024-04-13 00:15:21 +02:00
home-manager.users.${username}.xdg.configFile."i3/config".source = ./config;
2024-04-10 19:42:28 +02:00
services.xserver = {
enable = true;
2024-04-12 14:41:59 +02:00
xkb.layout = "de";
windowManager = {
i3.enable = true;
2024-04-10 19:42:28 +02:00
};
displayManager = {
gdm.enable = true;
defaultSession = "none+i3";
2024-04-10 19:42:28 +02:00
};
};
};
}