diff --git a/home-manager/modules/programs/desktop.nix b/home-manager/modules/programs/desktop.nix index 83f0aaa..c7926c3 100644 --- a/home-manager/modules/programs/desktop.nix +++ b/home-manager/modules/programs/desktop.nix @@ -17,8 +17,18 @@ calibre # Utility protonvpn-gui + # Browser + firefoxpwa + ungoogled-chromium ]; + programs.firefox = { + enable = true; + nativeMessagingHosts = with pkgs; [ + kdePackages.plasma-browser-integration + ]; + }; + services.syncthing = { enable = true; tray = { @@ -37,4 +47,13 @@ }; }; }; + + # Refresh the KDE applications cache, this really should be in upstream home + # manager, but its not for some reason + home.activation = { + kdeApplicationCache = lib.hm.dag.entryAfter ["installPackages"] '' + run rm ~/.cache/ksycoca6_* -rf + run kbuildsycoca6 + ''; + }; } diff --git a/nixos/machines/crash/configuration.nix b/nixos/machines/crash/configuration.nix index 6481c4b..d31548e 100644 --- a/nixos/machines/crash/configuration.nix +++ b/nixos/machines/crash/configuration.nix @@ -148,9 +148,6 @@ extraGroups = ["networkmanager"]; }; - # Install firefox. - programs.firefox.enable = true; - # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ @@ -158,8 +155,8 @@ libinput maliit-keyboard dconf-editor + iptsd surface-control - ungoogled-chromium ]; # Setup iptsd for touch and stylus support @@ -179,7 +176,7 @@ # Other power saving goodies hardware.enableAllFirmware = true; services.tlp = { - enable = true; + enable = false; settings = { CPU_SCALING_GOVERNOR_ON_AC = "performance"; CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; @@ -189,7 +186,7 @@ }; }; powerManagement.enable = true; - services.power-profiles-daemon.enable = false; + services.power-profiles-daemon.enable = true; services.cpupower-gui.enable = true; # Nvidia gpu setup