aboutsummaryrefslogtreecommitdiff
path: root/nix-personal/flake.nix
diff options
context:
space:
mode:
authorAria <me@aria.rip>2023-12-06 19:04:14 +0000
committerAria <me@aria.rip>2023-12-06 19:04:14 +0000
commitae760a1f14dffca65d98f4daa9ce09e138fd2532 (patch)
tree44d3bd7e78e7e515105736d80ec2cff1af6d3cbf /nix-personal/flake.nix
parent143c6f152e96214b4c75c31047a1eda0cd51513a (diff)
colmena for vps
Diffstat (limited to 'nix-personal/flake.nix')
-rw-r--r--nix-personal/flake.nix34
1 files changed, 28 insertions, 6 deletions
diff --git a/nix-personal/flake.nix b/nix-personal/flake.nix
index 946e3bb..e9722a4 100644
--- a/nix-personal/flake.nix
+++ b/nix-personal/flake.nix
@@ -7,13 +7,35 @@
nixpkgs,
disko,
...
- }: {
- nixosConfigurations.primary = nixpkgs.lib.nixosSystem {
+ }: let
+ imports = [
+ disko.nixosModules.disko
+ ./configuration.nix
+ ];
+ in {
+ devShells.x86_64-linux.default = let
+ pkgs = import nixpkgs {system = "x86_64-linux";};
+ in
+ pkgs.mkShell {
+ buildInputs = [pkgs.colmena];
+ };
+
+ nixosConfigurations.puppy = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
- modules = [
- disko.nixosModules.disko
- ./configuration.nix
- ];
+ modules = imports;
+ };
+
+ colmena = {
+ meta = {
+ nixpkgs = import nixpkgs {
+ system = "x86_64-linux";
+ };
+ };
+
+ # Also see the non-Flakes hive.nix example above.
+ puppy = {...}: {
+ imports = imports;
+ };
};
};
}