2022-02-05 21:42:36 +02:00
|
|
|
{ pkgs, config, inputs, lib, ... }: let
|
|
|
|
portRanges = [
|
|
|
|
# GSConnect
|
|
|
|
{ from = 1716; to = 1764; }
|
|
|
|
];
|
|
|
|
in {
|
|
|
|
imports = [
|
|
|
|
./package-sets.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
displayManager.gdm.enable = true;
|
|
|
|
desktopManager.gnome = {
|
|
|
|
enable = true;
|
|
|
|
extraGSettingsOverrides = builtins.readFile ./gsettings.conf;
|
|
|
|
favoriteAppsOverride = builtins.readFile ./appbar.conf;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.adb.enable = true;
|
|
|
|
|
|
|
|
environment.gnome.excludePackages = with pkgs.gnome; [
|
|
|
|
cheese
|
|
|
|
gnome-logs
|
|
|
|
gnome-music
|
|
|
|
totem
|
|
|
|
pkgs.gnome-photos
|
|
|
|
];
|
|
|
|
|
|
|
|
environment.variables = {
|
2022-03-31 02:39:41 +03:00
|
|
|
EDITOR = "hx";
|
2022-02-05 21:42:36 +02:00
|
|
|
SSH_ASKPASS = lib.mkForce "";
|
|
|
|
};
|
|
|
|
|
|
|
|
fonts.fonts = with pkgs; [
|
|
|
|
terminus_font_fancy
|
2022-02-21 20:58:11 +02:00
|
|
|
terminus_font_ttf
|
2022-02-05 21:42:36 +02:00
|
|
|
nerdfonts-terminus
|
|
|
|
noto-fonts
|
|
|
|
];
|
|
|
|
|
|
|
|
security = {
|
|
|
|
sudo.enable = false;
|
|
|
|
doas.enable = true;
|
|
|
|
doas.extraRules = [{
|
|
|
|
groups = [ "wheel" ];
|
|
|
|
noPass = true;
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
|
|
|
services.printing.enable = true;
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPortRanges = portRanges;
|
|
|
|
networking.firewall.allowedUDPPortRanges = portRanges;
|
|
|
|
|
|
|
|
services.avahi.enable = false;
|
|
|
|
|
|
|
|
services.fwupd.enable = true;
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
loader.timeout = 0;
|
|
|
|
initrd.verbose = false;
|
|
|
|
consoleLogLevel = 0;
|
|
|
|
kernelParams = [ "quiet" "udev.log_priority=3" ];
|
|
|
|
plymouth.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
zramSwap.enable = true;
|
|
|
|
zramSwap.algorithm = "zstd";
|
|
|
|
|
|
|
|
services.packagekit.enable = lib.mkForce false;
|
|
|
|
programs.gnome-terminal.enable = false;
|
|
|
|
|
|
|
|
qt5 = {
|
|
|
|
enable = true;
|
|
|
|
platformTheme = "gtk2";
|
|
|
|
style = "gtk2";
|
|
|
|
};
|
|
|
|
|
|
|
|
virtualisation.libvirtd.enable = true;
|
2022-06-07 21:25:12 +03:00
|
|
|
|
|
|
|
services.printing.drivers = with pkgs; [ hplip gutenprint ];
|
2022-02-05 21:42:36 +02:00
|
|
|
}
|