mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-14 13:19:09 +02:00
feat[server]: storage migration finished
This commit is contained in:
parent
c6539ed484
commit
3422a39da5
94 changed files with 1963 additions and 1626 deletions
|
|
@ -176,7 +176,7 @@
|
|||
configurationsPerArch = type: minimal: mkConfigurationsPerArch type minimal;
|
||||
|
||||
in
|
||||
{
|
||||
rec {
|
||||
nixosConfigurations = configurationsPerArch "nixos" false;
|
||||
nixosConfigurationsMinimal = configurationsPerArch "nixos" true;
|
||||
darwinConfigurations = configurationsPerArch "darwin" false;
|
||||
|
|
@ -198,6 +198,17 @@
|
|||
// config.darwinConfigurations
|
||||
// config.guestConfigurations;
|
||||
|
||||
guestResources = lib.mapAttrs
|
||||
(name: _:
|
||||
let
|
||||
f = arg: lib.foldr (base: acc: base + acc) 0 (map (node: nodes."${name}-${node}".config.microvm.${arg}) (builtins.attrNames nodes.${name}.config.guests));
|
||||
in
|
||||
{
|
||||
mem = f "mem";
|
||||
vcpu = f "vcpu";
|
||||
})
|
||||
nodes;
|
||||
|
||||
"@" = lib.mapAttrs (_: v: v.config.system.build.toplevel) config.nodes;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,21 @@
|
|||
# see https://flake.parts/module-arguments.html?highlight=modulewith#persystem-module-parameters
|
||||
_module.args.pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
|
||||
permittedInsecurePackages = [
|
||||
# matrix
|
||||
"olm-3.2.16"
|
||||
# sonarr
|
||||
"aspnetcore-runtime-wrapped-6.0.36"
|
||||
"aspnetcore-runtime-6.0.36"
|
||||
"dotnet-sdk-wrapped-6.0.428"
|
||||
"dotnet-sdk-6.0.428"
|
||||
#
|
||||
"SDL_ttf-2.0.11"
|
||||
];
|
||||
};
|
||||
overlays = [
|
||||
self.overlays.default
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue