liminalOS/reference/hosts/callisto/configuration.nix
Youwen Wu 5aed50c325
Some checks are pending
Check flake / check (push) Waiting to run
chore: remove commented out code for fixing hyprland
2025-01-23 01:33:52 -08:00

78 lines
1.9 KiB
Nix
Executable file
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{
inputs,
pkgs,
...
}:
{
imports = [ ./hardware-configuration.nix ];
networking.hostName = "callisto";
time.timeZone = "America/Los_Angeles";
liminalOS = {
flakeLocation = "/home/youwen/.config/liminalOS";
config.allowUnfree = false;
defaultEditor = inputs.viminal.packages.${pkgs.system}.default;
formFactor = "laptop";
system = {
networking = {
firewallPresets.vite = true;
cloudflareNameservers.enable = true;
backend = "iwd";
};
};
};
boot = {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = false;
kernelParams = [ "apple_dcp.show_notch=1" ];
extraModprobeConfig = ''
options hid_apple iso_layout=0
'';
};
hardware.asahi = {
peripheralFirmwareDirectory = "${inputs.apple-firmware}/firmware";
useExperimentalGPUDriver = true;
};
nixpkgs.overlays = [
inputs.apple-silicon.overlays.apple-silicon-overlay
inputs.vesktop-bin.overlays.default
];
services.udev.extraRules = ''
KERNEL=="macsmc-battery", SUBSYSTEM=="power_supply", ATTR{charge_control_end_threshold}="90", ATTR{charge_control_start_threshold}="85"
'';
services.keyd = {
enable = true;
keyboards = {
default = {
ids = [ "*" ];
settings = {
main = {
capslock = "esc";
leftmeta = "leftcontrol";
leftalt = "leftmeta";
leftcontrol = "leftalt";
rightmeta = "leftalt";
rightalt = "layer(rightalt)";
};
rightalt = {
h = "left";
j = "down";
k = "up";
l = "right";
};
};
};
};
};
system.stateVersion = "24.11";
}