Compare commits
2 commits
1243fe8aec
...
22114889a6
| Author | SHA1 | Date | |
|---|---|---|---|
| 22114889a6 | |||
| 90da9da0d5 |
2 changed files with 30 additions and 1 deletions
18
modules/desktop/beets.nix
Normal file
18
modules/desktop/beets.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{config, ...}: {
|
||||
flake.modules.nixos.desktop = {pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [beets];
|
||||
};
|
||||
|
||||
flake.modules.homeManager.desktop = {
|
||||
programs.beets = {
|
||||
enable = true;
|
||||
settings = {
|
||||
directory = "/home/${config.flake.meta.user.name}/Music";
|
||||
import.move = true;
|
||||
import.copy = false;
|
||||
paths.default = "$albumartist/$album/$track $title";
|
||||
plugins = ["fetchart" "musicbrainz"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,5 +1,16 @@
|
|||
{...}: {
|
||||
flake.modules.nixos.desktop = {
|
||||
services.printing.enable = true;
|
||||
services.printing = {
|
||||
enable = true;
|
||||
extraConf = ''
|
||||
Browsing On
|
||||
BrowseLocalProtocols dnssd
|
||||
'';
|
||||
};
|
||||
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue