summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorstuebinm2022-01-09 08:09:39 +0100
committerstuebinm2022-01-09 08:12:16 +0100
commite88fed18f499a3e8ac98c772bbb62f00d1f8d1d7 (patch)
tree2acb627ac0bf070d42f3b214015fdf1b4e920c44 /flake.nix
parenteb97c76228dd9675ccfe4662ca551f07327ca9b4 (diff)
use flakes instead of niv & stuff
Diffstat (limited to '')
-rw-r--r--flake.nix44
1 files changed, 34 insertions, 10 deletions
diff --git a/flake.nix b/flake.nix
index 069fcfd..e86a636 100644
--- a/flake.nix
+++ b/flake.nix
@@ -3,18 +3,42 @@
description = "testing nix flakes for server deployment";
inputs = {
- nixpkgs = "github:NixOS/nixpkgs#release-21.11";
- nixpkgs-unstalbe = "github:NixOS/nixpkgs#nixpkgs-unstable";
- uplcg = "git:https//stuebinm.eu/git/uplcg";
- woitb = "git:https://stuebinm.eu/git/woitb";
- workadventure = "git:https://stuebinm.eu/git/workadventure-nix";
+ nixpkgs.url = "github:NixOS/nixpkgs/release-21.11";
+ nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
+ uplcg = {
+ url = "git+https://stuebinm.eu/git/uplcg?ref=main";
+ flake = false;
+ };
+ # woitb = {
+ # url = "git+https://stuebinm.eu/git/woitb?ref=main";
+ # flake = false;
+ # };
+ # workadventure = {
+ # url = "git+https://stuebinm.eu/git/workadventure-nix";
+ # flake = false;
+ # };
+ tracktrain = {
+ url = "git+https://stuebinm.eu/git/tracktrain?ref=main";
+ flake = false;
+ };
+ blog = {
+ url = "path:/home/stuebinm/Dokumente/blog";
+ flake = false;
+ };
};
- output = { self, nixpkgs, ... }@inputs: {
+ outputs = { self, nixpkgs, ... }@inputs: {
- nixosConfigurations.chaski = nixpkgs.lib.nixosSystem {
- system = "x86_64-linux";
- modules = [ ./hosts/chaski/configuration.nix ];
- };
+ nixosConfigurations =
+ let mkConfig = config: nixpkgs.lib.nixosSystem {
+ system = "x86_64-linux";
+ modules = [ config ./common/default.nix ];
+
+ specialArgs = { inherit inputs; };
+ };
+ in {
+ chaski = mkConfig ./hosts/chaski/configuration.nix;
+ flora = mkConfig ./hosts/flora/configuration.nix;
+ };
};
}