2024-08-21 16:48:17 -07:00
|
|
|
|
# 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,
|
|
|
|
|
...
|
2024-09-02 18:16:22 -07:00
|
|
|
|
}:
|
|
|
|
|
{
|
2024-12-25 19:54:42 -08:00
|
|
|
|
imports = [ ./hardware-configuration.nix ];
|
|
|
|
|
|
|
|
|
|
networking.hostName = "callisto";
|
|
|
|
|
time.timeZone = "America/Los_Angeles";
|
2024-08-21 16:48:17 -07:00
|
|
|
|
|
2024-12-22 22:26:41 -08:00
|
|
|
|
liminalOS = {
|
2024-12-25 19:54:42 -08:00
|
|
|
|
flakeLocation = "/home/youwen/.config/liminalOS";
|
2024-12-26 01:28:34 -08:00
|
|
|
|
config.allowUnfree = false;
|
|
|
|
|
defaultEditor = inputs.viminal.packages.${pkgs.system}.default;
|
2024-12-25 19:54:42 -08:00
|
|
|
|
formFactor = "laptop";
|
2024-12-22 22:26:41 -08:00
|
|
|
|
system = {
|
|
|
|
|
networking = {
|
|
|
|
|
firewallPresets.vite = true;
|
|
|
|
|
cloudflareNameservers.enable = true;
|
2024-12-26 02:20:00 -08:00
|
|
|
|
backend = "iwd";
|
2024-12-22 22:26:41 -08:00
|
|
|
|
};
|
2024-12-22 23:26:13 -08:00
|
|
|
|
};
|
2024-12-22 22:26:41 -08:00
|
|
|
|
};
|
|
|
|
|
|
2024-11-06 23:37:11 -08:00
|
|
|
|
boot = {
|
|
|
|
|
loader.systemd-boot.enable = true;
|
|
|
|
|
loader.efi.canTouchEfiVariables = false;
|
2024-12-25 19:54:42 -08:00
|
|
|
|
kernelParams = [ "apple_dcp.show_notch=1" ];
|
2024-11-06 23:37:11 -08:00
|
|
|
|
extraModprobeConfig = ''
|
|
|
|
|
options hid_apple iso_layout=0
|
|
|
|
|
'';
|
|
|
|
|
};
|
2024-08-21 16:48:17 -07:00
|
|
|
|
|
|
|
|
|
hardware.asahi = {
|
2024-09-04 11:08:41 -07:00
|
|
|
|
peripheralFirmwareDirectory = "${inputs.apple-firmware}/firmware";
|
2024-08-21 16:48:17 -07:00
|
|
|
|
useExperimentalGPUDriver = true;
|
|
|
|
|
experimentalGPUInstallMode = "overlay";
|
|
|
|
|
};
|
|
|
|
|
|
2024-12-24 20:23:58 -08:00
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
|
inputs.apple-silicon.overlays.apple-silicon-overlay
|
|
|
|
|
inputs.vesktop-bin.overlays.default
|
2025-01-16 15:39:38 -08:00
|
|
|
|
(final: prev: {
|
|
|
|
|
hyprland = prev.hyprland.override {
|
|
|
|
|
libgbm = prev.mesa;
|
|
|
|
|
};
|
|
|
|
|
})
|
2024-12-24 20:23:58 -08:00
|
|
|
|
];
|
2024-08-21 16:48:17 -07:00
|
|
|
|
|
|
|
|
|
services.udev.extraRules = ''
|
2024-09-17 22:24:46 -07:00
|
|
|
|
KERNEL=="macsmc-battery", SUBSYSTEM=="power_supply", ATTR{charge_control_end_threshold}="90", ATTR{charge_control_start_threshold}="85"
|
2024-08-21 16:48:17 -07:00
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
services.keyd = {
|
|
|
|
|
enable = true;
|
|
|
|
|
keyboards = {
|
|
|
|
|
default = {
|
2024-09-02 18:16:22 -07:00
|
|
|
|
ids = [ "*" ];
|
2024-08-21 16:48:17 -07:00
|
|
|
|
settings = {
|
|
|
|
|
main = {
|
|
|
|
|
capslock = "esc";
|
|
|
|
|
leftmeta = "leftcontrol";
|
|
|
|
|
leftalt = "leftmeta";
|
|
|
|
|
leftcontrol = "leftalt";
|
|
|
|
|
rightmeta = "leftalt";
|
|
|
|
|
rightalt = "layer(rightalt)";
|
|
|
|
|
};
|
|
|
|
|
rightalt = {
|
2024-12-05 23:57:21 -08:00
|
|
|
|
h = "left";
|
|
|
|
|
j = "down";
|
|
|
|
|
k = "up";
|
2024-08-21 16:48:17 -07:00
|
|
|
|
l = "right";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2024-12-25 19:54:42 -08:00
|
|
|
|
system.stateVersion = "24.11";
|
2024-08-21 16:48:17 -07:00
|
|
|
|
}
|