kaas
This commit is contained in:
parent
b8e2429566
commit
b06525436b
10 changed files with 88 additions and 22 deletions
|
@ -20,8 +20,11 @@ in
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
inputs.nix-minecraft.overlay
|
inputs.nix-minecraft.overlay
|
||||||
|
inputs.flux.overlays.default
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
SNEEUWVLOK = config.sneeuwvlok.dir;
|
SNEEUWVLOK = config.sneeuwvlok.dir;
|
||||||
NIXPKGS_ALLOW_UNFREE = "1";
|
NIXPKGS_ALLOW_UNFREE = "1";
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
zen-browser.url = "github:MarceColl/zen-browser-flake";
|
zen-browser.url = "github:MarceColl/zen-browser-flake";
|
||||||
|
|
||||||
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
|
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
|
||||||
|
flux.url = "github:IogaMaster/flux";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, ... }:
|
outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, ... }:
|
||||||
|
@ -45,6 +46,10 @@
|
||||||
import pkgs {
|
import pkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
|
config.permittedInsecurePackages = [
|
||||||
|
"dotnet-sdk-6.0.428"
|
||||||
|
"aspnetcore-runtime-6.0.36"
|
||||||
|
];
|
||||||
overlays = extraOverlays ++ (lib.attrValues self.overlays);
|
overlays = extraOverlays ++ (lib.attrValues self.overlays);
|
||||||
};
|
};
|
||||||
pkgs = mkPkgs nixpkgs [self.overlays.default];
|
pkgs = mkPkgs nixpkgs [self.overlays.default];
|
||||||
|
|
|
@ -2,6 +2,17 @@
|
||||||
{
|
{
|
||||||
imports = [ ./hardware.nix ];
|
imports = [ ./hardware.nix ];
|
||||||
|
|
||||||
|
fileSystems."/home/chris/games" = {
|
||||||
|
device = "/dev/disk/by-label/games";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/home/chris/data" = {
|
||||||
|
device = "/dev/disk/by-label/Data";
|
||||||
|
fsType = "ntfs-3g";
|
||||||
|
options = [ "rw" "uid=chris" ];
|
||||||
|
};
|
||||||
|
|
||||||
modules = {
|
modules = {
|
||||||
themes = {
|
themes = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -24,6 +35,10 @@
|
||||||
plasma.enable = true;
|
plasma.enable = true;
|
||||||
type = "wayland";
|
type = "wayland";
|
||||||
|
|
||||||
|
# games = {
|
||||||
|
# minecraft.enable = false;
|
||||||
|
# };
|
||||||
|
|
||||||
applications = {
|
applications = {
|
||||||
communication.enable = true;
|
communication.enable = true;
|
||||||
email.enable = true;
|
email.enable = true;
|
||||||
|
|
|
@ -2,6 +2,11 @@
|
||||||
{
|
{
|
||||||
imports = [ ./hardware.nix ];
|
imports = [ ./hardware.nix ];
|
||||||
|
|
||||||
|
fileSystems."/var/media_from_conf" = {
|
||||||
|
device = "/dev/disk/by-label/data";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
modules = {
|
modules = {
|
||||||
themes = {
|
themes = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
21
modules/desktop/games/minecraft.nix
Normal file
21
modules/desktop/games/minecraft.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ options, config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib.modules) mkIf mkForce mkMerge;
|
||||||
|
inherit (lib.attrsets) attrValues;
|
||||||
|
|
||||||
|
cfg = config.modules.desktop.games.minecraft;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.desktop.games.minecraft = let
|
||||||
|
inherit (lib.options) mkEnableOption;
|
||||||
|
in {
|
||||||
|
enable = mkEnableOption "minecraft (Modrinth)";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable
|
||||||
|
{
|
||||||
|
user.packages = attrValues {
|
||||||
|
inherit (pkgs) modrinth-app minecraft;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -14,6 +14,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
eula = true;
|
eula = true;
|
||||||
|
|
||||||
|
user = "chris";
|
||||||
dataDir = "/var/lib/minecraft";
|
dataDir = "/var/lib/minecraft";
|
||||||
|
|
||||||
servers = {
|
servers = {
|
||||||
|
@ -21,7 +22,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
package = pkgs.fabricServers.fabric-1_20_4.override { loaderVersion = "0.14.20"; };
|
package = pkgs.fabricServers.fabric-1_20_4.override { loaderVersion = "0.15.11"; };
|
||||||
|
|
||||||
serverProperties = {
|
serverProperties = {
|
||||||
gamemode = "survival";
|
gamemode = "survival";
|
||||||
|
@ -43,7 +44,8 @@ in
|
||||||
inherit (pkgs) linkFarmFromDrvs fetchurl;
|
inherit (pkgs) linkFarmFromDrvs fetchurl;
|
||||||
in{
|
in{
|
||||||
mods = linkFarmFromDrvs "mods" (attrValues {
|
mods = linkFarmFromDrvs "mods" (attrValues {
|
||||||
Terraforged = fetchurl { url = "https://cdn.modrinth.com/data/FIlZB9L0/versions/EVe9wYaj/Terra-fabric-6.4.3-BETA%2Bab60f14ff.jar"; sha512 = "90dc1215b352fcbce0219dab616dc2be28eaff4622233cbfadd6060aa52432f2ba86f05f1118314b46102b3ab3c6f8070e6780cf6512a8961ac47c235dd764f9"; };
|
FabricApi = fetchurl { url = "https://cdn.modrinth.com/data/P7dR8mSH/versions/QVBohPm2/fabric-api-0.97.2%2B1.20.4.jar"; sha512 = "8f02bf562781a2f08294736eff784b7e7463be1595b1e3b4f53d4dcb57fc0643890078265141c3bce882dfec6e77553d2db252992fdfbd55cd7d32777adb9d78"; };
|
||||||
|
Terralith = fetchurl { url = "https://cdn.modrinth.com/data/8oi3bsk5/versions/WeYhEb5d/Terralith_1.20.x_v2.5.4.jar"; sha512 = "885e171d8b34aae7e142f082d0364285ec5a8e8342f11c60d341f7a94083d5a42c4e30612fe4f9f64d57b484396a3dff3a224e2a2497d4ced8d22f2ad6cd561d"; };
|
||||||
DistantHorizons = fetchurl { url = "https://cdn.modrinth.com/data/uCdwusMi/versions/jptcCdp2/DistantHorizons-2.2.1-a-1.20.4-forge-fabric.jar"; sha512 = "47368d91099d0b5f364339a69f4e425f8fb1e3a7c3250a8b649da76135e68a22f1a76b191c87e15a5cdc0a1d36bc57f2fa825490d96711d09d96807be97d575d"; };
|
DistantHorizons = fetchurl { url = "https://cdn.modrinth.com/data/uCdwusMi/versions/jptcCdp2/DistantHorizons-2.2.1-a-1.20.4-forge-fabric.jar"; sha512 = "47368d91099d0b5f364339a69f4e425f8fb1e3a7c3250a8b649da76135e68a22f1a76b191c87e15a5cdc0a1d36bc57f2fa825490d96711d09d96807be97d575d"; };
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
25
modules/services/games/palworld.nix
Normal file
25
modules/services/games/palworld.nix
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{ config, options, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib.modules) mkIf;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.services.games.palworld = let
|
||||||
|
inherit (lib.options) mkEnableOption;
|
||||||
|
in {
|
||||||
|
enable = mkEnableOption "Palworld";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf config.modules.services.games.palworld.enable {
|
||||||
|
# kaas = (pkgs.mkSteamServer rec {
|
||||||
|
# name = "Palworld";
|
||||||
|
# src = pkgs.fetchSteam {
|
||||||
|
# inherit name;
|
||||||
|
# appId = "2394010";
|
||||||
|
# hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
|
||||||
|
# };
|
||||||
|
#
|
||||||
|
# sartCmd = "PalServer.sh";
|
||||||
|
# hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
|
||||||
|
# });
|
||||||
|
};
|
||||||
|
}
|
|
@ -19,6 +19,7 @@ in
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
podman-tui
|
podman-tui
|
||||||
jellyfin
|
jellyfin
|
||||||
|
jellyfin-ffmpeg
|
||||||
jellyseerr
|
jellyseerr
|
||||||
mediainfo
|
mediainfo
|
||||||
id3v2
|
id3v2
|
||||||
|
|
|
@ -3,15 +3,4 @@
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
|
||||||
time.timeZone = "Europe/Amsterdam";
|
time.timeZone = "Europe/Amsterdam";
|
||||||
|
|
||||||
fileSystems."/home/chris/new_games" = {
|
|
||||||
device = "/dev/disk/by-label/games";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/home/chris/data" = {
|
|
||||||
device = "/dev/disk/by-label/Data";
|
|
||||||
fsType = "ntfs-3g";
|
|
||||||
options = [ "rw" "uid=chris" ];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,23 +18,23 @@
|
||||||
finegrained = false;
|
finegrained = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.vulkan_beta;
|
# package = config.boot.kernelPackages.nvidiaPackages.vulkan_beta;
|
||||||
/*
|
|
||||||
package = let
|
package = let
|
||||||
rcu_patch = pkgs.fetchpatch {
|
rcu_patch = pkgs.fetchpatch {
|
||||||
url = "https://github.com/gentoo/gentoo/raw/c64caf53/x11-drivers/nvidia-drivers/files/nvidia-drivers-470.223.02-gpl-pfn_valid.patch";
|
url = "https://github.com/gentoo/gentoo/raw/c64caf53/x11-drivers/nvidia-drivers/files/nvidia-drivers-470.223.02-gpl-pfn_valid.patch";
|
||||||
hash = "sha256-eZiQQp2S/asE7MfGvfe6dA/kdCvek9SYa/FFGp24dVg=";
|
hash = "sha256-eZiQQp2S/asE7MfGvfe6dA/kdCvek9SYa/FFGp24dVg=";
|
||||||
};
|
};
|
||||||
in config.boot.kernelPackages.nvidiaPackages.mkDriver {
|
in config.boot.kernelPackages.nvidiaPackages.mkDriver {
|
||||||
version = "535.154.05";
|
version = "550.40.07";
|
||||||
sha256_64bit = "sha256-fpUGXKprgt6SYRDxSCemGXLrEsIA6GOinp+0eGbqqJg=";
|
sha256_64bit = "sha256-KYk2xye37v7ZW7h+uNJM/u8fNf7KyGTZjiaU03dJpK0=";
|
||||||
sha256_aarch64 = "sha256-G0/GiObf/BZMkzzET8HQjdIcvCSqB1uhsinro2HLK9k=";
|
sha256_aarch64 = "sha256-AV7KgRXYaQGBFl7zuRcfnTGr8rS5n13nGUIe3mJTXb4=";
|
||||||
openSha256 = "sha256-wvRdHguGLxS0mR06P5Qi++pDJBCF8pJ8hr4T8O6TJIo=";
|
openSha256 = "sha256-mRUTEWVsbjq+psVe+kAT6MjyZuLkG2yRDxCMvDJRL1I=";
|
||||||
settingsSha256 = "sha256-9wqoDEWY4I7weWW05F4igj1Gj9wjHsREFMztfEmqm10=";
|
settingsSha256 = "sha256-c30AQa4g4a1EHmaEu1yc05oqY01y+IusbBuq+P6rMCs=";
|
||||||
persistencedSha256 = "sha256-d0Q3Lk80JqkS1B54Mahu2yY/WocOqFFbZVBh+ToGhaE=";
|
persistencedSha256 = "sha256-11tLSY8uUIl4X/roNnxf5yS2PQvHvoNjnd2CB67e870=";
|
||||||
|
|
||||||
patches = [ rcu_patch ];
|
patches = [ rcu_patch ];
|
||||||
};*/
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue