Compare commits

..
Author SHA1 Message Date
alexion 160850e073 chore: merge main into Bambu Studio branch 2026-10-31 16:33:16 -04:00
alexion c7e3c093b4 feat(nixos): add Bambu Studio Flatpak
Manage the user Flatpak through nix-flatpak and enable printer discovery through the host firewall.
2026-10-31 14:47:45 -04:00
8 changed files with 5 additions and 186 deletions

No files matched your search

-48
View File
@@ -1,48 +0,0 @@
{
config,
lib,
...
}:
let
cfg = config.guests.minecraft;
minecraftUid = config.registry."stable-uid".${config.networking.hostName}.minecraft;
in
{
options.guests.minecraft.statePath = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = null;
example = "/srv/minecraft/main";
description = "Host path bind-mounted as Minecraft's durable server state.";
};
config = lib.mkIf cfg.enable {
assertions = [
{
assertion = cfg.statePath != null;
message = "guests.minecraft.statePath must point at the host directory that stores Minecraft state.";
}
];
registry."stable-uid".${config.networking.hostName}.minecraft = 20008;
guests.minecraft = {
interior = {
modules.services.games.minecraft.enable = true;
users.users.minecraft.uid = minecraftUid;
};
mounts."/data" = {
directory = cfg.statePath;
owner = minecraftUid;
group = "storage";
mode = "0770";
};
limits = {
memory = lib.mkDefault "5G";
cpu = lib.mkDefault "400%";
tasksMax = lib.mkDefault 1024;
};
};
};
}
+1 -7
View File
@@ -38,7 +38,7 @@
};
guests.valheim = {
enable = false;
enable = true;
vlan = 20;
address = "10.23.20.197";
steamPath = "/pikachu/data/steamcmd";
@@ -58,12 +58,6 @@
};
};
guests.minecraft = {
enable = true;
vlan = 20;
statePath = "/pikachu/media/games/servers/minecraft/main";
};
guests.palworld = {
enable = true;
vlan = 20;
-1
View File
@@ -45,7 +45,6 @@
modules.desktop.enable = true;
modules.desktop.apps.bambu-studio.enable = true;
modules.desktop.apps.obsidian.enable = true;
modules.desktop.apps.prismlauncher.enable = true;
modules.desktop.apps.r2modman.enable = true;
modules.desktop.emulation.enable = true;
modules.desktop.apps.signal.enable = true;
@@ -1,24 +0,0 @@
{
config,
lib,
pkgs,
util,
...
}:
# Prism Launcher manages Minecraft instances.
let
user = config.user.name;
in
{
options.modules.desktop.apps.prismlauncher.enable =
lib.mkEnableOption "Prism Launcher, a Minecraft launcher";
config = lib.mkIf config.modules.desktop.apps.prismlauncher.enable {
home-manager.users.${user}.home.packages = [ pkgs.prismlauncher ];
registry.window-icon.${config.networking.hostName}.prismlauncher = {
class = "PrismLauncher";
icon = util.glyph "f11b";
};
};
}
@@ -1,42 +0,0 @@
{
config,
inputs,
lib,
pkgs,
...
}:
{
imports = [ inputs.nix-minecraft.nixosModules.minecraft-servers ];
options.modules.services.games.minecraft.enable = lib.mkEnableOption "Fabric Minecraft server";
config = lib.mkIf config.modules.services.games.minecraft.enable {
nixpkgs.overlays = [ inputs.nix-minecraft.overlays.default ];
services.minecraft-servers = {
enable = true;
eula = true;
openFirewall = true;
dataDir = "/data";
managementSystem = {
tmux.enable = false;
systemd-socket.enable = true;
};
servers.main = {
enable = true;
package = pkgs.fabricServers.fabric-1_21_1;
jvmOpts = [
"-Xms1G"
"-Xmx4G"
];
serverProperties = {
"enable-rcon" = false;
"online-mode" = true;
"white-list" = false;
};
};
};
};
}
+1 -1
View File
@@ -12,7 +12,7 @@ let
in
{
# Next stable UID: 20009
# Next stable UID: 20007
type = lib.types.ints.positive;
Generated
+3 -57
View File
@@ -147,22 +147,6 @@
"type": "github"
}
},
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1747046372,
"narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
@@ -353,28 +337,6 @@
"type": "github"
}
},
"nix-minecraft": {
"inputs": {
"flake-compat": "flake-compat",
"nixpkgs": [
"nixpkgs"
],
"systems": "systems"
},
"locked": {
"lastModified": 1793597892,
"narHash": "sha256-uyZuURB0yrD2yCSfCLAtCdB6EYlf0oGRCaYMnOFO36c=",
"owner": "Infinidoge",
"repo": "nix-minecraft",
"rev": "87ca2dedb204ecf30ae060beaea10b986ab92dd9",
"type": "github"
},
"original": {
"owner": "Infinidoge",
"repo": "nix-minecraft",
"type": "github"
}
},
"nixos-hardware": {
"inputs": {
"nixpkgs": [
@@ -462,7 +424,7 @@
"nixpkgs": [
"nixpkgs"
],
"systems": "systems_2"
"systems": "systems"
},
"locked": {
"lastModified": 1792012326,
@@ -511,7 +473,6 @@
"gitea-axi": "gitea-axi",
"home-manager": "home-manager_3",
"nix-flatpak": "nix-flatpak",
"nix-minecraft": "nix-minecraft",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_2",
"nixpkgs-stable": "nixpkgs-stable",
@@ -555,7 +516,7 @@
"nixpkgs"
],
"nur": "nur",
"systems": "systems_3",
"systems": "systems_2",
"tinted-kitty": "tinted-kitty",
"tinted-schemes": "tinted-schemes",
"tinted-tmux": "tinted-tmux",
@@ -576,21 +537,6 @@
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_2": {
"flake": false,
"locked": {
"lastModified": 1791244623,
@@ -607,7 +553,7 @@
"type": "github"
}
},
"systems_3": {
"systems_2": {
"locked": {
"lastModified": 1774449309,
"narHash": "sha256-brhZ8DmuGtzkCYHJg4HEd602amKm89Y9ytsFZ5uWD1w=",
-6
View File
@@ -19,12 +19,6 @@
# Installs Flatpak applications declaratively.
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.7.0";
# Packages reproducible Minecraft servers and modpacks.
nix-minecraft = {
url = "github:Infinidoge/nix-minecraft";
inputs.nixpkgs.follows = "nixpkgs";
};
# Provides signed AMO extensions pinned by version and hash.
firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";