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