clean up thinkpad/configuration.nix
This commit is contained in:
parent
dd1aa5facf
commit
c3872d25aa
1 changed files with 53 additions and 60 deletions
|
@ -7,6 +7,9 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
sound.enable = true;
|
||||||
|
time.timeZone = "Europe/Amsterdam";
|
||||||
|
virtualisation.libvirtd.enable = true;
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
loader = {
|
loader = {
|
||||||
|
@ -48,15 +51,26 @@
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "sijmen-laptop";
|
hostName = "sijmen-laptop";
|
||||||
networkmanager.enable = true;
|
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 = {
|
||||||
hardware.bluetooth.enable = true;
|
pulseaudio.enable = true;
|
||||||
sound.enable = true;
|
bluetooth.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
time.timeZone = "Europe/Amsterdam";
|
|
||||||
|
|
||||||
# Select internationalisation properties.
|
|
||||||
i18n = {
|
i18n = {
|
||||||
defaultLocale = "en_US.UTF-8";
|
defaultLocale = "en_US.UTF-8";
|
||||||
supportedLocales = [
|
supportedLocales = [
|
||||||
|
@ -89,23 +103,23 @@
|
||||||
systemPackages = with pkgs; [ gnome.adwaita-icon-theme ];
|
systemPackages = with pkgs; [ gnome.adwaita-icon-theme ];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.pipewire.enable = true;
|
services = {
|
||||||
services.printing.enable = true;
|
pipewire.enable = true;
|
||||||
|
printing.enable = true;
|
||||||
|
throttled.enable = true;
|
||||||
|
|
||||||
services.xserver = {
|
xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
displayManager.gdm.enable = true;
|
displayManager.gdm.enable = true;
|
||||||
desktopManager.gnome.enable = true;
|
desktopManager.gnome.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.openssh = {
|
openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
passwordAuthentication = false;
|
passwordAuthentication = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.throttled.enable = true;
|
syncthing = {
|
||||||
|
|
||||||
services.syncthing = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
user = "sijmen";
|
user = "sijmen";
|
||||||
dataDir = config.users.users.sijmen.home;
|
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; [
|
fonts.fonts = with pkgs; [
|
||||||
|
@ -148,17 +149,9 @@
|
||||||
|
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
remotePlay.openFirewall = true;
|
||||||
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
dedicatedServer.openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.libvirtd.enable = true;
|
system.stateVersion = "22.05";
|
||||||
|
|
||||||
# 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. It‘s 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?
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue