nix #11

Manually merged
geoffrey merged 113 commits from nix into main 2023-12-09 21:43:01 +01:00
2 changed files with 17 additions and 1 deletions
Showing only changes of commit 050901da2f - Show all commits

View file

@ -3,13 +3,23 @@
config = lib.mkIf config.frogeye.extra { config = lib.mkIf config.frogeye.extra {
programs = { programs = {
pandoc.enable = true; pandoc.enable = true;
yt-dlp = {
enable = true;
settings = {
format = "bestvideo[height<=${builtins.toString config.frogeye.desktop.maxVideoHeight}]+bestaudio/best";
sponsorblock-mark = "all";
sponsorblock-remove = "intro,outro,sponsor,selfpromo,preview,interaction,music_offtopic";
sub-langs = "en,fr";
write-auto-subs = true;
write-subs = true;
};
};
}; };
home.packages = with pkgs; ([ home.packages = with pkgs; ([
# android tools # android tools
android-tools android-tools
# downloading # downloading
yt-dlp
megatools megatools
# transmission TODO Collision if both transmissions are active? # transmission TODO Collision if both transmissions are active?

View file

@ -5,6 +5,11 @@
desktop = { desktop = {
xorg = lib.mkEnableOption "Enable X11 support"; xorg = lib.mkEnableOption "Enable X11 support";
nixGLIntel = lib.mkEnableOption "Enable nixGLIntel/nixVulkanIntel for windows manager"; nixGLIntel = lib.mkEnableOption "Enable nixGLIntel/nixVulkanIntel for windows manager";
maxVideoHeight = lib.mkOption {
type = lib.types.int;
description = "Maximum video height in pixel the machine can reasonably watch";
default = 1080;
};
}; };
dev = { dev = {
ansible = lib.mkEnableOption "Ansible dev stuff"; ansible = lib.mkEnableOption "Ansible dev stuff";
@ -16,6 +21,7 @@
dotfiles = { dotfiles = {
path = lib.mkOption { path = lib.mkOption {
type = lib.types.str; type = lib.types.str;
description = "Absolute path to the present dotfiles directory";
# default = "${config.home.homeDirectory}/.config/dotfiles"; # default = "${config.home.homeDirectory}/.config/dotfiles";
# FIXME Above doesn't work outside home-manager context # FIXME Above doesn't work outside home-manager context
default = "/home/geoffrey/.config/dotfiles"; default = "/home/geoffrey/.config/dotfiles";