~ruther/nixos-config

17e3867d7c4309c49bbe60d75c90f1c0252c779c — František Boháček 1 year, 6 months ago d12f035
feat: add Firefox with extensions
M hosts/default.nix => hosts/default.nix +13 -2
@@ 29,6 29,7 @@ let
  lib = nixpkgs.lib;
in
{

  laptop = lib.nixosSystem {                                # Laptop profile
    inherit system;
    specialArgs = {


@@ 39,6 40,7 @@ in
      };
    };
    modules = [
      nur.nixosModules.nur
      ./laptop
      ./configuration.nix



@@ 53,7 55,11 @@ in
          };
        };
        home-manager.users.${user} = {
          imports = [(import ./home.nix)] ++ [(import ./laptop/home.nix)];
          imports = [
            nur.hmModules.nur
            (import ./home.nix)
            (import ./laptop/home.nix)
          ];
        };
      }
    ];


@@ 70,6 76,7 @@ in
      };
    };
    modules = [
      nur.nixosModules.nur
      ./vm
      ./configuration.nix



@@ 85,7 92,11 @@ in
          };
        };
        home-manager.users.${user} = {
          imports = [(import ./home.nix)] ++ [(import ./vm/home.nix)];
          imports = [
            nur.hmModules.nur
            (import ./home.nix)
            (import ./vm/home.nix)
          ];
        };
      }
    ];

M hosts/desktop/home.nix => hosts/desktop/home.nix +0 -9
@@ 21,15 21,6 @@

  home = {                                # Specific packages for desktop
    packages = with pkgs; [
      # Applications
      ansible           # Automation
      sshpass           # Ansible Dependency
      hugo              # Static Website Builder

      # Dependencies
      ispell            # Emacs spelling

      #steam            # Game Launcher
    ];
  };
}

M hosts/home.nix => hosts/home.nix +0 -1
@@ 43,7 43,6 @@
      blueman           # Bluetooth manager

      # Apps
      firefox           # Browser
      chromium          # Browser

      # File Management

A modules/programs/firefox.nix => modules/programs/firefox.nix +46 -0
@@ 0,0 1,46 @@
{ inputs, config, lib, pkgs, ... }:

let
  nur = config.nur.repos;
in {
  programs.firefox = {
    enable = true;
    profiles = {
      default = {
        id = 0;
        name = "Default";
        isDefault = true;

        extensions = with nur.rycee.firefox-addons; [
          # Basic
          proton-pass                # Password manager
          darkreader                 # Dark pages
          ublock-origin              # Ad block
          tridactyl                  # Vim-like keybindings

          # Containers
          multi-account-containers

          # Site specific
          # social fixer for facebook

          # UI
          text-contrast-for-dark-themes

          # Utility
          istilldontcareaboutcookies
          h264ify
          youtube-shorts-block

          # Privacy
          # Don't touch my tabs!
          # Don't track me google
          link-cleaner
          clearurls
          decentraleyes
          privacy-badger
        ];
      };
    };
  };
}

M modules/programs/home.nix => modules/programs/home.nix +1 -0
@@ 14,4 14,5 @@
  ./alacritty.nix
  ./rofi.nix
  ./clipmenu.nix
  ./firefox.nix
]

Do not follow this link