miniserver init

This commit is contained in:
2024-06-09 12:03:43 -06:00
parent 8ae8963cfe
commit 899928c1ef
26 changed files with 141 additions and 1856 deletions

View File

@@ -1,6 +1,4 @@
{ config, lib, pkgs, ... }:
let polymc = pkgs.callPackage ../../pkgs/polymc/default.nix { };
in {
{ config, lib, pkgs, ... }: {
options.my.apps.gaming.enable = lib.mkEnableOption "enable";
config = lib.mkIf config.my.apps.gaming.enable {
programs = {
@@ -12,27 +10,29 @@ in {
dedicatedServer.openFirewall = true;
};
};
users.users.jawz.packages = (with pkgs; [
mangohud # fps & stats overlay
lutris # games launcher & emulator hub
cartridges # games launcher
gamemode # optimizes linux to have better gaming performance
heroic # install epic games
protonup-qt # update proton-ge
#minecraft # minecraft official launcher
ns-usbloader # load games into my switch
# grapejuice # roblox manager
users.users.jawz.packages =
let polymc = pkgs.callPackage ../../pkgs/polymc/default.nix { };
in (with pkgs; [
mangohud # fps & stats overlay
lutris # games launcher & emulator hub
cartridges # games launcher
gamemode # optimizes linux to have better gaming performance
heroic # install epic games
protonup-qt # update proton-ge
#minecraft # minecraft official launcher
ns-usbloader # load games into my switch
# grapejuice # roblox manager
# emulators
rpcs3 # ps3 emulator
pcsx2 # ps2 emulator
cemu # wii u emulator
dolphin-emu # wii emulator
#citra-nightly # 3Ds emulator
snes9x-gtk # snes emulator
ryujinx # switch emulator
]) ++ [
polymc # minecraft launcher with mod support
];
# emulators
rpcs3 # ps3 emulator
pcsx2 # ps2 emulator
cemu # wii u emulator
dolphin-emu # wii emulator
#citra-nightly # 3Ds emulator
snes9x-gtk # snes emulator
ryujinx # switch emulator
]) ++ [
polymc # minecraft launcher with mod support
];
};
}

View File

@@ -1,6 +1,4 @@
{ config, lib, pkgs, ... }:
let vdhcoapp = pkgs.callPackage ../../pkgs/vdhcoapp/default.nix { };
in {
{ config, lib, pkgs, ... }: {
options.my.apps.internet.enable = lib.mkEnableOption "enable";
config = lib.mkIf config.my.apps.internet.enable {
programs = {
@@ -11,19 +9,21 @@ in {
};
};
services.psd.enable = true;
users.users.jawz.packages = (with pkgs; [
nextcloud-client # self-hosted google-drive alternative
fragments # beautiful torrent client
protonmail-bridge # bridge for protonmail
tor-browser-bundle-bin # dark web, so dark!
chromium # web browser with spyware included
telegram-desktop # furry chat
nicotine-plus # remember Ares?
vesktop # screen share with audio discord
discord # :3
# hugo # website engine
]) ++ [
vdhcoapp # video download helper assistant
];
users.users.jawz.packages =
let vdhcoapp = pkgs.callPackage ../../pkgs/vdhcoapp/default.nix { };
in (with pkgs; [
nextcloud-client # self-hosted google-drive alternative
fragments # beautiful torrent client
protonmail-bridge # bridge for protonmail
tor-browser-bundle-bin # dark web, so dark!
chromium # web browser with spyware included
telegram-desktop # furry chat
nicotine-plus # remember Ares?
vesktop # screen share with audio discord
discord # :3
# hugo # website engine
]) ++ [
vdhcoapp # video download helper assistant
];
};
}

View File

@@ -1,4 +1,4 @@
{ lib, ... }: {
{ ... }: {
imports = [
./scripts/download.nix
./scripts/ffmpeg4discord.nix
@@ -13,17 +13,4 @@
./scripts/tasks.nix
./scripts/update-dns.nix
];
my.scripts = {
download.enable = lib.mkDefault false;
ffmpeg4discord.enable = lib.mkDefault false;
ffmpreg.enable = lib.mkDefault false;
find-dup-episodes.enable = lib.mkDefault false;
manage-library.enable = lib.mkDefault false;
pika-list.enable = lib.mkDefault false;
run.enable = lib.mkDefault false;
split-dir.enable = lib.mkDefault false;
sub-sync.enable = lib.mkDefault false;
tasks.enable = lib.mkDefault false;
update-dns.enable = lib.mkDefault false;
};
}

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }: {
{ pkgs, lib, ... }: {
imports = [ ./base.nix ];
config = {
home-manager.users.jawz = {
@@ -25,7 +25,7 @@
};
users.users.jawz.packages = [ pkgs.gallery-dl ];
my.scripts.download = {
enable = true;
enable = lib.mkDefault false;
install = true;
service = false;
name = "download";

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }: {
{ pkgs, lib, ... }: {
imports = [ ./base.nix ];
config.my.scripts.ffmpeg4discord = {
enable = true;
enable = lib.mkDefault false;
install = true;
service = false;
name = "ffmpeg4discord";

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }: {
{ pkgs, lib, ... }: {
imports = [ ./base.nix ];
config.my.scripts.ffmpreg = {
enable = true;
enable = lib.mkDefault false;
install = true;
service = false;
name = "ffmpreg";

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }: {
{ pkgs, lib, ... }: {
imports = [ ./base.nix ];
config.my.scripts.find-dup-episodes = {
enable = true;
enable = lib.mkDefault false;
install = true;
service = false;
name = "find-dup-episodes";

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }: {
{ pkgs, lib, ... }: {
imports = [ ./base.nix ];
config.my.scripts.manage-library = {
enable = true;
enable = lib.mkDefault false;
install = true;
service = true;
name = "manage-library";

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }: {
{ pkgs, lib, ... }: {
imports = [ ./base.nix ];
config.my.scripts.pika-list = {
enable = true;
enable = lib.mkDefault false;
install = true;
service = false;
name = "pika-list";

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }: {
{ pkgs, lib, ... }: {
imports = [ ./base.nix ];
config.my.scripts.run = {
enable = true;
enable = lib.mkDefault false;
install = true;
service = false;
name = "run";

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }: {
{ pkgs, lib, ... }: {
imports = [ ./base.nix ];
config.my.scripts.split-dir = {
enable = true;
enable = lib.mkDefault false;
install = true;
service = false;
name = "split-dir";

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }: {
{ pkgs, lib, ... }: {
imports = [ ./base.nix ];
config.my.scripts.tasks = {
enable = true;
enable = lib.mkDefault false;
install = true;
service = true;
name = "tasks";

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }: {
{ pkgs, lib, ... }: {
imports = [ ./base.nix ];
config.my.scripts.update-dns = {
enable = true;
enable = lib.mkDefault false;
install = true;
service = true;
name = "update-dns";

View File

@@ -70,6 +70,7 @@
tldr # man for retards
trash-cli # oop! did not meant to delete that
jq # linting
smartmontools # check hard drie health
];
environment.variables = {
HISTFILE = "\${XDG_STATE_HOME}/bash/history";