{ inputs, ... }: { flake.modules.nixos.desktop = { pkgs, ... }: { services.displayManager.cosmic-greeter.enable = true; services.desktopManager.cosmic.enable = true; services.system76-scheduler.enable = true; environment.cosmic.excludePackages = with pkgs; [ cosmic-term ]; environment.systemPackages = with pkgs; [ bibata-cursors gimp darktable ]; fonts.packages = with pkgs; [ nerd-fonts.victor-mono ]; fonts.fontconfig = { enable = true; antialias = true; hinting = { enable = true; style = "slight"; }; defaultFonts.monospace = [ "VictorMono Nerd Font Mono" ]; }; home-manager.sharedModules = [ inputs.self.modules.homeManager.desktop ]; }; flake.modules.homeManager.desktop = { pkgs, ... }: { home.sessionVariables = { XCURSOR_THEME = "Bibata-Modern-Ice"; XCURSOR_SIZE = "24"; }; home.file.".icons/default/index.theme".text = '' [Icon Theme] Inherits=Bibata-Modern-Ice ''; }; # TODO: Persist ~/.config/cosmic after setup # and symlink it with home manager }