diff options
author | Azat Bahawi <azat@bahawi.net> | 2023-01-30 01:48:52 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2023-01-30 01:48:52 +0300 |
commit | e8dbb049452e014fe89df34cb8f29e7c21c37666 (patch) | |
tree | 8102c252877057fc5c1d5914b36cbb167927e153 /modules/nixfiles | |
parent | 5e81e4814d6da25ce8531baf0bc2d23da7fc26b3 (diff) |
2023-01-30
Diffstat (limited to 'modules/nixfiles')
-rw-r--r-- | modules/nixfiles/aria2.nix | 3 | ||||
-rw-r--r-- | modules/nixfiles/common/nix/default.nix | 1 | ||||
-rw-r--r-- | modules/nixfiles/common/shell/default.nix | 8 | ||||
-rw-r--r-- | modules/nixfiles/firefox/default.nix | 18 | ||||
-rw-r--r-- | modules/nixfiles/mpv.nix | 4 |
5 files changed, 5 insertions, 29 deletions
diff --git a/modules/nixfiles/aria2.nix b/modules/nixfiles/aria2.nix index 9e72176..f33acb9 100644 --- a/modules/nixfiles/aria2.nix +++ b/modules/nixfiles/aria2.nix @@ -7,8 +7,7 @@ with lib; let cfg = config.nixfiles.modules.aria2; in { - options.nixfiles.modules.aria2.enable = - mkEnableOption "aria2"; + options.nixfiles.modules.aria2.enable = mkEnableOption "aria2"; config = mkIf cfg.enable { hm.programs.aria2 = { diff --git a/modules/nixfiles/common/nix/default.nix b/modules/nixfiles/common/nix/default.nix index 436ce15..2cbb86a 100644 --- a/modules/nixfiles/common/nix/default.nix +++ b/modules/nixfiles/common/nix/default.nix @@ -119,7 +119,6 @@ with lib; { })) emacs-overlay.overlay nur.overlay - # nil.overlays.default ]; environment.systemPackages = with pkgs; diff --git a/modules/nixfiles/common/shell/default.nix b/modules/nixfiles/common/shell/default.nix index 9425578..6ed8ff0 100644 --- a/modules/nixfiles/common/shell/default.nix +++ b/modules/nixfiles/common/shell/default.nix @@ -35,8 +35,8 @@ with lib; { GRC_ALIASES=true source ${pkgs.grc}/etc/profile.d/grc.sh - if [ -z $_PROFILE_SOURCED ] && [ -f $HOME/.profile ]; then - source $HOME/.profile + if [ -z "$_PROFILE_SOURCED" ] && [ -f "$HOME/.profile" ]; then + source "$HOME/.profile" fi ''; @@ -75,9 +75,7 @@ with lib; { progressBar = optionalString this.isHeadful "--progress-bar"; in [ - (mkAlias { - command = ["cp" "--interactive" "--recursive" progressBar]; - }) + (mkAlias {command = ["cp" "--interactive" "--recursive" progressBar];}) (mkAlias {command = ["mv" "--interactive" progressBar];}) (mkAlias {command = ["rm" "--interactive=once"];}) (mkAlias {command = ["ln" "--interactive"];}) diff --git a/modules/nixfiles/firefox/default.nix b/modules/nixfiles/firefox/default.nix index cd651a6..8b51db7 100644 --- a/modules/nixfiles/firefox/default.nix +++ b/modules/nixfiles/firefox/default.nix @@ -83,23 +83,7 @@ in { }; }; }; - "0200" = { - enable = true; - "0204" = { - enable = true; - "browser.search.region" = { - enable = true; - value = "US"; - }; - }; - "0210" = { - enable = true; - "intl.accept_languages" = { - enable = true; - value = "en-US, en"; - }; - }; - }; + "0200".enable = true; "0300".enable = true; "0400" = { enable = false; diff --git a/modules/nixfiles/mpv.nix b/modules/nixfiles/mpv.nix index 2072bc6..afab1dd 100644 --- a/modules/nixfiles/mpv.nix +++ b/modules/nixfiles/mpv.nix @@ -14,8 +14,6 @@ in { mpv = { enable = true; - # This is so dumb. And people still wonder why NixOS is so inacessable - # to outsiders. package = with pkgs; wrapMpv mpv-unwrapped { scripts = with mpvScripts; [ @@ -74,7 +72,6 @@ in { cursor-autohide = 1000; force-seekable = "no"; fullscreen = true; - load-unsafe-playlists = true; msg-color = true; msg-module = true; prefetch-playlist = true; @@ -123,7 +120,6 @@ in { ytdl = true; ytdl-raw-options = ''sub-lang="${lang}",write-sub=''; - ytdl-format = "(bestvideo[height<=?1080][fps<=?60][protocol!=http_dash_segments])+(bestaudio[acodec=opus]/bestaudio)/best"; }; }; |