diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..e161606 --- /dev/null +++ b/flake.nix @@ -0,0 +1,38 @@ +{ + description = "kemptop flake"; + + inputs = { + nixpkgs = { + url = "github:NixOS/nixpkgs/nixos-unstable"; + }; + + nixos-hardware.url = "github:NixOS/nixos-hardware"; + + lanzaboote = { + url = "github:nix-community/lanzaboote"; + inputs = { + nixpkgs.follows = "nixpkgs"; + rust-overlay.follows = "rust-overlay"; + }; + }; + rust-overlay = { + url = "github:oxalica/rust-overlay"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = { self, nixpkgs, nixos-hardware, lanzaboote,rust-overlay }@inputs: { + nixosConfigurations = { + kemptop = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + + lanzaboote.nixosModules.lanzaboote + ./kemptop/configuration.nix + nixos-hardware.nixosModules.lenovo-thinkpad-p14s-amd-gen5 + ]; + specialArgs = { inherit inputs; }; + }; + }; + }; +}