Create new install system with disko

This commit is contained in:
Vili Sinervä 2025-06-09 00:16:35 +03:00
parent 29c9b505d1
commit 81237e88b0
Signed by: Vili Sinervä
SSH key fingerprint: SHA256:FladqYjaE4scJY3Hi+gnShZ6ygnTJgixy0I6BAoHyos
8 changed files with 95 additions and 89 deletions

View file

@ -7,10 +7,19 @@
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{ nixpkgs, nixvim, ... }:
{
nixpkgs,
nixvim,
disko,
...
}:
{
nixosConfigurations =
(
@ -27,10 +36,12 @@
specialArgs = {
nixpkgs-flake = nixpkgs;
inherit nixvim;
inherit disko;
};
system = "x86_64-linux";
modules = [
{ networking.hostName = host; }
disko.nixosModules.disko
./hosts/${host}/configuration.nix
./hosts/${host}/state.nix
];
@ -51,6 +62,7 @@
specialArgs = {
nixpkgs-flake = nixpkgs;
inherit nixvim;
inherit disko;
};
system = "aarch64-linux";
modules = [