fruitbasket/flake.nix

94 lines
2.9 KiB
Nix
Raw Normal View History

2022-03-04 16:40:11 +01:00
{
2022-09-06 17:16:31 +02:00
inputs = {
2022-11-18 17:51:09 +01:00
nixpkgs.url = github:nixpkgs/nixos/nixos-22.05;
2022-03-04 16:40:11 +01:00
sops-nix.url = github:Mic92/sops-nix;
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
2022-04-10 13:59:39 +02:00
fsr-infoscreen.url = github:fsr/infoscreen;
2022-03-04 16:40:11 +01:00
};
2022-09-06 17:16:31 +02:00
outputs = { self, nixpkgs, sops-nix, fsr-infoscreen, ... }@inputs:
let
in {
#packages."aarch64-linux".sanddorn = self.nixosConfigurations.sanddorn.config.system.build.sdImage;
2022-11-11 16:39:48 +01:00
packages."x86_64-linux".quitte = self.nixosConfigurations.quitte-vm.config.system.build.vm;
2022-11-11 16:37:17 +01:00
packages."x86_64-linux".default = self.packages."x86_64-linux".quitte;
2022-04-19 16:39:09 +02:00
2022-09-06 17:16:31 +02:00
nixosConfigurations = {
birne = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/birne/configuration.nix
2022-04-10 13:59:39 +02:00
2022-09-06 17:16:31 +02:00
./modules/base.nix
./modules/autoupdate.nix
./modules/desktop.nix
./modules/printing.nix
./modules/wifi.nix
./modules/options.nix
{
fsr.enable_office_bloat = true;
}
2022-04-10 13:59:39 +02:00
2022-09-06 17:16:31 +02:00
];
};
sanddorn = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
{
nixpkgs.overlays = [ fsr-infoscreen.overlay."aarch64-linux" ];
nixpkgs.config.allowBroken = true;
sdImage.compressImage = false;
}
./hosts/sanddorn/configuration.nix
./modules/infoscreen.nix
./modules/base.nix
./modules/autoupdate.nix
./modules/wifi.nix
./modules/desktop.nix
./modules/options.nix
"${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix"
{
fsr.enable_office_bloat = false;
}
];
};
quitte = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
inputs.sops-nix.nixosModules.sops
./hosts/quitte/configuration.nix
./modules/base.nix
./modules/sops.nix
./modules/keycloak.nix
./modules/nginx.nix
./modules/hedgedoc.nix
./modules/wiki.nix
2022-09-28 08:06:27 +02:00
./modules/stream.nix
2022-11-18 17:00:20 +01:00
./modules/nextcloud.nix
2022-09-06 17:16:31 +02:00
{
2022-11-11 16:37:17 +01:00
sops.defaultSopsFile = ./secrets/quitte.yaml;
}
];
};
quitte-vm = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
inputs.sops-nix.nixosModules.sops
2022-11-11 16:39:48 +01:00
./hosts/quitte/configuration.nix
2022-11-11 16:37:17 +01:00
./modules/base.nix
./modules/keycloak.nix
./modules/nginx.nix
./modules/hedgedoc.nix
./modules/wiki.nix
./modules/stream.nix
./modules/vm.nix
"${nixpkgs}/nixos/modules/virtualisation/qemu-vm.nix"
{
_module.args.buildVM = true;
2022-11-11 16:39:48 +01:00
sops.defaultSopsFile = ./secrets/test.yaml;
2022-09-06 17:16:31 +02:00
}
];
};
2022-08-16 14:20:36 +02:00
};
2022-03-04 16:40:11 +01:00
};
}