mirror of
https://github.com/ivabus/nixos
synced 2024-11-26 02:05:06 +03:00
Ivan Bushchik
f916ffb2b4
Untested VF2 config, basic "user", option to enable users, option to enable git, basic graphics role, unfinished `router` role, global features Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
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" ];
|
|
|
|
my.laptop.enable = true;
|
|
my.git.enable = true;
|
|
my.roles = {
|
|
design.enable = true;
|
|
devel.enable = true;
|
|
gaming.enable = false;
|
|
graphical.enable = true;
|
|
latex.enable = true;
|
|
media-client.enable = true;
|
|
torrent.enable = true;
|
|
virtualisation.enable = false;
|
|
yggdrasil-client.enable = true;
|
|
|
|
server = { ivabus-dev.enable = false; };
|
|
};
|
|
my.users = {
|
|
ivabus.enable = true;
|
|
user.enable = false;
|
|
};
|
|
my.features.secrets = true;
|
|
|
|
networking.useDHCP = true;
|
|
|
|
# Setup asahi-specific things. NOTE: you must copy firmware from ESP to /etc/nixos/asahi/firmware
|
|
hardware.asahi.peripheralFirmwareDirectory = ../../asahi/firmware;
|
|
hardware.asahi.addEdgeKernelConfig = true;
|
|
hardware.asahi.useExperimentalGPUDriver = true;
|
|
|
|
environment.systemPackages = with pkgs;
|
|
[ (retroarch.override { cores = with libretro; [ np2kai ]; }) ];
|
|
|
|
system.stateVersion = "23.05";
|
|
}
|