55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./hardware/base.nix
|
|
./hardware/gpu-nvidia.nix
|
|
./hardware/steam.nix
|
|
./hardware/ledger.nix
|
|
./system
|
|
./desktop
|
|
./virtualisation/docker.nix
|
|
./services/syncthing/felix-nixos.nix
|
|
./services/jellyfin.nix
|
|
./services/pcscd.nix
|
|
];
|
|
|
|
# declarative config broken atm: https://github.com/NixOS/nixpkgs/issues/91986
|
|
# { device = "/swap/swapfile"; size = 8192; }
|
|
swapDevices = [{ device = "/swap/swapfile"; }];
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
nixpkgs.config.permittedInsecurePackages = [
|
|
"p7zip-16.02" # currently used by lutris
|
|
];
|
|
|
|
hardware.enableAllFirmware = true;
|
|
hardware.cpu.amd.updateMicrocode = true;
|
|
services.fwupd.enable = true;
|
|
|
|
programs.adb.enable = true;
|
|
|
|
programs.zsh.enable = true;
|
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
4824 # transmission
|
|
];
|
|
|
|
users.users.felschr = {
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" "audio" "docker" "disk" ];
|
|
shell = pkgs.zsh;
|
|
};
|
|
|
|
home-manager = {
|
|
useUserPackages = true;
|
|
useGlobalPkgs = true;
|
|
backupFileExtension = "backup";
|
|
users.felschr = import ./home/felschr.nix;
|
|
};
|
|
|
|
# only change this when specified in release notes
|
|
system.stateVersion = "20.09";
|
|
}
|