summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-01-23 13:27:59 +0100
committerRory& <root@rory.gay>2026-01-23 13:27:59 +0100
commit20b74076898028eeb26e7496c942ae12e464e8cc (patch)
tree2db8dfdaf71e6b1ba19617807b57878386e6fba3 /flake.nix
downloadSpacebarContainerRepro-master.tar.xz
initial commit HEAD master
Diffstat (limited to 'flake.nix')
-rwxr-xr-xflake.nix59
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; + }; + }; + }; + }; +}