diff --git a/flake.lock b/flake.lock index f3162c3..f4188e0 100644 --- a/flake.lock +++ b/flake.lock @@ -72,6 +72,27 @@ "type": "github" } }, + "flake-parts_2": { + "inputs": { + "nixpkgs-lib": [ + "nur", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1733312601, + "narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, "flake-schemas": { "locked": { "lastModified": 1721999734, @@ -364,6 +385,21 @@ } }, "nixpkgs_10": { + "locked": { + "lastModified": 1768127708, + "narHash": "sha256-1Sm77VfZh3mU0F5OqKABNLWxOuDeHIlcFjsXeeiPazs=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "ffbc9f8cbaacfb331b6017d5a5abb21a492c9a38", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "ref": "nixos-unstable", + "type": "indirect" + } + }, + "nixpkgs_11": { "locked": { "lastModified": 1772198003, "narHash": "sha256-I45esRSssFtJ8p/gLHUZ1OUaaTaVLluNkABkk6arQwE=", @@ -379,7 +415,7 @@ "type": "github" } }, - "nixpkgs_11": { + "nixpkgs_12": { "locked": { "lastModified": 1777268161, "narHash": "sha256-bxrdOn8SCOv8tN4JbTF/TXq7kjo9ag4M+C8yzzIRYbE=", @@ -476,6 +512,22 @@ } }, "nixpkgs_7": { + "locked": { + "lastModified": 1777954456, + "narHash": "sha256-hGdgeU2Nk87RAuZyYjyDjFL6LK7dAZN5RE9+hrDTkDU=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "549bd84d6279f9852cae6225e372cc67fb91a4c1", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_8": { "locked": { "lastModified": 1778274207, "narHash": "sha256-I4puXmX1iovcCHZlRmztO3vW0mAbbRvq4F8wgIMQ1MM=", @@ -491,7 +543,7 @@ "type": "github" } }, - "nixpkgs_8": { + "nixpkgs_9": { "locked": { "lastModified": 1777954456, "narHash": "sha256-hGdgeU2Nk87RAuZyYjyDjFL6LK7dAZN5RE9+hrDTkDU=", @@ -507,21 +559,6 @@ "type": "github" } }, - "nixpkgs_9": { - "locked": { - "lastModified": 1768127708, - "narHash": "sha256-1Sm77VfZh3mU0F5OqKABNLWxOuDeHIlcFjsXeeiPazs=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "ffbc9f8cbaacfb331b6017d5a5abb21a492c9a38", - "type": "github" - }, - "original": { - "id": "nixpkgs", - "ref": "nixos-unstable", - "type": "indirect" - } - }, "noctalia": { "inputs": { "nixpkgs": "nixpkgs_6", @@ -564,12 +601,31 @@ "type": "github" } }, + "nur": { + "inputs": { + "flake-parts": "flake-parts_2", + "nixpkgs": "nixpkgs_7" + }, + "locked": { + "lastModified": 1778514069, + "narHash": "sha256-zRIMx4RyO11e4NzTj3yrQwK+Ac5FeDiCNUpIQp64FoI=", + "owner": "nix-community", + "repo": "NUR", + "rev": "ffa79687195ba625b97ebe37cbe7414f3f93504c", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "NUR", + "type": "github" + } + }, "nyx-loner": { "inputs": { "flake-schemas": "flake-schemas", "home-manager": "home-manager_2", "jovian": "jovian", - "nixpkgs": "nixpkgs_7", + "nixpkgs": "nixpkgs_8", "rust-overlay": "rust-overlay_2" }, "locked": { @@ -589,7 +645,7 @@ "preload-ng": { "inputs": { "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs_8" + "nixpkgs": "nixpkgs_9" }, "locked": { "lastModified": 1768356181, @@ -607,7 +663,7 @@ }, "quickshell": { "inputs": { - "nixpkgs": "nixpkgs_9" + "nixpkgs": "nixpkgs_10" }, "locked": { "lastModified": 1778222427, @@ -635,6 +691,7 @@ "nixpkgs-master": "nixpkgs-master", "nixpkgs-stable": "nixpkgs-stable_2", "noctalia": "noctalia", + "nur": "nur", "nyx-loner": "nyx-loner", "preload-ng": "preload-ng", "quickshell": "quickshell", @@ -686,7 +743,7 @@ }, "shiru": { "inputs": { - "nixpkgs": "nixpkgs_10" + "nixpkgs": "nixpkgs_11" }, "locked": { "lastModified": 1778291268, @@ -790,7 +847,7 @@ "zen-browser": { "inputs": { "home-manager": "home-manager_3", - "nixpkgs": "nixpkgs_11" + "nixpkgs": "nixpkgs_12" }, "locked": { "lastModified": 1778394798, diff --git a/flake.nix b/flake.nix index ea3557e..b71e836 100644 --- a/flake.nix +++ b/flake.nix @@ -17,6 +17,7 @@ noctalia.url = "github:noctalia-dev/noctalia-shell"; niri.url = "github:sodiboo/niri-flake"; quickshell.url = "git+https://git.outfoxxed.me/outfoxxed/quickshell"; + nur.url = "github:nix-community/NUR"; }; outputs = inputs@{ diff --git a/hosts/Alfa/conf/GM/Pkgs/pkgs.nix b/hosts/Alfa/conf/GM/Pkgs/pkgs.nix index ae82c21..0715a55 100644 --- a/hosts/Alfa/conf/GM/Pkgs/pkgs.nix +++ b/hosts/Alfa/conf/GM/Pkgs/pkgs.nix @@ -83,7 +83,10 @@ services.logmein-hamachi.enable = true; programs.haguichi.enable = true; - imports = [ inputs.aagl.nixosModules.default ]; + imports = [ + inputs.aagl.nixosModules.default + inputs.nur.modules.nixos.default + ]; nix.settings = inputs.aagl.nixConfig; programs.sleepy-launcher.enable = true; programs.anime-game-launcher.enable = true; diff --git a/hosts/Alfa/conf/HM/pkgs/firefox.nix b/hosts/Alfa/conf/HM/pkgs/firefox.nix new file mode 100644 index 0000000..c093999 --- /dev/null +++ b/hosts/Alfa/conf/HM/pkgs/firefox.nix @@ -0,0 +1,117 @@ +{ + config, + lib, + inputs, + pkgs, + ... +}: +{ + programs.firefox = { + enable = true; + + languagePacks = [ "pt-BR" ]; + + policies = { + # Updates & Background Services + AppAutoUpdate = false; + BackgroundAppUpdate = false; + + # Feature Disabling + DisableBuiltinPDFViewer = false; + DisableFirefoxStudies = true; + DisableFirefoxAccounts = false; + DisableFirefoxScreenshots = true; + DisableForgetButton = true; + DisableMasterPasswordCreation = true; + DisableProfileImport = true; + DisableProfileRefresh = true; + DisableSetDesktopBackground = true; + DisablePocket = true; + DisableTelemetry = true; + DisableFormHistory = true; + DisablePasswordReveal = true; + + # Access Restrictions + BlockAboutConfig = false; + BlockAboutProfiles = true; + BlockAboutSupport = true; + + # UI and Behavior + DisplayMenuBar = "never"; + DontCheckDefaultBrowser = true; + HardwareAcceleration = false; + OfferToSaveLogins = false; + }; + + configPath = "${config.xdg.configHome}/mozilla/firefox"; + + profiles.default = { + + # Extensions + + search = { + force = true; + default = "google"; + privateDefault = "google"; + + engines = { + "Nix Packages" = { + urls = [ + { + template = "https://search.nixos.org/packages"; + params = [ + { + name = "channel"; + value = "unstable"; + } + { + name = "query"; + value = "{searchTerms}"; + } + ]; + } + ]; + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + definedAliases = [ "@np" ]; + }; + + "Nix Options" = { + urls = [ + { + template = "https://search.nixos.org/options"; + params = [ + { + name = "channel"; + value = "unstable"; + } + { + name = "query"; + value = "{searchTerms}"; + } + ]; + } + ]; + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + definedAliases = [ "@no" ]; + }; + + "NixOS Wiki" = { + urls = [ + { + template = "https://wiki.nixos.org/w/index.php"; + params = [ + { + name = "search"; + value = "{searchTerms}"; + } + ]; + } + ]; + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + definedAliases = [ "@nw" ]; + }; + }; + }; + }; + }; +} diff --git a/hosts/Alfa/conf/HM/pkgs/pkgs.nix b/hosts/Alfa/conf/HM/pkgs/pkgs.nix index f925a62..f60bebc 100644 --- a/hosts/Alfa/conf/HM/pkgs/pkgs.nix +++ b/hosts/Alfa/conf/HM/pkgs/pkgs.nix @@ -68,4 +68,9 @@ gnome-themes-extra papirus-icon-theme ]; + + imports = [ + #./firefox.nix + inputs.nur.modules.homeManager.default + ]; }