added own iso

This commit is contained in:
Rouven Seifert 2023-05-01 19:59:25 +02:00
parent 2a06e7523e
commit b7ecc2984d
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
9 changed files with 73 additions and 7 deletions

View file

@ -1,6 +1,5 @@
{
description = "My nix setup";
inputs = {
description = "My nix setup"; inputs = {
nixpkgs = {
url = "github:nixos/nixpkgs/nixos-unstable";
};
@ -64,7 +63,8 @@
};
outputs =
{ nixpkgs
{ self
, nixpkgs
, home-manager
, nix-index-database
, impermanence
@ -76,6 +76,7 @@
, trucksimulatorbot-images
, ...
}@attrs: {
packages.x86_64-linux.default = self.nixosConfigurations.iso.config.system.build.isoImage;
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
nixosConfigurations = {
thinkpad = nixpkgs.lib.nixosSystem {
@ -135,6 +136,15 @@
sops-nix.nixosModules.sops
];
};
iso = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs.inputs = attrs;
modules = [
./hosts/iso
./shared/caches.nix
./shared/vim.nix
];
};
};
};
}