use NUR as an overlay
This commit is contained in:
parent
97d2dc1169
commit
1341c0520b
6 changed files with 40 additions and 15 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, config, ... }: {
|
{ pkgs, outputs, config, ... }: {
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
@ -116,4 +116,27 @@
|
||||||
setSocketVariable = true;
|
setSocketVariable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixpkgs = {
|
||||||
|
# You can add overlays here
|
||||||
|
overlays = [
|
||||||
|
# Add overlays your own flake exports (from overlays and pkgs dir):
|
||||||
|
outputs.overlays.nurPackages
|
||||||
|
|
||||||
|
# You can also add overlays exported from other flakes:
|
||||||
|
# neovim-nightly-overlay.overlays.default
|
||||||
|
|
||||||
|
# Or define it inline, for example:
|
||||||
|
# (final: prev: {
|
||||||
|
# hi = final.hello.overrideAttrs (oldAttrs: {
|
||||||
|
# patches = [ ./change-hello-to-hi.patch ];
|
||||||
|
# });
|
||||||
|
# })
|
||||||
|
];
|
||||||
|
# Configure your nixpkgs instance
|
||||||
|
config = {
|
||||||
|
# Disable if you don't want unfree packages
|
||||||
|
allowUnfree = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,8 +19,14 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, homeage, agenix, nur, ... }: {
|
outputs = { self, nixpkgs, home-manager, homeage, agenix, nur, ... }:
|
||||||
|
let
|
||||||
|
inherit (self) outputs;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
overlays = { nurPackages = nur.overlay; };
|
||||||
nixosConfigurations.pim = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.pim = nixpkgs.lib.nixosSystem {
|
||||||
|
specialArgs = { inherit outputs; };
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
|
|
|
@ -1,13 +1,10 @@
|
||||||
{ pkgs, nur, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
let
|
|
||||||
nur-no-pkgs = import (nur) { inherit pkgs; nurpkgs = pkgs; };
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./bash
|
./bash
|
||||||
./neovim
|
./neovim
|
||||||
(import ./firefox nur-no-pkgs) # TODO: bit of a hack, but better than before
|
./firefox
|
||||||
./ssh
|
./ssh
|
||||||
./syncthing
|
./syncthing
|
||||||
./alacritty
|
./alacritty
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ nurpkgs, lib, ... }@args:
|
pkgs: lib:
|
||||||
let
|
let
|
||||||
rycee-addons = nurpkgs.repos.rycee.firefox-addons;
|
rycee-addons = pkgs.nur.repos.rycee.firefox-addons;
|
||||||
custom-addons = import ./custom-addons.nix args;
|
custom-addons = import ./custom-addons.nix pkgs lib;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
default = lib.concatLists [
|
default = lib.concatLists [
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, lib, ... }:
|
pkgs: lib:
|
||||||
let
|
let
|
||||||
# Stolen from: https://github.com/nix-community/nur-combined/blob/master/repos/rycee/pkgs/firefox-addons/default.nix
|
# Stolen from: https://github.com/nix-community/nur-combined/blob/master/repos/rycee/pkgs/firefox-addons/default.nix
|
||||||
buildFirefoxXpiAddon = lib.makeOverridable ({ stdenv ? pkgs.stdenv, fetchurl ? pkgs.fetchurl,
|
buildFirefoxXpiAddon = lib.makeOverridable ({ stdenv ? pkgs.stdenv, fetchurl ? pkgs.fetchurl,
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
nurpkgs:
|
{ pkgs, lib, ... }:
|
||||||
{ pkgs, lib, ... }@args:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
firefoxAddons = import ./addons.nix (args // { inherit nurpkgs; });
|
firefoxAddons = import ./addons.nix pkgs lib;
|
||||||
firefoxSettings = {
|
firefoxSettings = {
|
||||||
"browser.aboutConfig.showWarning" = false;
|
"browser.aboutConfig.showWarning" = false;
|
||||||
"browser.toolbars.bookmarks.visibility" = "always";
|
"browser.toolbars.bookmarks.visibility" = "always";
|
||||||
|
|
Loading…
Reference in a new issue