From 5a2da131890014f4b3e0bbe2e3cc6ab0ebb5a502 Mon Sep 17 00:00:00 2001 From: DashieTM Date: Sun, 25 Aug 2024 14:12:00 +0200 Subject: [PATCH] Add example flake --- example/flake.nix | 45 +++++++++++++++++++++++++++ example/{ => hosts}/configuration.nix | 0 2 files changed, 45 insertions(+) create mode 100644 example/flake.nix rename example/{ => hosts}/configuration.nix (100%) diff --git a/example/flake.nix b/example/flake.nix new file mode 100644 index 0000000..559ec50 --- /dev/null +++ b/example/flake.nix @@ -0,0 +1,45 @@ +{ + description = "some dots"; + + inputs = { + dashvim.url = "github:DashieTM/DashVim"; + hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1"; + ironbar.url = + "github:JakeStanger/ironbar?ref=3a1c60442382f970cdb7669814b6ef3594d9f048"; + anyrun.url = "github:Kirottu/anyrun"; + nixpkgs.url = "github:NixOs/nixpkgs/nixos-unstable"; + stable.url = "github:NixOs/nixpkgs/nixos-24.05"; + dashNix = { + url = "github:DashieTM/DashNix"; + inputs = { + nixpkgs.follows = "nixpkgs"; + stable.follows = "stable"; + dashvim.follows = "dashvim"; + hyprland.follows = "hyprland"; + ironbar.follows = "ironbar"; + anyrun.follows = "anyrun"; + }; + }; + }; + + outputs = { ... }@inputs: { + nixosConfigurations = + (inputs.dashNix.dashNixLib.build_systems [ "example" ] ./hosts/.); + }; + + nixConfig = { + builders-use-substitutes = true; + + extra-substituters = [ + "https://hyprland.cachix.org" + "https://anyrun.cachix.org" + "https://cache.garnix.io" + ]; + + extra-trusted-public-keys = [ + "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" + "anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s=" + "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" + ]; + }; +} diff --git a/example/configuration.nix b/example/hosts/configuration.nix similarity index 100% rename from example/configuration.nix rename to example/hosts/configuration.nix