nixos/spec/koumakyou/default.nix

90 lines
2.3 KiB
Nix
Raw Normal View History

2025-01-13 11:52:09 +08:00
{
pkgs,
lib,
config,
jovian,
...
}:
{
2024-01-07 22:01:31 +08:00
global = {
2024-04-29 22:36:32 +08:00
id = "0a920a834b5f480bab258040096d4c6e";
fs.esp.uuid = "ACB3-4AFF";
2024-01-05 22:27:04 +08:00
fs.type = "xfs";
2024-04-29 22:36:32 +08:00
fs.store = "6b885fa6-5c13-4a46-94da-a287232606b9";
2024-01-05 22:27:04 +08:00
fs.cryptsetup.enable = true;
2024-04-29 22:36:32 +08:00
fs.cryptsetup.uuids.persist = "b4a5a66d-b491-4ac7-bc71-1ea8b1a503be";
2024-01-05 22:27:04 +08:00
boot.lanzaboote = true;
2024-01-27 22:14:03 +08:00
gpu.enable = true;
2024-04-29 22:36:32 +08:00
gpu.type = "amdgpu";
2024-01-05 22:27:04 +08:00
};
home = {
jetbrains.enable = true;
2024-04-29 22:36:32 +08:00
vscode.enable = true;
2024-01-05 22:27:04 +08:00
minecraft.enable = true;
minecraft.user = "app";
2024-01-05 22:27:04 +08:00
};
2025-01-13 11:52:09 +08:00
users.homeModules = [
{
wayland.windowManager.sway.config = {
input."1046:911:Goodix_Capacitive_TouchScreen".map_to_output = "eDP-1";
output = {
eDP-1.scale = "1.75";
};
2024-04-29 22:36:32 +08:00
};
2025-01-13 11:52:09 +08:00
}
];
2024-04-29 22:36:32 +08:00
powerManagement.enable = true;
powerManagement.cpuFreqGovernor = "performance";
2024-04-29 22:36:32 +08:00
powerManagement.resumeCommands = ''
# trackpad driver resume workaround
${pkgs.kmod}/bin/modprobe -r bmi260_i2c
${pkgs.kmod}/bin/modprobe -r bmi260_core
${pkgs.kmod}/bin/modprobe bmi260_i2c
${pkgs.kmod}/bin/modprobe bmi260_core
'';
2024-05-22 21:11:06 +08:00
console.packages = [ pkgs.terminus_font ];
console.font = "ter-v32n";
console.earlySetup = true;
2024-05-11 00:03:05 +08:00
specialisation.desktop.configuration = {
global.jovian = false;
jovian.steamos.useSteamOSConfig = false;
2025-01-13 11:52:09 +08:00
services.greetd.settings.default_session.command =
let
cfg = config.programs.regreet;
in
"${pkgs.dbus}/bin/dbus-run-session ${lib.getExe pkgs.cage} ${lib.escapeShellArgs cfg.cageArgs} -- ${pkgs.writeShellScript "cageResolution" ''
${lib.getExe pkgs.wlr-randr} --output eDP-1 --scale 2
${lib.getExe cfg.package}
''}";
2024-05-13 09:43:33 +08:00
environment.systemPackages = with pkgs; [
(writeShellScriptBin "sway-logout" ''
${systemd}/bin/systemctl --user unset-environment WAYLAND_DISPLAY SWAYSOCK
${sway}/bin/swaymsg exit
'')
];
2024-05-11 00:03:05 +08:00
};
2024-01-05 22:27:04 +08:00
hardware.enableRedistributableFirmware = true;
2025-01-13 11:52:09 +08:00
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"thunderbolt"
"usbhid"
"usb_storage"
"sd_mod"
];
2024-01-05 22:27:04 +08:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
2024-04-29 22:36:32 +08:00
hardware.cpu.intel.updateMicrocode = true;
imports = [
jovian.nixosModules.jovian
./jovian.nix
];
2024-01-05 22:27:04 +08:00
}