summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2023-03-18 13:34:13 +0100
committerquentin@aristote.fr <quentin@aristote.fr>2023-03-18 16:04:12 +0100
commite0259412d09499f30fdf7b3c579667313a991fa7 (patch)
treeb2621c0847de4f64cc15b82de5d6724f42bc1ccc /flake.nix
initial commit
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; };
+ };
+ };
+ };
+}