mirror of
https://github.com/thiloho/nixos-config.git
synced 2025-11-22 03:21:35 +01:00
53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
{ pkgs, inputs, lib, ... }:
|
|
|
|
{
|
|
imports = [
|
|
inputs.nixos-hardware.nixosModules.common-gpu-amd
|
|
inputs.nixos-hardware.nixosModules.common-cpu-amd
|
|
./hardware-configuration.nix
|
|
../shared-desktop.nix
|
|
../shared.nix
|
|
];
|
|
|
|
networking = {
|
|
hostName = "pc";
|
|
firewall = {
|
|
allowedTCPPorts = [ 5173 8081 ];
|
|
allowedUDPPorts = [ 5173 8081 ];
|
|
};
|
|
};
|
|
|
|
services = {
|
|
syncthing = {
|
|
enable = true;
|
|
user = "thiloho";
|
|
overrideFolders = true;
|
|
configDir = "/home/thiloho/.config/syncthing";
|
|
dataDir = "/home/thiloho";
|
|
openDefaultPorts = true;
|
|
};
|
|
postgresql = {
|
|
enable = true;
|
|
package = pkgs.postgresql_15;
|
|
ensureDatabases = [ "dcbot" "todos" ];
|
|
authentication = lib.mkForce ''
|
|
local all all trust
|
|
host all all ::1/128 trust
|
|
'';
|
|
};
|
|
};
|
|
|
|
programs.adb.enable = true;
|
|
users.users.thiloho.extraGroups = [ "adbusers" ];
|
|
|
|
home-manager.users.thiloho = { pkgs, lib, ... }: {
|
|
programs.git.signing.key = "5ECD00BDC15A987E";
|
|
home = {
|
|
packages = with pkgs; [ blender inkscape libcec ];
|
|
stateVersion = "23.05";
|
|
};
|
|
};
|
|
system.stateVersion = "23.05";
|
|
}
|
|
|