nix/thinkpad/configuration.nix

158 lines
3.2 KiB
Nix
Raw Normal View History

2022-08-01 21:11:10 +00:00
{ config, pkgs, ... }:
{
imports = [
../hardware-configuration.nix
../common/configuration.nix
];
nixpkgs.config.allowUnfree = true;
2022-08-01 21:39:24 +00:00
sound.enable = true;
time.timeZone = "Europe/Amsterdam";
virtualisation.libvirtd.enable = true;
2022-08-01 21:11:10 +00:00
boot = {
loader = {
timeout = 0;
efi.canTouchEfiVariables = true;
systemd-boot = {
enable = true;
consoleMode = "auto";
};
};
kernelPackages = pkgs.linuxPackages_latest;
kernelParams = [
"quiet"
"splash"
"vga=current"
"mitigations=off"
"udev.log_level=3"
];
initrd = {
verbose = false;
kernelModules = [ "i915" ];
};
consoleLogLevel = 0;
plymouth.enable = true;
};
console = {
earlySetup = true;
font = "${pkgs.terminus_font}/share/consolefonts/ter-132n.psf.gz";
packages = with pkgs; [ terminus_font ];
keyMap = "us";
};
networking = {
hostName = "sijmen-laptop";
networkmanager.enable = true;
2022-08-01 21:39:24 +00:00
firewall = {
allowedTCPPorts = [
22 # ssh
22000 # syncthing sync
51414 # transmission
57621 # spotify connect
];
allowedUDPPorts = [
21027 # syncthing discovery
22000 # syncthing sync
];
};
2022-08-01 21:11:10 +00:00
};
2022-08-01 21:39:24 +00:00
hardware = {
pulseaudio.enable = true;
bluetooth.enable = true;
};
2022-08-01 21:11:10 +00:00
i18n = {
defaultLocale = "en_US.UTF-8";
supportedLocales = [
"en_US.UTF-8/UTF-8"
"nl_NL.UTF-8/UTF-8"
];
};
users.users.sijmen = {
isNormalUser = true;
extraGroups = [ "wheel" "libvirtd" ];
};
environment = {
gnome.excludePackages = (with pkgs; [
gnome-photos
gnome-tour
]) ++ (with pkgs.gnome; [
gnome-calendar
gnome-music
epiphany # web browser
geary # email reader
totem # video player
tali # poker game
iagno # go game
hitori # sudoku game
atomix # puzzle game
]);
systemPackages = with pkgs; [ gnome.adwaita-icon-theme ];
};
2022-08-01 21:39:24 +00:00
services = {
pipewire.enable = true;
printing.enable = true;
throttled.enable = true;
2022-08-01 21:11:10 +00:00
2022-08-01 21:39:24 +00:00
xserver = {
enable = true;
displayManager.gdm.enable = true;
desktopManager.gnome.enable = true;
};
2022-08-01 21:11:10 +00:00
2022-08-01 21:39:24 +00:00
openssh = {
enable = true;
passwordAuthentication = false;
};
2022-08-01 21:11:10 +00:00
2022-08-01 21:39:24 +00:00
syncthing = {
enable = true;
user = "sijmen";
dataDir = config.users.users.sijmen.home;
overrideDevices = true;
overrideFolders = true;
2022-08-01 21:11:10 +00:00
2022-08-01 21:39:24 +00:00
devices = {
nas.id = "5XADATO-6ZKNZFK-YIX2TU3-RTUOAXR-OMWOAH6-OIUB7LE-TWM5B3C-W2I2FQU";
desktop-fedora.id = "RE3BCEP-2FVDNPA-C72KDCX-5NRTLD4-DEJZAIX-PJAMJAN-LJDFHOY-WOXNPQW";
};
2022-08-01 21:11:10 +00:00
2022-08-01 21:39:24 +00:00
folders = {
"vhuse-qjbcl" = {
path = "${config.users.users.sijmen.home}/Sync";
devices = [ "nas" "desktop-fedora" ];
};
2022-08-01 21:11:10 +00:00
};
};
};
fonts.fonts = with pkgs; [
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
nerdfonts
];
programs.steam = {
enable = true;
2022-08-01 21:39:24 +00:00
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
2022-08-01 21:11:10 +00:00
};
2022-08-01 21:39:24 +00:00
system.stateVersion = "22.05";
2022-08-01 21:11:10 +00:00
}