notusknot / dotfiles-nix

Configuration files for my NixOS machine, declared by home-manager
MIT License
464 stars 30 forks source link

How did you get the firefox sidebar "Full configuration of Neovim on NixOS (Treesitter, native lsp, and more!)" video? #4

Open thepenguinthatwants opened 2 years ago

thepenguinthatwants commented 2 years ago

Hi, I was wondering if the sidebar u were using in ur video a firefox plugin or tiling window manager gadget?

thepenguinthatwants commented 2 years ago

I was actually also wondering about configuration.nix and flake.nix.

I haven't grasped how to use flake.nix to build or even using it.

How did you use sudo nixos-rebuild switch -I nixos-config=/home/user/.config/nixos/configuration.nix to rebuilt something that was defined by home.nix? When configuration.nix doesn't have anything pointed to home.nix?

I thought to use or rebuild home.nix pointed nvim one would need to use home-manager build or such commands?

I guess compared to your setup right now the old video is outdated.

sudo nixos-rebuild switch --flakes .#laptop Is this new way of rebuilding everytime you do changes?.

notusknot commented 2 years ago

Hi, I used the tree style tab FireFox addon for the sidebar, with [FlyingFox](https://github.com/akshat46/FlyingFox] userChrome.css (it includes css for tree style tab).

Since the video, I've switched to Nix Flakes. This means building the config is now done with sudo nixos-rebuild switch --flake .#laptop. This builds a configuration with my laptop's hardware in mind from the flake.nix. Also to rebuild make sure you are in the directory of the config, since the . in that command just indicates to build from the current working directory. Hope this helps1

thepenguinthatwants commented 2 years ago

Thanks very much I'll try to play with it.

Noticed the

    extensions = with pkgs.nur.repos.rycee.firefox-addons; [
        decentraleyes
        ublock-origin
        clearurls
        sponsorblock
        darkreader
        h264ify
        df-youtube
    ];

Never knew it would be possible to download firefox addons using nixos. This is cool AF.

thepenguinthatwants commented 2 years ago

But everytime after rebuild it asks permissions to enable the firefox plugins.