ctucx.git: nixfiles

ctucx' nixfiles

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
31 
32 
33 
34 
35 
36 
37 
38 
39 
{ pkgs, ... }:

{

  homebrew.enable  = true;
  homebrew.casks   = [
    "iina"
  ];

  system.defaults.CustomUserPreferences = {
    "com.colliderli.iina" = {
      # disable "music-mode"
      autoSwitchToMusicMode = false;

      # show file picker on start
      actionAfterLaunch = 1;

      # close window on end of file
      keepOpenOnFileEnd = false;

      # don't continue on last playback position
      resumeLastPosition = false;

      # set osd-layout to "bottom"
      oscPosition = 2;

      # quit app when all windows closed
      quitWhenNoOpenedWindow = true;

      # set path to youtube-dl provided via nix
      ytdlSearchPath = "/etc/profiles/per-user/katja/bin/youtube-dl";
    };
  };

  home-manager.users.katja.home.packages = with pkgs; [
    open-in-mpv
  ];

}