From a08061e975344f21805d115e01929566a36c8d05 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Thu, 7 Mar 2024 00:26:39 -0800 Subject: add disko/nixos-anywhere configuration --- flake.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 7812474..1502f99 100644 --- a/flake.nix +++ b/flake.nix @@ -5,15 +5,16 @@ nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11"; home-manager = { url = "github:nix-community/home-manager/release-23.11"; - # Here, `inputs.nixpkgs` of home-manager is kept consistent with - # the `inputs.nixpkgs` of the current flake, - # to avoid problems caused by different versions of nixpkgs. inputs.nixpkgs.follows = "nixpkgs"; }; nur.url = "github:nix-community/NUR"; + disko = { + url = "github:nix-community/disko"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; - outputs = inputs@{ nixpkgs, home-manager, nur, ... }: { + outputs = inputs@{ nixpkgs, home-manager, nur, disko, ... }: { nixosConfigurations = { continuity = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; @@ -29,7 +30,7 @@ imports = [ ]; }) ./configuration.nix - + disko.nixosModules.disko home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; -- cgit