i3.nix (755B)
1 { config, lib, pkgs, ... }: 2 3 with lib; 4 let 5 cfg = config.profiles.desktop.i3; 6 in 7 { 8 options = { 9 profiles.desktop.i3 = { 10 enable = mkEnableOption "Enable i3 desktop profile"; 11 }; 12 }; 13 14 config = mkIf cfg.enable { 15 profiles = { 16 desktop.enable = true; 17 }; 18 services = { 19 blueman.enable = true; 20 autorandr.enable = true; 21 xserver = { 22 displayManager = { 23 defaultSession = "none+i3"; 24 lightdm.enable = true; 25 lightdm.greeters.pantheon.enable = true; 26 }; 27 windowManager.i3.enable = true; 28 }; 29 dbus = { 30 enable = true; 31 # socketActivated = true; 32 packages = [ pkgs.gnome3.dconf ]; 33 }; 34 }; 35 programs.dconf.enable = true; 36 }; 37 }