switch to lorri from nixpkgs
This commit is contained in:
parent
41dfac9e42
commit
9775790e5e
|
@ -5,7 +5,6 @@ with pkgs;
|
||||||
let
|
let
|
||||||
unstable = import <nixos-unstable> {};
|
unstable = import <nixos-unstable> {};
|
||||||
mybrowser = firefox;
|
mybrowser = firefox;
|
||||||
lorri = import (fetchTarball { url = "https://github.com/target/lorri/archive/rolling-release.tar.gz"; }) {};
|
|
||||||
pypi2nix = import (
|
pypi2nix = import (
|
||||||
pkgs.fetchgit {
|
pkgs.fetchgit {
|
||||||
url = "https://github.com/nix-community/pypi2nix";
|
url = "https://github.com/nix-community/pypi2nix";
|
||||||
|
@ -43,7 +42,7 @@ let
|
||||||
wire-desktop
|
wire-desktop
|
||||||
gpx-viewer
|
gpx-viewer
|
||||||
gpxsee
|
gpxsee
|
||||||
cawbird
|
unstable.cawbird
|
||||||
tootle
|
tootle
|
||||||
subsurface
|
subsurface
|
||||||
(
|
(
|
||||||
|
@ -85,7 +84,7 @@ let
|
||||||
musescore
|
musescore
|
||||||
audacity
|
audacity
|
||||||
avidemux
|
avidemux
|
||||||
linphone
|
#linphone
|
||||||
picard
|
picard
|
||||||
soundkonverter
|
soundkonverter
|
||||||
];
|
];
|
||||||
|
@ -317,48 +316,6 @@ in
|
||||||
terminal = "screen-256color";
|
terminal = "screen-256color";
|
||||||
};
|
};
|
||||||
|
|
||||||
# lorri daemon service
|
services.lorri.enable = true;
|
||||||
systemd.user = with lib; {
|
|
||||||
services.lorri = {
|
|
||||||
Unit = {
|
|
||||||
Description = "Lorri build daemon";
|
|
||||||
Documentation = "https://github.com/target/lorri";
|
|
||||||
ConditionUser = "!@system";
|
|
||||||
Requires = "lorri.socket";
|
|
||||||
After = "lorri.socket";
|
|
||||||
RefuseManualStart = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
Service = {
|
|
||||||
ExecStart = "${lorri}/bin/lorri daemon";
|
|
||||||
PrivateTmp = true;
|
|
||||||
ProtectSystem = "strict";
|
|
||||||
WorkingDirectory = "%h";
|
|
||||||
Restart = "on-failure";
|
|
||||||
Environment =
|
|
||||||
let
|
|
||||||
path = with pkgs; makeSearchPath "bin" [ nix gnutar git mercurial ];
|
|
||||||
in
|
|
||||||
concatStringsSep " " [
|
|
||||||
"PATH=${path}"
|
|
||||||
"RUST_BACKTRACE=1"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
sockets.lorri = {
|
|
||||||
Unit = {
|
|
||||||
Description = "Socket for lorri build daemon";
|
|
||||||
};
|
|
||||||
|
|
||||||
Socket = {
|
|
||||||
ListenStream = "%t/lorri/daemon.socket";
|
|
||||||
};
|
|
||||||
|
|
||||||
Install = {
|
|
||||||
WantedBy = [ "sockets.target" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue