1 files changed, 59 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100755
index 0000000..75cafe0
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,59 @@
+{
+ description = "Rory&'s services flake";
+
+ nixConfig = {
+ extra-substituters = [
+ "https://nix-bincache.rory.gay"
+ ];
+ extra-trusted-public-keys = [
+ "nix-bincache.rory.gay:663PIW8xxgIImxLcsokODWI2PHFWXvzJEfjX6TaIjxQ="
+ ];
+ };
+
+ inputs = {
+ # Different nixpkgs versions
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+
+ lix = {
+ url = "https://git.lix.systems/lix-project/lix/archive/main.tar.gz";
+ flake = false;
+ };
+
+ lix-module = {
+ url = "https://git.lix.systems/lix-project/nixos-module/archive/main.tar.gz";
+ inputs.nixpkgs.follows = "nixpkgs";
+ inputs.lix.follows = "lix";
+ };
+
+ nom = {
+ url = "github:maralorn/nix-output-monitor";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+
+ # Own projects/custom modules
+ spacebar = {
+ url = "github:spacebarchat/server";
+ };
+ };
+
+ outputs =
+ inputs:
+ with inputs;
+ {
+ nixosConfigurations = {
+ Rory-ovh = nixpkgs.lib.nixosSystem {
+ system = "x86_64-linux";
+ modules = [
+ ./host/Rory-ovh/configuration.nix
+ #./hardware-configuration.nix
+
+ lix-module.nixosModules.default
+ ];
+ specialArgs = {
+ inherit spacebar;
+ inherit (inputs) nom;
+ };
+ };
+ };
+ };
+}
|