2024-08-06 14:04:28 +02:00
|
|
|
{ inputs, pkgs, ... }:
|
2023-05-10 19:59:21 +02:00
|
|
|
|
|
|
|
|
{
|
2023-06-03 05:42:48 +02:00
|
|
|
imports = [
|
2023-09-20 00:35:40 +02:00
|
|
|
inputs.nixos-hardware.nixosModules.common-gpu-amd
|
|
|
|
|
inputs.nixos-hardware.nixosModules.common-cpu-amd
|
2023-06-03 05:42:48 +02:00
|
|
|
./hardware-configuration.nix
|
2023-07-02 00:18:17 +02:00
|
|
|
../shared-desktop.nix
|
2023-06-03 05:42:48 +02:00
|
|
|
../shared.nix
|
|
|
|
|
];
|
2023-05-10 19:59:21 +02:00
|
|
|
|
2023-12-24 17:13:11 +01:00
|
|
|
networking = {
|
|
|
|
|
hostName = "pc";
|
|
|
|
|
firewall = {
|
2024-08-07 11:31:13 +02: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" ];
|
2024-08-14 17:26:56 +02:00
|
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
|
|
|
|
|
|
programs.ssh.extraConfig = ''
|
|
|
|
|
Host 128.140.75.240
|
|
|
|
|
ForwardAgent yes
|
|
|
|
|
'';
|
2024-02-03 21:01:15 +01:00
|
|
|
|
|
|
|
|
virtualisation.libvirtd.enable = true;
|
|
|
|
|
virtualisation.libvirtd.qemu.swtpm.enable = true;
|
|
|
|
|
programs.virt-manager.enable = true;
|
|
|
|
|
|
2023-12-24 17:13:11 +01:00
|
|
|
programs.adb.enable = true;
|
|
|
|
|
users.users.thiloho.extraGroups = [ "adbusers" ];
|
|
|
|
|
|
2024-08-06 14:04:28 +02:00
|
|
|
# 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>
|
|
|
|
|
''}"
|
|
|
|
|
];
|
|
|
|
|
|
2024-08-07 11:31:13 +02:00
|
|
|
home-manager.users.thiloho =
|
|
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
|
{
|
|
|
|
|
programs.git.signing.key = "5FED02C109365F87";
|
|
|
|
|
home = {
|
|
|
|
|
packages = with pkgs; [
|
|
|
|
|
blender
|
|
|
|
|
inkscape
|
|
|
|
|
];
|
|
|
|
|
stateVersion = "23.05";
|
|
|
|
|
};
|
2023-10-01 22:59:28 +02:00
|
|
|
};
|
2023-06-24 21:36:20 +00:00
|
|
|
system.stateVersion = "23.05";
|
2023-05-10 19:59:21 +02:00
|
|
|
}
|