From bcef178db98c94b17d1e7b7d28db7a6dae695960 Mon Sep 17 00:00:00 2001 From: Devin Finlinson Date: Tue, 21 Nov 2023 02:48:48 -0700 Subject: rather than creating a generic iso, it's necessary to build an img specifically for linode, and likely more convenient besides --- flake.nix | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 2a0d074..f1909d7 100644 --- a/flake.nix +++ b/flake.nix @@ -31,10 +31,10 @@ # }; # # generate iso/qcow2/docker/... image from nixos configuration - # nixos-generators = { - # url = "github:nix-community/nixos-generators"; - # inputs.nixpkgs.follows = "nixpkgs"; - # }; + nixos-generators = { + url = "github:nix-community/nixos-generators"; + inputs.nixpkgs.follows = "nixpkgs"; + }; #secrets management, lock with git commit at 20xx/x/xx #......... @@ -133,6 +133,16 @@ }; outputs = inputs@{ self, ...}: with inputs; { + packages.x86_64-linux = { + linode = nixos-generators.nixosGenerate { + system = "x86_64-linux"; + modules = [ + ./modules/users/defin.nix + ./modules/nixos/system-packages.nix + ]; + format = "linode"; + }; + }; # let # inherit (self) outputs; # lib = nixpkgs.lib //home-manager.lib; @@ -185,7 +195,7 @@ # }; # }; # }; - + nixosConfigurations = { live = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; -- cgit v1.2.3