From 247c1d1acb6e07ef90418755501696a2d0c88211 Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Tue, 20 Dec 2022 12:25:22 +1000 Subject: [PATCH] update flake to use local repo --- flake.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index 00146f7..e288a90 100644 --- a/flake.nix +++ b/flake.nix @@ -4,8 +4,6 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs"; flake-utils.url = "github:numtide/flake-utils"; - grasp.url = "github:karlicoss/grasp"; - grasp.flake = false; }; outputs = { self, nixpkgs, flake-utils, grasp }: @@ -17,8 +15,8 @@ { packages.grasp = pkgs.stdenv.mkDerivation rec { pname = "grasp"; - version = "v0.6.6"; - src = grasp; + version = "v0.6.7"; + src = ./.; installPhase = '' mkdir -p $out/bin @@ -31,7 +29,7 @@ }) // { nixosModule = { options, lib, config, pkgs, ... }: let - graspConfig = config.services."grasp"; + graspConfig = config.services.grasp; options = { enable = lib.mkEnableOption "Grasp service"; @@ -96,9 +94,9 @@ # Only allow this to boot as a container boot.isContainer = true; networking.hostName = "grasp"; - services."grasp".enable = true; - services."grasp".user = "anish"; - services."grasp".path = "/home/anish/grasp/capture.org"; + services.grasp.enable = true; + services.grasp.user = "anish"; + services.grasp.path = "/home/anish/grasp/capture.org"; # I think I actually created the above folder as well in the container # I figured dynamic user with their own text file seems less useful # I didn't know how to default to a