summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorDevin Finlinson <devin.finlinson@pm.me>2023-11-21 02:48:48 -0700
committerDevin Finlinson <devin.finlinson@pm.me>2023-11-21 02:48:48 -0700
commitbcef178db98c94b17d1e7b7d28db7a6dae695960 (patch)
tree32078ad4fb9364103b7174160c35ba4d884defa6 /flake.nix
parent3877f93059a959a29c79fe8fc81b6735ccaaff97 (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.nix20
1 files changed, 15 insertions, 5 deletions
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";