mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-26 00:18:28 +02:00
added own iso
This commit is contained in:
parent
2a06e7523e
commit
b7ecc2984d
9 changed files with 73 additions and 7 deletions
16
flake.nix
16
flake.nix
|
@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue