style: fmt

This commit is contained in:
Constantin Gierczak--Galle 2024-10-09 17:07:27 +02:00
parent 5b36d052ed
commit f6425103b7
No known key found for this signature in database
3 changed files with 24 additions and 52 deletions

View file

@ -33,11 +33,7 @@
security.acme.defaults.email = "webmaster@nixos.org";
# TODO: open the right ports
networking.firewall.allowedTCPPorts = [
80
443
8007
];
networking.firewall.allowedTCPPorts = [ 80 443 8007 ];
networking.firewall.allowedUDPPorts = [ ];
networking.useNetworkd = true;

View file

@ -18,51 +18,33 @@
};
};
outputs =
{
self,
nixpkgs,
flake-utils,
colmena,
disko,
...
}@inputs:
let
lib = nixpkgs.lib;
in
{
outputs = { self, nixpkgs, flake-utils, colmena, disko, ... }@inputs:
let lib = nixpkgs.lib;
in {
nixosConfigurations = builtins.mapAttrs (
name: value:
nixosConfigurations = builtins.mapAttrs (name: value:
nixpkgs.lib.nixosSystem {
lib = lib;
system = "x86_64-linux";
specialArgs = {
inherit inputs;
};
modules = [
value
disko.nixosModules.disko
];
specialArgs = { inherit inputs; };
modules = [ value disko.nixosModules.disko ];
extraModules = [ inputs.colmena.nixosModules.deploymentOptions ];
}
) { photoprism = import ./configuration.nix; };
}) { photoprism = import ./configuration.nix; };
colmena = {
meta = {
nixpkgs = import inputs.nixpkgs { system = "x86_64-linux"; };
nodeSpecialArgs = builtins.mapAttrs (_: v: v._module.specialArgs) self.nixosConfigurations;
nodeSpecialArgs = builtins.mapAttrs (_: v: v._module.specialArgs)
self.nixosConfigurations;
specialArgs.lib = lib;
};
} // builtins.mapAttrs (_: v: { imports = v._module.args.modules; }) self.nixosConfigurations;
}
// flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShell = pkgs.mkShell { buildInputs = with pkgs; [ colmena.packages.${system}.colmena ]; };
}
);
} // builtins.mapAttrs (_: v: { imports = v._module.args.modules; })
self.nixosConfigurations;
} // flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
devShell = pkgs.mkShell {
buildInputs = with pkgs; [ colmena.packages.${system}.colmena ];
};
});
}

View file

@ -3,14 +3,8 @@
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.initrd.availableKernelModules = [
"ata_piix"
"uhci_hcd"
"virtio_pci"
"virtio_scsi"
"sd_mod"
"sr_mod"
];
boot.initrd.availableKernelModules =
[ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];