mirror of
https://github.com/ivabus/nixos
synced 2024-11-10 02:25:18 +03:00
Add media-client and torrent roles
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
parent
06d253b189
commit
c2d197d7f0
|
@ -23,6 +23,8 @@ in {
|
|||
gaming.enable = true;
|
||||
graphical.enable = true;
|
||||
latex.enable = true;
|
||||
media-client.enable = true;
|
||||
torrent.enable = true;
|
||||
virtualisation.enable = true;
|
||||
yggdrasil-client.enable = true;
|
||||
};
|
||||
|
|
|
@ -21,6 +21,8 @@ in {
|
|||
gaming.enable = true;
|
||||
graphical.enable = true;
|
||||
latex.enable = false;
|
||||
media-client.enable = true;
|
||||
torrent.enable = true;
|
||||
virtualisation.enable = true;
|
||||
yggdrasil-client.enable = true;
|
||||
};
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
./gaming.nix
|
||||
./graphical.nix
|
||||
./latex.nix
|
||||
./media-client.nix # TODO: media-server
|
||||
./torrent.nix
|
||||
./virtualisation.nix
|
||||
./yggdrasil-client.nix
|
||||
];
|
||||
|
|
|
@ -17,6 +17,7 @@ in {
|
|||
usbmuxd
|
||||
keepassxc
|
||||
];
|
||||
# When adding pkgs prefer GTK over Qt, because Qt bad GTK good
|
||||
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
|
|
13
roles/media-client.nix
Normal file
13
roles/media-client.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.my.roles.media-client;
|
||||
in {
|
||||
options.my.roles.media-client.enable = lib.mkEnableOption "Enable media players, downloaders, etc.";
|
||||
config = lib.mkIf (cfg.enable){
|
||||
environment.systemPackages = with pkgs; [
|
||||
vlc
|
||||
yt-dlp ffmpeg
|
||||
];
|
||||
};
|
||||
}
|
13
roles/torrent.nix
Normal file
13
roles/torrent.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.my.roles.torrent;
|
||||
in {
|
||||
options.my.roles.torrent.enable = lib.mkEnableOption "Enable torrent support.";
|
||||
# TODO: do something about systems without GUI (i don't use any at the moment)
|
||||
config = lib.mkIf (cfg.enable) {
|
||||
environment.systemPackages = with pkgs; [
|
||||
(transmission.override {enableGTK3 = true;})
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue