update flake to use local repo

This commit is contained in:
Anish Lakhwara 2022-12-20 12:25:22 +10:00
parent 485dbca54e
commit 247c1d1acb

View file

@ -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