mirror of
https://github.com/ivabus/nixos
synced 2024-11-22 08:25:07 +03:00
54 lines
1.5 KiB
Nix
54 lines
1.5 KiB
Nix
{ config, pkgs, rust-overlay, ... }:
|
|
|
|
let my = import ../..;
|
|
in {
|
|
imports = [ ./hardware.nix my.modules ];
|
|
|
|
networking.hostName = "celerrime";
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = false;
|
|
# Enable screen space near notch
|
|
boot.kernelParams = [ "apple_dcp.show_notch=1" ];
|
|
services.logind.extraConfig = ''
|
|
HandlePowerKey=ignore
|
|
'';
|
|
|
|
my.laptop.enable = true;
|
|
my.git.enable = true;
|
|
my.roles = {
|
|
design.enable = true;
|
|
devel.enable = true;
|
|
gaming.enable = false;
|
|
graphical.enable = true;
|
|
latex.enable = false;
|
|
media-client.enable = true;
|
|
torrent.enable = true;
|
|
virtualisation.enable = false;
|
|
yggdrasil-client.enable = true;
|
|
yggdrasil-peer.enable = false;
|
|
|
|
server = { ivabus-dev.enable = false; };
|
|
};
|
|
my.users = {
|
|
ivabus.enable = true;
|
|
user.enable = false;
|
|
};
|
|
my.features.secrets = false;
|
|
|
|
networking.useDHCP = true;
|
|
hardware.bluetooth.enable = true;
|
|
hardware.bluetooth.input = { General = { UserspaceHID = true; }; };
|
|
services.blueman.enable = true;
|
|
|
|
# Setup asahi-specific things. NOTE: you must copy firmware from ESP to /etc/nixos/asahi/firmware
|
|
hardware.asahi.peripheralFirmwareDirectory = ../../asahi/firmware;
|
|
hardware.asahi.useExperimentalGPUDriver = true;
|
|
hardware.asahi.setupAsahiSound = true;
|
|
boot.m1n1CustomLogo = ../../asahi/logo.png;
|
|
|
|
environment.systemPackages = with pkgs;
|
|
[ (retroarch.override { cores = with libretro; [ np2kai ]; }) ];
|
|
|
|
system.stateVersion = "23.05";
|
|
}
|