Compare commits
2 Commits
main
...
tasiaiso-n
Author | SHA1 | Date | |
---|---|---|---|
d67e47ae4b | |||
b43b8da9ab |
@ -25,14 +25,14 @@
|
||||
}:
|
||||
pkgs.stdenv.mkDerivation rec {
|
||||
pname = "tildefriends";
|
||||
version = "0.0.27.1";
|
||||
version = "0.0.28";
|
||||
|
||||
src = pkgs.fetchFromGitea {
|
||||
domain = "dev.tildefriends.net";
|
||||
owner = "cory";
|
||||
repo = "tildefriends";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-3t1m9ZomQF3DteWyALJWrnCq0EAROEK8shKXh6Ao38c=";
|
||||
rev = "f02423d0846fefd5ab21fa4542fb77ce5714547c";
|
||||
hash = "sha256-QyM7wmViXJc4r8uTu4oE/HO3Z9tzNbFIX2+AOTQz9ZY=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
|
22
flake.nix
22
flake.nix
@ -35,5 +35,27 @@
|
||||
graphviz
|
||||
];
|
||||
};
|
||||
|
||||
nixosModules.default = {
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
# Shorter name to access final settings a
|
||||
# user of hello.nix module HAS ACTUALLY SET.
|
||||
# cfg is a typical convention.
|
||||
cfg = config.services.tildefriends;
|
||||
in {
|
||||
options.services.tildefriends = {
|
||||
enable = lib.mkEnableOption "Enable Tilde Friends";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
systemd.services.tildefriends = {
|
||||
wantedBy = ["multi-user.target"];
|
||||
serviceConfig.ExecStart = "${pkgs.tildefriends}/bin/tildefriends";
|
||||
};
|
||||
};
|
||||
};
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user