From 359e24de7d4112e53c1130a3061112e31fbf7b4e Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 13 Apr 2023 23:35:15 -0400 Subject: [PATCH] feat: add flake-compat support --- default.nix | 10 ++++++++++ flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 10 +++++++++- 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 default.nix create mode 100644 flake.lock diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..2cccff2 --- /dev/null +++ b/default.nix @@ -0,0 +1,10 @@ +(import + ( + let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in + fetchTarball { + url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; + sha256 = lock.nodes.flake-compat.locked.narHash; + } + ) + { src = ./.; } +).defaultNix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..2d0cd86 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "flake-compat": { + "flake": false, + "locked": { + "lastModified": 1673956053, + "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-compat": "flake-compat" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix index 09ef00a..b7e819d 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,14 @@ { description = "Soothing pastel theme for Nix"; - outputs = { self }: { + + inputs = { + flake-compat = { + url = "github:edolstra/flake-compat"; + flake = false; + }; + }; + + outputs = _: { nixosModules.default = import ./nixos; homeManagerModules.default = import ./home-manager; };