mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add valheim
This commit is contained in:
parent
fbc6776dab
commit
588fed0ea6
4 changed files with 66 additions and 5 deletions
45
flake.lock
generated
45
flake.lock
generated
|
|
@ -467,7 +467,8 @@
|
||||||
"nix-minecraft": "nix-minecraft",
|
"nix-minecraft": "nix-minecraft",
|
||||||
"nixpkgs": "nixpkgs_3",
|
"nixpkgs": "nixpkgs_3",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
"stylix": "stylix"
|
"stylix": "stylix",
|
||||||
|
"valheim-server": "valheim-server"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sops-nix": {
|
"sops-nix": {
|
||||||
|
|
@ -490,6 +491,27 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"steam-fetcher": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"valheim-server",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1714795926,
|
||||||
|
"narHash": "sha256-PkgC9jqoN6cJ8XYzTA2PlrWs7aPJkM3BGiTxNqax0cA=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "steam-fetcher",
|
||||||
|
"rev": "12f66eafb7862d91b3e30c14035f96a21941bd9c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "steam-fetcher",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"stylix": {
|
"stylix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"base16": "base16",
|
"base16": "base16",
|
||||||
|
|
@ -658,6 +680,27 @@
|
||||||
"repo": "treefmt-nix",
|
"repo": "treefmt-nix",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"valheim-server": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"steam-fetcher": "steam-fetcher"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1744964760,
|
||||||
|
"narHash": "sha256-VSy6SZqDDMqrFlf6gw3xA/u3WEu3thjGOh3akIJEWW4=",
|
||||||
|
"owner": "kmjayadeep",
|
||||||
|
"repo": "valheim-server-flake",
|
||||||
|
"rev": "5b95198dca8af8287108b610432d88aef5fa29fc",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "kmjayadeep",
|
||||||
|
"repo": "valheim-server-flake",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,9 @@
|
||||||
stylix.url = "github:danth/stylix";
|
stylix.url = "github:danth/stylix";
|
||||||
nix-minecraft.url = "git+https://codeberg.org/nix-astral/nix-minecraft.git";
|
nix-minecraft.url = "git+https://codeberg.org/nix-astral/nix-minecraft.git";
|
||||||
nix-alien.url = "github:thiagokokada/nix-alien";
|
nix-alien.url = "github:thiagokokada/nix-alien";
|
||||||
|
|
||||||
|
valheim-server.url = "github:kmjayadeep/valheim-server-flake";
|
||||||
|
valheim-server.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ nixpkgs, home-manager, stylix, ... }:
|
outputs = inputs@{ nixpkgs, home-manager, stylix, ... }:
|
||||||
|
|
|
||||||
|
|
@ -36,18 +36,16 @@ in {
|
||||||
|
|
||||||
mods.server.grav.enable = true;
|
mods.server.grav.enable = true;
|
||||||
mods.server.homebox.enable = true;
|
mods.server.homebox.enable = true;
|
||||||
mods.server.share.enable = true;
|
mods.server.share.enable = false;
|
||||||
mods.server.vault.enable = true;
|
mods.server.vault.enable = true;
|
||||||
mods.server.git.enable = true;
|
mods.server.git.enable = true;
|
||||||
mods.server.cal.enable = true;
|
mods.server.cal.enable = true;
|
||||||
mods.server.chat.enable = true;
|
mods.server.chat.enable = true;
|
||||||
mods.server.ntfy.enable = true;
|
mods.server.ntfy.enable = true;
|
||||||
|
|
||||||
mods.server.dash.enable = true;
|
mods.server.dash.enable = false;
|
||||||
mods.server.nginx.ports.dash = 3009;
|
mods.server.nginx.ports.dash = 3009;
|
||||||
|
|
||||||
mods.server.vrising.enable = true;
|
|
||||||
|
|
||||||
mods.tailscale.enable = true;
|
mods.tailscale.enable = true;
|
||||||
mods.wireguard.id = 3;
|
mods.wireguard.id = 3;
|
||||||
|
|
||||||
|
|
@ -61,6 +59,22 @@ in {
|
||||||
mods.unfree.nvidia.enable = false;
|
mods.unfree.nvidia.enable = false;
|
||||||
mods.unfree.minecraft.enable = false;
|
mods.unfree.minecraft.enable = false;
|
||||||
|
|
||||||
|
mods.server.vrising.enable = false;
|
||||||
|
|
||||||
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||||
|
builtins.elem (lib.getName pkg) [
|
||||||
|
"valheim-server"
|
||||||
|
"steamworks-sdk-redist"
|
||||||
|
];
|
||||||
|
|
||||||
|
services.valheim = {
|
||||||
|
enable = true;
|
||||||
|
serverName = "Smorld";
|
||||||
|
worldName = "Smorld";
|
||||||
|
openFirewall = true;
|
||||||
|
password = "notbeempty";
|
||||||
|
};
|
||||||
|
|
||||||
# Hardware preferences
|
# Hardware preferences
|
||||||
|
|
||||||
## Mouse
|
## Mouse
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
./modules/nixos
|
./modules/nixos
|
||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
inputs.stylix.nixosModules.stylix
|
inputs.stylix.nixosModules.stylix
|
||||||
|
inputs.valheim-server.nixosModules.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue