2024-04-04 21:22:50 +09:00
|
|
|
{ inputs, config, lib, pkgs, system, ... }: {
|
2023-10-08 19:21:29 +09:00
|
|
|
imports = [
|
|
|
|
./disks.nix
|
2024-07-27 22:02:20 +09:00
|
|
|
./syncthing.nix
|
2024-07-27 20:06:50 +09:00
|
|
|
../../common/modules/secureboot.nix
|
2024-07-27 11:25:41 +09:00
|
|
|
# ../../common/modules/yubikey-auth.nix
|
2024-07-27 20:06:50 +09:00
|
|
|
# ../../common/modules/boot.nix
|
2024-07-28 09:14:59 +09:00
|
|
|
../../common/modules/ssh-luks.nix
|
2023-12-27 18:27:55 +09:00
|
|
|
../../common/services/openrazer.nix
|
2023-12-31 23:08:40 +09:00
|
|
|
../../common/services/podman.nix
|
2024-01-12 16:50:43 +09:00
|
|
|
../../common/services/tailscale-autoconnect.nix
|
2024-07-27 20:11:30 +09:00
|
|
|
../../common/modules/builder.nix
|
2024-07-28 22:28:48 +09:00
|
|
|
../../common/modules/nvidia-535.nix
|
2023-10-08 19:21:29 +09:00
|
|
|
];
|
|
|
|
|
2024-07-28 22:31:25 +09:00
|
|
|
#### TEMPORARY TODO ####
|
|
|
|
environment.variables = { MOZ_ENABLE_WAYLAND = 0; };
|
|
|
|
|
|
|
|
services.displayManager.sddm = {
|
|
|
|
wayland.enable = true;
|
|
|
|
wayland.compositor = "kwin";
|
|
|
|
enableHidpi = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2023-10-08 19:21:29 +09:00
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "thunderbolt" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
boot.kernelModules = [ "kvm-intel" "acpi_call" ];
|
|
|
|
boot.extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
|
|
|
|
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2023-12-27 18:30:12 +09:00
|
|
|
hardware.keyboard.zsa.enable = true;
|
2023-10-08 19:21:29 +09:00
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
time.timeZone = "Asia/Tokyo";
|
|
|
|
|
|
|
|
# Set the networking hostname:
|
|
|
|
networking.hostName = "nixos-desktop";
|
2024-01-07 18:50:39 +09:00
|
|
|
|
2024-07-27 12:48:09 +09:00
|
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
2024-07-27 21:39:39 +09:00
|
|
|
services.hardware = {
|
2024-07-27 21:28:15 +09:00
|
|
|
openrgb = {
|
|
|
|
enable = true;
|
|
|
|
motherboard = "intel";
|
|
|
|
};
|
2024-07-27 21:39:39 +09:00
|
|
|
};
|
2024-07-27 21:28:15 +09:00
|
|
|
|
2024-07-27 21:39:39 +09:00
|
|
|
hardware = {
|
2024-06-24 12:55:17 +09:00
|
|
|
opengl = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2024-07-28 22:32:36 +09:00
|
|
|
};
|
2024-06-24 12:55:17 +09:00
|
|
|
|
2023-12-27 13:13:32 +09:00
|
|
|
environment.systemPackages = [
|
|
|
|
# deployments and development environments
|
2024-01-31 12:31:01 +09:00
|
|
|
inputs.deploy-rs.packages.${system}.deploy-rs
|
2023-12-27 13:13:32 +09:00
|
|
|
pkgs.distrobox
|
|
|
|
|
2023-10-08 19:21:29 +09:00
|
|
|
# nVidia gpu options
|
2024-06-12 19:15:32 +09:00
|
|
|
pkgs.nvtopPackages.nvidia
|
2023-10-08 19:21:29 +09:00
|
|
|
# WINE
|
2024-01-01 13:25:08 +09:00
|
|
|
# support 32-bit only
|
2024-01-01 13:25:28 +09:00
|
|
|
pkgs.wine
|
2024-01-01 13:25:08 +09:00
|
|
|
# support 64-bit only
|
2024-01-01 13:25:28 +09:00
|
|
|
(pkgs.wine.override { wineBuild = "wine64"; })
|
2024-01-01 13:25:08 +09:00
|
|
|
pkgs.wineWowPackages.staging
|
2023-12-27 13:13:32 +09:00
|
|
|
pkgs.winetricks
|
|
|
|
pkgs.wineWowPackages.waylandFull
|
2023-12-27 18:27:55 +09:00
|
|
|
|
|
|
|
# RGB stuff
|
|
|
|
pkgs.openrgb-with-all-plugins
|
2024-01-04 11:39:19 +09:00
|
|
|
|
|
|
|
# Other
|
|
|
|
pkgs.android-udev-rules
|
2023-10-08 19:21:29 +09:00
|
|
|
];
|
|
|
|
}
|