2024-01-18 01:32:15 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
2024-01-15 22:30:41 +00:00
|
|
|
}:
|
|
|
|
{
|
2024-01-18 01:32:15 +00:00
|
|
|
config = lib.mkIf config.mtxyz.graphical {
|
2024-01-15 22:30:41 +00:00
|
|
|
sound.enable = true;
|
|
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
jack.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.networkmanager.enable = lib.mkDefault true;
|
2024-02-14 21:00:31 +00:00
|
|
|
virtualisation.waydroid.enable = lib.mkDefault (!config.mtxyz.minimal);
|
2024-02-29 20:26:33 +00:00
|
|
|
services.flatpak.enable = lib.mkDefault (!config.mtxyz.minimal);
|
2024-01-15 22:30:41 +00:00
|
|
|
|
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
layout = "us";
|
|
|
|
xkbOptions = "caps:super";
|
|
|
|
|
|
|
|
displayManager.gdm.enable = true;
|
|
|
|
desktopManager.gnome.enable = true;
|
|
|
|
libinput.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
services.printing = {
|
|
|
|
enable = true;
|
|
|
|
drivers = with pkgs; [ hll2390dw-cups ];
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.kdeconnect = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.gnomeExtensions.gsconnect;
|
|
|
|
};
|
|
|
|
|
|
|
|
fonts = {
|
|
|
|
enableDefaultPackages = true;
|
|
|
|
|
|
|
|
packages = with pkgs; [
|
|
|
|
(nerdfonts.override {
|
|
|
|
fonts = [ "SourceCodePro" "FantasqueSansMono" ];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
fontconfig = {
|
|
|
|
defaultFonts = {
|
|
|
|
sansSerif = [ "FantasqueSansMono Nerd Font Mono" ];
|
|
|
|
monospace = [ "FantasqueSansMono Nerd Font Mono" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-02-19 19:26:42 +00:00
|
|
|
services.tlp = {
|
|
|
|
enable = config.mtxyz.portable;
|
2024-01-18 01:32:15 +00:00
|
|
|
settings = lib.mkDefault {
|
|
|
|
START_CHARGE_THRESH_BAT0 = 70;
|
|
|
|
STOP_CHARGE_THRESH_BAT0 = 80;
|
|
|
|
};
|
2024-01-15 22:30:41 +00:00
|
|
|
};
|
2024-01-18 01:32:15 +00:00
|
|
|
services.power-profiles-daemon.enable = !config.services.tlp.enable;
|
|
|
|
|
2024-01-15 22:30:41 +00:00
|
|
|
};
|
|
|
|
}
|