mirror of
https://codeberg.org/mtxyz/nixconf.git
synced 2024-11-09 10:01:57 +00:00
68 lines
1.4 KiB
Nix
68 lines
1.4 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
config = lib.mkIf config.mtxyz.graphical {
|
|
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;
|
|
|
|
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" ];
|
|
};
|
|
};
|
|
};
|
|
|
|
services.tlp = lib.mkIf config.mtxyz.portable {
|
|
enable = true;
|
|
settings = lib.mkDefault {
|
|
START_CHARGE_THRESH_BAT0 = 70;
|
|
STOP_CHARGE_THRESH_BAT0 = 80;
|
|
};
|
|
};
|
|
services.power-profiles-daemon.enable = !config.services.tlp.enable;
|
|
|
|
};
|
|
}
|