Files
nixos-config/nixos-configurations/pc/default.nix

59 lines
1.3 KiB
Nix
Raw Normal View History

2024-01-13 16:58:15 +01:00
{ pkgs, inputs, lib, ... }:
{
imports = [
2023-09-20 00:35:40 +02:00
inputs.nixos-hardware.nixosModules.common-gpu-amd
inputs.nixos-hardware.nixosModules.common-cpu-amd
./hardware-configuration.nix
2023-07-02 00:18:17 +02:00
../shared-desktop.nix
../shared.nix
];
2023-12-24 17:13:11 +01:00
networking = {
hostName = "pc";
firewall = {
2024-02-07 11:08:33 +01:00
allowedTCPPorts = [ 5173 8081 ];
allowedUDPPorts = [ 5173 8081 ];
2023-12-24 17:13:11 +01:00
};
};
2023-05-25 11:40:57 +02:00
2024-02-03 21:01:15 +01:00
boot.kernelParams = [ "amd_iommu=on" ];
virtualisation.libvirtd.enable = true;
virtualisation.libvirtd.qemu.swtpm.enable = true;
programs.virt-manager.enable = true;
2024-01-04 14:07:22 +01:00
services = {
2024-01-04 17:51:05 +01:00
syncthing = {
enable = true;
user = "thiloho";
overrideFolders = true;
configDir = "/home/thiloho/.config/syncthing";
dataDir = "/home/thiloho";
openDefaultPorts = true;
};
2024-01-04 14:07:22 +01:00
postgresql = {
enable = true;
package = pkgs.postgresql_15;
ensureDatabases = [ "dcbot" "todos" ];
2024-01-13 16:58:15 +01:00
authentication = lib.mkForce ''
local all all trust
host all all ::1/128 trust
2024-01-04 14:07:22 +01:00
'';
};
2023-08-29 16:03:38 +02:00
};
2023-12-24 17:13:11 +01:00
programs.adb.enable = true;
users.users.thiloho.extraGroups = [ "adbusers" ];
2023-06-12 19:49:59 +02:00
home-manager.users.thiloho = { pkgs, lib, ... }: {
2023-08-06 19:52:02 +02:00
programs.git.signing.key = "5ECD00BDC15A987E";
2023-10-01 22:59:28 +02:00
home = {
2024-02-07 11:08:33 +01:00
packages = with pkgs; [ blender inkscape ];
2023-10-01 22:59:28 +02:00
stateVersion = "23.05";
};
};
2023-06-24 21:36:20 +00:00
system.stateVersion = "23.05";
}