diff --git a/common/helix/languages.toml b/common/helix/languages.toml index b537d32..72ff30e 100644 --- a/common/helix/languages.toml +++ b/common/helix/languages.toml @@ -6,6 +6,11 @@ auto-format = true name = "html" auto-format = false +[[language]] +name = "nix" +auto-format = true +formatter = { command = "nixpkgs-fmt", args = [] } + [[language]] name = "fish" auto-format = true diff --git a/os/linux/nix/daniel.nix b/os/linux/nix/daniel.nix index ae5a025..e45d251 100644 --- a/os/linux/nix/daniel.nix +++ b/os/linux/nix/daniel.nix @@ -5,9 +5,54 @@ programs.home-manager.enable = true; - # TODO: firefox with userchrome + programs.firefox = { + enable = true; + + package = (pkgs.firefox.override { extraNativeMessagingHosts = [ pkgs.passff-host ]; }); + + # extensions = with pkgs.nur.repos.rycee.firefox-addons; [ + # ublock-origin + # ]; + + profiles = { + daniel = { + id = 0; + settings = { + "general.smoothScroll" = true; + }; + + extraConfig = '' + user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true); + user_pref("full-screen-api.ignore-widgets", true); + user_pref("media.ffmpeg.vaapi.enabled", true); + user_pref("media.rdd-vpx.enabled", true); + ''; + + userChrome = '' + /* Remove close button*/ .titlebar-buttonbox-container{ display:none } + + #webrtcIndicator { + display: none; + } + + #main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar>.toolbar-items { + opacity: 0; + pointer-events: none; + } + + #main-window:not([tabsintitlebar="true"]) #TabsToolbar { + visibility: collapse !important; + } + ''; + + # userContent = '' + # ''; + }; + + }; + }; # wayland.windowManager.sway = { # enable = true; # }; -} \ No newline at end of file +} diff --git a/os/linux/nix/machines/thinker.nix b/os/linux/nix/machines/thinker.nix index f9b1d59..b26bd4e 100644 --- a/os/linux/nix/machines/thinker.nix +++ b/os/linux/nix/machines/thinker.nix @@ -17,6 +17,8 @@ let ''; }; + # TODO: hibernation? + # TODO: fonts? right now, I'm just installing to ~/.local/share/fonts configure-gtk = pkgs.writeTextFile { @@ -163,6 +165,8 @@ in { mosh nmap nnn + nil + nixpkgs-fmt noto-fonts pamixer (pass.withExtensions (exts: [ exts.pass-otp ]))