Create new install system with disko
This commit is contained in:
parent
29c9b505d1
commit
81237e88b0
8 changed files with 95 additions and 89 deletions
14
flake.nix
14
flake.nix
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue