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

89 lines
2.0 KiB
Nix
Raw Normal View History

{ inputs, pkgs, ... }:
{
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-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
2025-01-01 22:17:08 +00:00
boot.initrd = {
luks.devices = {
cryptroot = {
2025-01-05 23:21:14 +00:00
device = "/dev/disk/by-uuid/1202158c-cf4a-49f5-83f6-d54af16bca65";
2025-01-01 22:17:08 +00:00
};
};
};
2024-12-14 13:49:51 +01:00
environment.sessionVariables = {
2025-01-07 17:06:28 +01:00
MUTTER_DEBUG_FORCE_KMS_MODE = "simple";
2024-12-14 13:49:51 +01: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;
2023-12-24 17:13:11 +01:00
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>
2024-08-28 15:04:19 +02:00
<rate>150.000</rate>
</mode>
</monitor>
</logicalmonitor>
</configuration>
</monitors>
''}"
];
2024-08-07 11:31:13 +02:00
home-manager.users.thiloho =
{ pkgs, lib, ... }:
{
2025-01-07 17:06:28 +01:00
programs.git.signing.key = "273D6150B9741CCF";
2024-08-07 11:31:13 +02:00
home = {
packages = with pkgs; [
inkscape
];
stateVersion = "24.11";
2024-08-07 11:31:13 +02:00
};
2023-10-01 22:59:28 +02:00
};
system.stateVersion = "24.11";
}