liminalOS/reference/hosts/callisto/configuration.nix

100 lines
2.5 KiB
Nix
Raw Normal View History

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
}:
{
imports = [ ./hardware-configuration.nix ];
networking.hostName = "callisto";
time.timeZone = "America/Los_Angeles";
2024-08-21 16:48:17 -07:00
liminalOS = {
flakeLocation = "/home/youwen/.config/liminalOS";
2024-12-26 01:28:34 -08:00
config.allowUnfree = false;
defaultEditor = inputs.viminal.packages.${pkgs.system}.default;
formFactor = "laptop";
2024-12-26 01:28:34 -08:00
theming = {
wallpaper = "${inputs.wallpapers}/aesthetic/afterglow_city_skyline_at_night.png";
# if you don't manually set polarity when using manual colorscheme, GTK
# apps won't respect colorscheme
base16Scheme = "${pkgs.base16-schemes}/share/themes/rose-pine.yaml";
polarity = "dark";
};
system = {
networking = {
firewallPresets.vite = true;
cloudflareNameservers.enable = true;
backend = "iwd";
};
2024-12-22 23:26:13 -08:00
};
};
2024-12-26 01:28:34 -08:00
users.users.youwen = {
isNormalUser = true;
description = "Youwen Wu";
extraGroups = [ "wheel" ];
shell = pkgs.fish;
};
boot = {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = false;
kernelParams = [ "apple_dcp.show_notch=1" ];
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";
};
nixpkgs.overlays = [
inputs.apple-silicon.overlays.apple-silicon-overlay
inputs.vesktop-bin.overlays.default
];
2024-08-21 16:48:17 -07:00
nix.settings = {
2024-09-02 18:16:22 -07:00
trusted-users = [
"youwen"
];
2024-08-21 16:48:17 -07:00
};
services.udev.extraRules = ''
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 = {
h = "left";
j = "down";
k = "up";
2024-08-21 16:48:17 -07:00
l = "right";
};
};
};
};
};
system.stateVersion = "24.11";
2024-08-21 16:48:17 -07:00
}