2022-08-10 07:41:44 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
<nixos-hardware/framework>
|
|
|
|
./hardware-configuration.nix
|
|
|
|
../common/configuration.nix
|
|
|
|
];
|
|
|
|
|
2022-10-04 14:54:07 +00:00
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
|
2022-08-10 07:41:44 +00:00
|
|
|
hardware = {
|
|
|
|
bluetooth.enable = true;
|
2022-08-12 00:12:03 +00:00
|
|
|
pulseaudio.enable = false;
|
2022-08-10 07:41:44 +00:00
|
|
|
opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport32Bit = true;
|
|
|
|
extraPackages = with pkgs; [ intel-media-driver vaapiIntel ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
loader = {
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
systemd-boot = {
|
|
|
|
enable = true;
|
|
|
|
consoleMode = "auto";
|
2022-08-20 13:36:29 +00:00
|
|
|
configurationLimit = 10;
|
2022-08-10 07:41:44 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
kernelParams = [
|
|
|
|
"quiet"
|
|
|
|
"splash"
|
|
|
|
"vga=current"
|
|
|
|
"udev.log_level=3"
|
2022-08-12 00:12:54 +00:00
|
|
|
"i915.enable_psr=1"
|
|
|
|
"nvme.noacpi=1"
|
2022-08-10 07:41:44 +00:00
|
|
|
];
|
|
|
|
|
2022-08-10 17:36:57 +00:00
|
|
|
blacklistedKernelModules = [ "hid_sensor_hub" ];
|
|
|
|
|
2022-09-19 21:25:53 +00:00
|
|
|
supportedFilesystems = [ "ntfs" ];
|
|
|
|
|
2022-08-10 07:41:44 +00:00
|
|
|
loader.timeout = 0;
|
|
|
|
initrd.verbose = false;
|
|
|
|
consoleLogLevel = 0;
|
|
|
|
plymouth.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "sijmen-framework";
|
|
|
|
networkmanager.enable = true;
|
|
|
|
firewall = {
|
|
|
|
allowedTCPPorts = [
|
|
|
|
22 # ssh
|
|
|
|
22000 # syncthing sync
|
|
|
|
51414 # transmission
|
|
|
|
57621 # spotify connect
|
|
|
|
];
|
|
|
|
|
|
|
|
allowedUDPPorts = [
|
|
|
|
21027 # syncthing discovery
|
|
|
|
22000 # syncthing sync
|
|
|
|
51820 # wireguard
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2022-08-10 11:25:38 +00:00
|
|
|
wireguard.interfaces.wg0 = {
|
|
|
|
ips = [ "10.100.0.4/32" ];
|
|
|
|
listenPort = 51820;
|
2022-08-12 00:14:49 +00:00
|
|
|
privateKeyFile = "/home/sijmen/.config/wireguard-keys/private";
|
2022-08-10 11:25:38 +00:00
|
|
|
peers = [{
|
|
|
|
publicKey = "zu9vXxxg4wm0R4yWQ2HPaAwJbizuccGYbBB/StwSsm4=";
|
|
|
|
allowedIPs = [ "10.100.0.0/24" ];
|
|
|
|
endpoint = "143.178.219.107:51820";
|
|
|
|
persistentKeepalive = 25;
|
|
|
|
}];
|
|
|
|
};
|
2022-08-10 07:41:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
xserver = {
|
|
|
|
enable = true;
|
|
|
|
displayManager.gdm.enable = true;
|
2022-10-25 13:49:52 +00:00
|
|
|
desktopManager.plasma5.enable = true;
|
2022-08-10 07:41:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
syncthing = {
|
|
|
|
overrideDevices = true;
|
|
|
|
overrideFolders = true;
|
|
|
|
|
|
|
|
devices = {
|
|
|
|
nas.id = "5XADATO-6ZKNZFK-YIX2TU3-RTUOAXR-OMWOAH6-OIUB7LE-TWM5B3C-W2I2FQU";
|
|
|
|
desktop-fedora.id = "RE3BCEP-2FVDNPA-C72KDCX-5NRTLD4-DEJZAIX-PJAMJAN-LJDFHOY-WOXNPQW";
|
|
|
|
};
|
|
|
|
|
|
|
|
folders = {
|
|
|
|
"vhuse-qjbcl" = {
|
|
|
|
path = "${config.users.users.sijmen.home}/Sync";
|
|
|
|
devices = [ "nas" "desktop-fedora" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
fprintd.enable = true;
|
2022-08-12 00:12:03 +00:00
|
|
|
pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa = { enable = true; support32Bit = true; };
|
|
|
|
pulse.enable = true;
|
|
|
|
};
|
|
|
|
|
2022-08-20 13:36:29 +00:00
|
|
|
flatpak.enable = true;
|
|
|
|
ratbagd.enable = true;
|
|
|
|
|
2022-08-10 07:41:44 +00:00
|
|
|
logind.lidSwitchDocked = "suspend";
|
2022-08-12 00:12:54 +00:00
|
|
|
|
|
|
|
power-profiles-daemon.enable = false;
|
|
|
|
tlp = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
2022-08-20 13:36:29 +00:00
|
|
|
CPU_ENERGY_PERF_POLICY_ON_AC = "64";
|
|
|
|
CPU_ENERGY_PERF_POLICY_ON_BAT = "140";
|
2022-08-12 00:12:54 +00:00
|
|
|
PCIE_ASPM_ON_BAT = "powersupersave";
|
|
|
|
};
|
|
|
|
};
|
2022-08-10 07:41:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
security.pam.services.login.fprintAuth = true;
|
|
|
|
|
2022-10-25 13:49:52 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
gnome.adwaita-icon-theme
|
|
|
|
ifuse
|
|
|
|
libimobiledevice
|
|
|
|
libheif
|
|
|
|
];
|
2022-08-10 07:41:44 +00:00
|
|
|
|
|
|
|
programs.steam = {
|
|
|
|
enable = true;
|
|
|
|
remotePlay.openFirewall = true;
|
|
|
|
dedicatedServer.openFirewall = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.config.packageOverrides = pkgs: {
|
|
|
|
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
|
|
|
|
};
|
|
|
|
|
|
|
|
home-manager.users.sijmen.imports = [ ../common/dconf.nix ];
|
|
|
|
|
|
|
|
system.stateVersion = "22.05";
|
|
|
|
}
|