summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..69898bc
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,23 @@
+{
+ inputs = {
+ my-nixpkgs.url = "github:qaristote/my-nixpkgs";
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11-small";
+ };
+
+ outputs = { self, nixpkgs, my-nixpkgs, nixos-hardware, ... }: {
+ nixosConfigurations = let
+ system = "x86_64-linux";
+ commonModules = [
+ my-nixpkgs.nixosModules.personal
+ ({ ... }: { nixpkgs.overlays = [ my-nixpkgs.overlays.default ]; })
+ ];
+ in {
+ kerberos = nixpkgs.lib.nixosSystem {
+ inherit system;
+ modules = commonModules
+ ++ [ ./config ];
+ specialArgs = { inherit nixos-hardware; };
+ };
+ };
+ };
+}