nix/nixos/desktop/default.nix

67 lines
1.5 KiB
Nix
Raw Permalink Normal View History

2022-06-06 23:08:01 +02:00
{ pkgs, lib, ... }:
2021-10-08 05:48:27 +02:00
{
networking.wireless.iwd = {
enable = true;
settings = {
General = {
AddressRandomization = "network";
# EnableNetworkConfiguration = false;
2022-06-06 23:08:01 +02:00
# RoamThreshold = -70;
# RoamThreshold5G = -90;
RoamRetryInterval = 10;
};
# Network.EnableIPv6 = true;
Rank.BandModifier5Ghz = 5.0;
# Scan.DisablePeriodicScan = true;
};
};
2021-11-06 13:13:46 +01:00
hardware.bluetooth.enable = true;
2021-10-13 00:47:43 +02:00
sound.enable = true;
2021-11-26 20:03:09 +01:00
hardware.pulseaudio.enable = false; #use pipewire
services.pipewire = {
enable = true;
alsa.enable = true;
# alsa.support32bit = true;
pulse.enable = true;
};
2021-10-09 01:09:39 +02:00
2021-10-13 00:47:43 +02:00
environment.systemPackages = with pkgs; [
iw
2022-06-06 23:08:01 +02:00
# pulseaudio-modules-bt
## android-tools
2021-10-13 00:47:43 +02:00
];
2021-10-09 01:09:39 +02:00
2023-06-14 18:41:21 +02:00
# syncthing
networking.firewall.allowedTCPPorts = [ 22000 ];
networking.firewall.allowedUDPPorts = [ 22000 21027 ];
2023-06-14 18:41:21 +02:00
2021-11-26 20:03:09 +01:00
programs.browserpass.enable = true;
2021-10-13 00:47:43 +02:00
# smartcard
services.pcscd.enable = true;
2021-11-26 20:03:09 +01:00
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryFlavor = "gnome3";
};
programs.kdeconnect = {
enable = true;
};
2022-07-05 22:39:45 +02:00
2022-06-06 23:08:01 +02:00
services.udev.extraRules = lib.mkMerge [
2022-07-05 22:39:45 +02:00
# meine maus geht immer aus
# # autosuspend USB devices
# ''ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{power/control}="auto"''
# # autosuspend PCI devices
# ''ACTION=="add", SUBSYSTEM=="pci", TEST=="power/control", ATTR{power/control}="auto"''
2022-06-06 23:08:01 +02:00
# disable Ethernet Wake-on-LAN
''ACTION=="add", SUBSYSTEM=="net", NAME=="enp*", RUN+="${pkgs.ethtool}/sbin/ethtool -s $name wol d"''
];
services.upower.enable = true;
2021-10-08 05:48:27 +02:00
}