This repository has no description
2.1 kB
77 lines
1{ config, lib, pkgs, ... }:
2
3{
4 imports = [
5 ../../2configs/retiolum.nix
6 ../../2configs/exim-retiolum.nix
7 ../../2configs/pipewire.nix
8 ../../2configs/browsers.nix
9 ../../2configs/programs.nix
10 ../../2configs/network-manager.nix
11 ../../2configs/syncthing.nix
12 ../../2configs/games.nix
13 ../../2configs/steam.nix
14 ../../2configs/wine.nix
15 ../../2configs/yellow-mounts/samba.nix
16 ../../2configs/review.nix
17 { # moonlight test env
18 imports = [
19 ../../2configs/sunshine.nix
20 ../../2configs/mpv.nix
21 ];
22 users.users.moon = {
23 isNormalUser = true;
24 uid = 1338;
25 extraGroups = [ "video" "audio" "input" "pipewire" ];
26 home = "/home/moon";
27 password = "moon";
28 packages = with pkgs; [
29 (retroarch.override { cores = [
30 libretro.bsnes-hd
31 libretro.mupen64plus
32 ]; })
33 ];
34 };
35 services.xserver.enable = true;
36 services.xserver.displayManager.autoLogin = {
37 enable = true;
38 user = "moon";
39 };
40 services.xserver.desktopManager.xfce.enable = true;
41 services.xserver.displayManager.defaultSession = lib.mkForce "xfce";
42 services.xserver.displayManager.sessionCommands = ''
43 tmux new-session -A -s sun -- sun
44 '';
45 environment.systemPackages = [
46 pkgs.firefox-devedition
47 pkgs.vulkan-tools
48 ];
49 systemd.user.services.sun = {
50 wantedBy = [ "default.target" ];
51 environment = {
52 DISPLAY = ":0";
53 XAUTHORITY = "/home/moon/.Xauthority";
54 };
55 serviceConfig = {
56 Type = "oneshot";
57 ExecStart = "${pkgs.tmux}/bin/tmux new-session -A -s sun -- /run/current-system/sw/bin/sun";
58 Restart = "always";
59 RestartSec = 5;
60 };
61 };
62 }
63 ];
64
65 krebs.build.host = config.krebs.hosts.coaxmetal;
66
67 programs.adb.enable = true;
68
69 nix.settings.trusted-users = [ "root" "lass" ];
70
71 services.tor = {
72 enable = true;
73 client.enable = true;
74 };
75
76 documentation.nixos.enable = true;
77}