-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.nix
95 lines (86 loc) · 3.61 KB
/
configuration.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{ config, lib, pkgs, ... }:
let
srcPkgs = import /src { config.contentAddressedByDefault = true; };
in
{
imports = [ ./hardware-configuration.nix ./apple-silicon-support ];
systemd.services.durden = {
enable = true;
description = "Arcan Durden";
after = [ "sysinit.target" ];
wants = [ "basic.target" ];
wantedBy = [ "sysinit.target" ];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.arcan}/bin/arcan /root/durden/durden";
};
environment = {
ARCAN_LOGPATH="/etc/arcan/logs";
ARCAN_RENDER_NODE="/dev/dri/renderD128";
ARCAN_RESOURCEPATH="${pkgs.durden}/share/arcan/data/resources";
ARCAN_STATEPATH="/etc/arcan/state";
ARCAN_APPLSTOREPATH="/etc/arcan/appls";
XDG_RUNTIME_DIR="/etc/arcan";
NIXOS_OZONE_WL="1";
#DISPLAY=":0";
#WAYLAND_DISPLAY="wayland-0";
};
};
services.create_ap = {
enable = true;
settings = {
INTERNET_IFACE = "end0";
WIFI_IFACE = "wlan0";
SSID = "arcan-net";
PASSPHRASE = "12345678";
};
};
nix.nixPath = [ "nixpkgs=/src" "nixos-config=/src/configuration.nix" ];
nix.settings.experimental-features = [ "nix-command" "flakes" "ca-derivations" ];
nix.settings.substituters = [];
nix.settings.trusted-public-keys = [];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = false;
boot.loader.timeout = 0;
hardware.asahi.peripheralFirmwareDirectory = ./firmware;
hardware.opengl.enable = true;
hardware.opengl.package = srcPkgs.mesa.drivers;
hardware.asahi.withRust = true;
services.xserver.config = ''
Section "OutputClass"
Identifier "appledrm"
MatchDriver "apple"
Driver "modesetting"
Option "PrimaryGPU" "true"
EndSection
'';
security.pam.loginLimits = [
{domain = "*";type = "-";item = "memlock";value = "infinity";}
{domain = "*";type = "-";item = "nofile";value = "8192";}
];
networking.wireless.iwd.enable = true;
networking.wireless.iwd.settings.General.EnableNetworkConfiguration = true;
networking.networkmanager.enable = false;
services.getty.autologinUser = "root";
users.defaultUserShell = srcPkgs.zsh;
time.timeZone = "America/New_York";
sound.enable = true;
security.rtkit.enable = true;
system.stateVersion = "24.05";
environment.systemPackages = with srcPkgs; [
git
ripgrep
helix
tmux
zenith
zsh
arcan
firefox-devedition
xarcan
vkmark
mangohud
zed-editor
godot_4
blender
];
}