diff options
| author | Devin Finlinson <devin.finlinson@pm.me> | 2023-11-21 02:48:48 -0700 |
|---|---|---|
| committer | Devin Finlinson <devin.finlinson@pm.me> | 2023-11-21 02:48:48 -0700 |
| commit | bcef178db98c94b17d1e7b7d28db7a6dae695960 (patch) | |
| tree | 32078ad4fb9364103b7174160c35ba4d884defa6 /flake.nix | |
| parent | 3877f93059a959a29c79fe8fc81b6735ccaaff97 (diff) | |
rather than creating a generic iso, it's necessary to build
an img specifically for linode, and likely more convenient besides
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"; |
