diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -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"; |
