nixos-config/home-pc.nix

55 lines
1.2 KiB
Nix
Raw Normal View History

2019-08-24 13:12:32 +02:00
{ config, pkgs, ... }:
{
2019-10-19 12:55:35 +02:00
imports = [
2020-03-13 18:45:29 +01:00
./hardware/base.nix
./hardware/gpu-nvidia.nix
2021-03-04 14:45:54 +01:00
./hardware/steam.nix
2020-03-13 18:45:29 +01:00
./hardware/ledger.nix
./system
./system/gaming.nix
2020-03-13 18:45:29 +01:00
./desktop
2020-08-15 13:53:15 +02:00
./virtualisation/docker.nix
2020-10-06 17:41:56 +02:00
./services/syncthing/felix-nixos.nix
2020-11-07 11:58:17 +01:00
./services/pcscd.nix
2019-08-24 13:12:32 +02:00
];
# declarative config broken atm: https://github.com/NixOS/nixpkgs/issues/91986
swapDevices = [{
device = "/swap/swapfile";
size = 8192;
}];
2020-09-07 12:48:54 +02:00
2019-10-19 12:55:35 +02:00
nixpkgs.config.allowUnfree = true;
2019-08-24 13:12:32 +02:00
boot.loader.systemd-boot.memtest86.enable = true;
2020-05-22 17:46:14 +02:00
nixpkgs.config.permittedInsecurePackages = [
"p7zip-16.02" # currently used by lutris
];
hardware.enableAllFirmware = true;
hardware.cpu.amd.updateMicrocode = true;
services.fwupd.enable = true;
2020-02-15 10:47:55 +01:00
programs.adb.enable = true;
2020-03-21 16:44:35 +01:00
programs.zsh.enable = true;
2020-12-25 12:04:18 +01:00
networking.firewall.allowedTCPPorts = [
54950 # transmission
2020-12-25 12:04:18 +01:00
];
2021-10-29 20:27:44 +02:00
networking.firewall.allowedUDPPorts = [
24727 # AusweisApp2
];
networking.hosts = {
# force IPv4, see: https://github.com/transmission/transmission/issues/407
"87.98.162.88" = [ "portcheck.transmissionbt.com" ];
};
2020-12-25 12:04:18 +01:00
2021-06-10 12:06:19 +02:00
services.printing.drivers = with pkgs; [ epson-escpr ];
2019-10-19 12:55:35 +02:00
# only change this when specified in release notes
2021-12-01 10:47:09 +01:00
system.stateVersion = "21.11";
2019-08-24 13:12:32 +02:00
}