Add output to flake, EDI ISO for now

This commit is contained in:
Lillian Violet 2024-02-12 17:16:32 +01:00
parent 68abe668d3
commit a59b6c5986
2 changed files with 23 additions and 1 deletions

View file

@ -8,6 +8,12 @@
# Disko for declaratively setting disk formatting # Disko for declaratively setting disk formatting
inputs.disko.url = "github:nix-community/disko"; inputs.disko.url = "github:nix-community/disko";
# Nixos generators for creating ISOs
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
# Secret management with sops # Secret management with sops
sops-nix.url = "github:Mic92/sops-nix"; sops-nix.url = "github:Mic92/sops-nix";
@ -60,6 +66,7 @@
outputs = { outputs = {
self, self,
nixpkgs, nixpkgs,
nixos-generators,
home-manager, home-manager,
sops-nix, sops-nix,
simple-nixos-mailserver, simple-nixos-mailserver,
@ -109,6 +116,22 @@
}; };
}; };
# ISO for EDI, can be built using nix build .#EDIISO
EDIISO = nixos-generators.nixosGenerate {
system = "x86_64-linux";
modules = [
./nixos/hosts/EDI/configuration.nix
sops-nix.nixosModules.sops
lanzaboote.nixosModules.lanzaboote
disko.nixosModules.disko
home-manager.nixosModules.home-manager
{
home-manager.sharedModules = [plasma-manager.homeManagerModules.plasma-manager];
}
];
format = "iso";
};
nixosConfigurations = { nixosConfigurations = {
GLaDOS = nixpkgs.lib.nixosSystem { GLaDOS = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";

View file

@ -88,7 +88,6 @@
# User tools # User tools
noisetorch noisetorch
nixos-generators
]; ];
programs.direnv = { programs.direnv = {