clean up some things

This commit is contained in:
stupidcomputer 2024-12-26 16:19:59 -06:00
parent 73f349ccf1
commit 76b6b1097c
6 changed files with 37 additions and 42 deletions

View File

@ -6,8 +6,8 @@
./nvidia.nix
./services
../../config/copernicus.nix
../../modules/hosts.nix
../../modules/bootstrap.nix
../../lib/hosts.nix
../../lib/bootstrap.nix
];
environment.systemPackages = with pkgs; [

View File

@ -1,23 +1,21 @@
{ lib, config, pkgs, machines, ... }:
{
imports =
[
./hardware-configuration.nix
../../modules/bootstrap.nix
imports = [
./hardware-configuration.nix
../../lib/bootstrap.nix
./radicale.nix
./ssh.nix
./gitea.nix
./radicale.nix
./vaultwarden.nix
./sslh.nix
./nginx.nix
./franklincce.nix
./wireguard.nix
./nextcloud.nix
./mail.nix
];
./franklincce.nix
./gitea.nix
./mail.nix
./nextcloud.nix
./nginx.nix
./radicale.nix
./ssh.nix
./sslh.nix
./vaultwarden.nix
./wireguard.nix
];
nix = {
optimise = {

View File

@ -1,5 +1,5 @@
{
description = "rndusr's nixos flake";
description = "stupidcomputer's nixos flake";
inputs = {
# regular nixos stuff
@ -14,29 +14,26 @@
nixpkgs,
simple-nixos-mailserver,
...
}@inputs: {
nixosConfigurations = {
netbox = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; } // { machines = import ./machines.nix; };
modules = [
./boxes/netbox
];
};
copernicus = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; } // { machines = import ./machines.nix; };
modules = [
./boxes/copernicus
];
};
aristotle = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; } // { machines = import ./machines.nix; };
modules = [
./lappy/configuration.nix
];
}@inputs: let
mkSystem = modules:
nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs;
machines = import ./lib/machines.nix;
};
inherit modules;
};
generateNixosConfigurations = configurations:
builtins.listToAttrs (
map (name: {
inherit name;
value = mkSystem [ (./boxes/. + "/${name}") ];
}) configurations
);
in {
nixosConfigurations = generateNixosConfigurations [ "netbox" "copernicus" ] // {
aristotle = mkSystem [ ./lappy/configuration.nix ];
};
};
};
}