mirror of
https://github.com/thiloho/nixos-config.git
synced 2025-11-22 19:41:35 +01:00
68 lines
1.7 KiB
Nix
68 lines
1.7 KiB
Nix
{ inputs, pkgs, ... }:
|
|
|
|
{
|
|
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 ];
|
|
};
|
|
};
|
|
|
|
boot.kernelParams = [ "amd_iommu=on" ];
|
|
|
|
virtualisation.libvirtd.enable = true;
|
|
virtualisation.libvirtd.qemu.swtpm.enable = true;
|
|
programs.virt-manager.enable = true;
|
|
|
|
programs.adb.enable = true;
|
|
users.users.thiloho.extraGroups = [ "adbusers" ];
|
|
|
|
# Use same monitor settings for GDM as for GNOME user
|
|
systemd.tmpfiles.rules = [
|
|
"L+ /run/gdm/.config/monitors.xml - - - - ${pkgs.writeText "gdm-monitors.xml" ''
|
|
<monitors version="2">
|
|
<configuration>
|
|
<logicalmonitor>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<scale>2</scale>
|
|
<primary>yes</primary>
|
|
<monitor>
|
|
<monitorspec>
|
|
<connector>DP-3</connector>
|
|
<vendor>GBT</vendor>
|
|
<product>M27U</product>
|
|
<serial>23323B000497</serial>
|
|
</monitorspec>
|
|
<mode>
|
|
<width>3840</width>
|
|
<height>2160</height>
|
|
<rate>160.000</rate>
|
|
</mode>
|
|
</monitor>
|
|
</logicalmonitor>
|
|
</configuration>
|
|
</monitors>
|
|
''}"
|
|
];
|
|
|
|
home-manager.users.thiloho = { pkgs, lib, ... }: {
|
|
programs.git.signing.key = "5ECD00BDC15A987E";
|
|
home = {
|
|
packages = with pkgs; [ blender inkscape chromium ];
|
|
stateVersion = "23.05";
|
|
};
|
|
};
|
|
system.stateVersion = "23.05";
|
|
}
|
|
|