Moved arc cache to common. Fixed scream service.

This commit is contained in:
kat witch 2021-03-02 17:01:19 +00:00
parent 4314341435
commit 0f524aeb01
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
2 changed files with 18 additions and 15 deletions

View file

@ -18,6 +18,9 @@ in {
"NUR=${sources.NUR}"
"arc=${sources.arc-nixexprs}"
];
binaryCaches = [ "https://arc.cachix.org" ];
binaryCachePublicKeys =
[ "arc.cachix.org-1:DZmhclLkB6UO0rc0rBzNpwFbbaeLfyn+fYccuAy7YVY=" ];
gc.automatic = lib.mkDefault true;
gc.options = lib.mkDefault "--delete-older-than 1w";
trustedUsers = [ "root" "@wheel" ];

View file

@ -72,21 +72,21 @@ in {
pkgs.cachix # arc caching
];
# arc caching
nix = {
binaryCaches = [ "https://arc.cachix.org" ];
binaryCachePublicKeys =
[ "arc.cachix.org-1:DZmhclLkB6UO0rc0rBzNpwFbbaeLfyn+fYccuAy7YVY=" ];
};
# audio for vm on startup
systemd.user.services.scream = {
enable = true;
wantedBy = [ "multi-user.target" ];
description = "Scream - Audio forwarding from the VM.";
serviceConfig = {
ExecStart = "${pkgs.arc.pkgs.scream-arc}/bin/scream -i virbr0 -o pulse";
Restart = "always";
home-manager.users.kat = {
# audio for vm on startup
systemd.user.services = {
scream = {
Unit = {
Description = "Scream - Audio forwarding from the VM.";
};
Service = {
ExecStart = "${pkgs.arc.pkgs.scream-arc}/bin/scream -i virbr0 -o pulse";
Restart = "always";
};
Install = {
WantedBy = [ "default.target" ];
};
};
};
};