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
./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
./services/jellyfin.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
# { device = "/swap/swapfile"; size = 8192; }
2020-09-23 13:19:19 +02:00
swapDevices = [{ device = "/swap/swapfile"; }];
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
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 = [
4824 # transmission
];
2019-08-24 13:12:32 +02:00
users.users.felschr = {
isNormalUser = true;
2020-06-18 16:20:42 +02:00
extraGroups = [ "wheel" "audio" "docker" "disk" ];
2020-03-14 01:38:34 +01:00
shell = pkgs.zsh;
2019-08-24 13:12:32 +02:00
};
2019-10-19 12:55:35 +02:00
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
backupFileExtension = "backup";
users.felschr = import ./home/felschr.nix;
};
2019-08-24 13:12:32 +02:00
2019-10-19 12:55:35 +02:00
# only change this when specified in release notes
system.stateVersion = "20.09";
2019-08-24 13:12:32 +02:00
}