diff options
-rw-r--r-- | flake.lock | 26 | ||||
-rw-r--r-- | flake.nix | 10 |
2 files changed, 36 insertions, 0 deletions
diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..8ed578a --- /dev/null +++ b/flake.lock @@ -0,0 +1,26 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1618358082, + "narHash": "sha256-4vyEiTcCk7hRigwcRqDAF86YQbUzALUNxyH8SLG4oeo=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "dec334fa196a4aeedb1b60d8f7d61aa00d327499", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "ref": "nixos-20.09", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..99411cb --- /dev/null +++ b/flake.nix @@ -0,0 +1,10 @@ +{ + inputs.nixpkgs.url = "nixpkgs/nixos-20.09"; + outputs = { self, nixpkgs }: + with import nixpkgs { system = "x86_64-linux"; }; + { + defaultPackage.x86_64-linux = callPackage ./. {}; + nixosModule = { config }: { imports = [ ./module.nix ]; }; + }; +} + |