clean up thinkpad/configuration.nix

This commit is contained in:
Sijmen 2022-08-01 23:39:24 +02:00
parent dd1aa5facf
commit c3872d25aa

View file

@ -7,6 +7,9 @@
];
nixpkgs.config.allowUnfree = true;
sound.enable = true;
time.timeZone = "Europe/Amsterdam";
virtualisation.libvirtd.enable = true;
boot = {
loader = {
@ -48,15 +51,26 @@
networking = {
hostName = "sijmen-laptop";
networkmanager.enable = true;
firewall = {
allowedTCPPorts = [
22 # ssh
22000 # syncthing sync
51414 # transmission
57621 # spotify connect
];
allowedUDPPorts = [
21027 # syncthing discovery
22000 # syncthing sync
];
};
};
hardware.pulseaudio.enable = true;
hardware.bluetooth.enable = true;
sound.enable = true;
hardware = {
pulseaudio.enable = true;
bluetooth.enable = true;
};
time.timeZone = "Europe/Amsterdam";
# Select internationalisation properties.
i18n = {
defaultLocale = "en_US.UTF-8";
supportedLocales = [
@ -89,23 +103,23 @@
systemPackages = with pkgs; [ gnome.adwaita-icon-theme ];
};
services.pipewire.enable = true;
services.printing.enable = true;
services = {
pipewire.enable = true;
printing.enable = true;
throttled.enable = true;
services.xserver = {
xserver = {
enable = true;
displayManager.gdm.enable = true;
desktopManager.gnome.enable = true;
};
services.openssh = {
openssh = {
enable = true;
passwordAuthentication = false;
};
services.throttled.enable = true;
services.syncthing = {
syncthing = {
enable = true;
user = "sijmen";
dataDir = config.users.users.sijmen.home;
@ -124,19 +138,6 @@
};
};
};
networking.firewall = {
allowedTCPPorts = [
22 # ssh
22000 # syncthing sync
51414 # transmission
57621 # spotify connect
];
allowedUDPPorts = [
21027 # syncthing discovery
22000 # syncthing sync
];
};
fonts.fonts = with pkgs; [
@ -148,17 +149,9 @@
programs.steam = {
enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
virtualisation.libvirtd.enable = true;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "22.05"; # Did you read the comment?
system.stateVersion = "22.05";
}