Skip to content

Commit e9bfae1

Browse files
committed
nix: backport some patches from upstream
1 parent 560dfa1 commit e9bfae1

File tree

14 files changed

+173
-283
lines changed

14 files changed

+173
-283
lines changed

flake.lock

Lines changed: 27 additions & 88 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,20 @@
4040
inputs = {
4141
# Flake inputs
4242
agenix.url = "github:ryantm/agenix";
43-
crowdsec.url = "git+https://codeberg.org/kampka/nix-flake-crowdsec.git";
4443
darwin.url = "github:lnl7/nix-darwin";
4544
home.url = "github:nix-community/home-manager/master";
46-
nix.url = "github:nixos/nix/master";
45+
nix.url = "github:NixOS/nix/master";
4746
nix-colors.url = "github:Misterio77/nix-colors";
4847
nix-index-database.url = "github:Mic92/nix-index-database";
4948
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
5049
nixos-wsl.url = "github:nix-community/nixos-wsl";
5150
parts.url = "github:hercules-ci/flake-parts";
5251

5352
# Non-flake inputs
54-
infuse = { url = "git+https://codeberg.org/amjoseph/infuse.nix.git"; flake = false; };
53+
infuse = {
54+
url = "git+https://codeberg.org/amjoseph/infuse.nix.git";
55+
flake = false;
56+
};
5557

5658
# Nixpkgs branches
5759
master.url = "github:nixos/nixpkgs/master";
@@ -62,10 +64,10 @@
6264
# Minimize duplicate instances of inputs
6365
agenix.inputs.nixpkgs.follows = "nixpkgs";
6466
agenix.inputs.darwin.follows = "darwin";
65-
crowdsec.inputs.nixpkgs.follows = "nixpkgs";
6667
darwin.inputs.nixpkgs.follows = "nixpkgs";
6768
home.inputs.nixpkgs.follows = "nixpkgs";
6869
nix.inputs.nixpkgs.follows = "nixpkgs";
70+
nix.inputs.flake-parts.follows = "parts";
6971
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
7072
nix-minecraft.inputs.nixpkgs.follows = "nixpkgs";
7173
nixos-wsl.inputs.nixpkgs.follows = "nixpkgs";

hosts/mistral/minecraft.nix

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,25 @@
4949
};
5050
in
5151
{
52-
bettermc = let
53-
modpack = pkgs.fetchPackwizModpack {
54-
url = "https://raw.githubusercontent.com/moni-dz/bmc3-packwiz/refs/heads/master/pack.toml";
55-
packHash = "";
56-
};
57-
in {
58-
enable = true;
59-
autoStart = true;
60-
package = pkgs.fabricServers.fabric-1_21_1;
61-
openFirewall = true;
52+
bettermc =
53+
let
54+
modpack = pkgs.fetchPackwizModpack {
55+
url = "https://raw.githubusercontent.com/moni-dz/bmc3-packwiz/refs/heads/master/pack.toml";
56+
packHash = "";
57+
};
58+
in
59+
{
60+
enable = true;
61+
autoStart = true;
62+
package = pkgs.fabricServers.fabric-1_21_1;
63+
openFirewall = true;
6264

63-
inherit jvmOpts serverProperties;
65+
inherit jvmOpts serverProperties;
6466

65-
symlinks = {
66-
"mods" = "${modpack}/mods";
67+
symlinks = {
68+
"mods" = "${modpack}/mods";
69+
};
6770
};
68-
};
6971
cobble = {
7072
enable = false;
7173
autoStart = false;

modules/parts/default.nix

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,13 @@
2727

2828
# nix the package manager configuration
2929
nix = import ./nix-settings.nix {
30-
inherit lib inputs inputs' infuse;
31-
inherit (pkgs) stdenv;
30+
inherit
31+
lib
32+
inputs
33+
inputs'
34+
infuse
35+
pkgs
36+
;
3237
};
3338

3439
# nixpkgs configuration (not the flake input)
@@ -72,7 +77,9 @@
7277
subversion
7378
;
7479

75-
home-manager = infuse inputs'.home.packages.home-manager { __input.path.__assign = "${inputs.home}"; };
80+
home-manager = infuse inputs'.home.packages.home-manager {
81+
__input.path.__assign = "${inputs.home}";
82+
};
7683
man-pages = if pkgs.stdenv.isLinux then pkgs.man-pages else self'.packages.man-pages-xnu;
7784
gnu-coreutils = if pkgs.stdenv.isLinux then pkgs.coreutils else pkgs.coreutils-prefixed;
7885
};

0 commit comments

Comments
 (0)