[feat] Tried to add nur

This commit is contained in:
uttarayan21
2024-03-01 02:06:15 +05:30
parent d26ef52267
commit efd59a963d
5 changed files with 30 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
{ device, pkgs, ... }: { { device, pkgs, nur, ... }: {
programs.firefox = { programs.firefox = {
enable = device.isLinux; enable = false;
# enable = device.isLinux;
profiles.default = { profiles.default = {
userChrome = let userChrome = let
csshacks = pkgs.fetchFromGitHub { csshacks = pkgs.fetchFromGitHub {
@@ -13,6 +14,11 @@
@import url(${csshacks}/chrome/tabs_on_bottom.css); @import url(${csshacks}/chrome/tabs_on_bottom.css);
@import url(${csshacks}/chrome/toolbars_below_content.css); @import url(${csshacks}/chrome/toolbars_below_content.css);
''; '';
# extensions = with nur.repos.rycee.firefox-addons; [
# privacy-badger
# ublock-origin
# bitwarden
# ];
}; };
nativeMessagingHosts = [ pkgs.tridactyl-native ]; nativeMessagingHosts = [ pkgs.tridactyl-native ];
}; };

18
config/nix/flake.lock generated
View File

@@ -932,6 +932,21 @@
"type": "github" "type": "github"
} }
}, },
"nur": {
"locked": {
"lastModified": 1709238329,
"narHash": "sha256-c3GRGuMceCIMt8JiVics4PWzoxnJO1fhThhGBesqRG0=",
"owner": "nix-community",
"repo": "nur",
"rev": "04faed2bbb45869890824deb06ab315228ffe7b1",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nur",
"type": "github"
}
},
"poetry2nix": { "poetry2nix": {
"inputs": { "inputs": {
"flake-utils": [ "flake-utils": [
@@ -1031,7 +1046,8 @@
"nix-darwin": "nix-darwin", "nix-darwin": "nix-darwin",
"nixneovim": "nixneovim", "nixneovim": "nixneovim",
"nixneovimplugins": "nixneovimplugins_2", "nixneovimplugins": "nixneovimplugins_2",
"nixpkgs": "nixpkgs_5" "nixpkgs": "nixpkgs_5",
"nur": "nur"
} }
}, },
"rust-overlay": { "rust-overlay": {

View File

@@ -81,7 +81,7 @@
}; };
outputs = { nixpkgs, home-manager, nix-darwin, flake-utils, anyrun outputs = { nixpkgs, home-manager, nix-darwin, flake-utils, anyrun, nur
, neovim-nightly-overlay, ... }@inputs: , neovim-nightly-overlay, ... }@inputs:
let let
config_devices = [ config_devices = [
@@ -157,7 +157,7 @@
in { in {
nixosConfigurations = let devices = nixos_devices; nixosConfigurations = let devices = nixos_devices;
in import ./nixos/device.nix { in import ./nixos/device.nix {
inherit devices inputs nixpkgs home-manager overlays; inherit devices inputs nixpkgs home-manager overlays nur;
}; };
darwinConfigurations = let devices = darwin_devices; darwinConfigurations = let devices = darwin_devices;

View File

@@ -1,4 +1,4 @@
{ pkgs, device, ... }: { { pkgs, device, nur, ... }: {
imports = [ imports = [
../common/firefox.nix ../common/firefox.nix
../linux/hyprland.nix ../linux/hyprland.nix

View File

@@ -1,4 +1,4 @@
{ nixpkgs, devices, inputs, overlays, home-manager, ... }: { nixpkgs, devices, inputs, overlays, home-manager, nur, ... }:
builtins.listToAttrs (builtins.map (device: { builtins.listToAttrs (builtins.map (device: {
name = device.name; name = device.name;
value = nixpkgs.lib.nixosSystem { value = nixpkgs.lib.nixosSystem {
@@ -8,6 +8,7 @@ builtins.listToAttrs (builtins.map (device: {
lanzaboote = inputs.lanzaboote; lanzaboote = inputs.lanzaboote;
}; };
modules = [ modules = [
nur.nixosModules.nur
{ nixpkgs.overlays = overlays; } { nixpkgs.overlays = overlays; }
./configuration.nix ./configuration.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager