working NUR flake

This commit is contained in:
Pim Kunis 2023-10-09 11:25:17 +02:00
parent bbfa8b1d4c
commit 0a46d32387
4 changed files with 31 additions and 11 deletions

View file

@ -32,10 +32,26 @@
"type": "github"
}
},
"nur": {
"locked": {
"lastModified": 1696831218,
"narHash": "sha256-UBtOKflBTUBfeFB7oYvMUzlc2uBLpZc+15JC9bPwKF4=",
"owner": "nix-community",
"repo": "NUR",
"rev": "be4322f9eaf6158baa87b3c08fc0a8d8805db181",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "NUR",
"type": "github"
}
},
"root": {
"inputs": {
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"nur": "nur"
}
}
},

View file

@ -3,25 +3,30 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
nur.url = "github:nix-community/NUR";
home-manager = {
url = "https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager }: {
outputs = { nixpkgs, home-manager, nur, ... }: {
nixosConfigurations = {
pim = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
home-manager.nixosModules.home-manager {
{ nixpkgs.overlays = [ nur.overlay ]; }
({ pkgs, ... }@args: home-manager.nixosModules.home-manager {
inherit (args) lib pkgs config utils;
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.pim = {
imports = [ ./home/home.nix ];
imports = [
./home/home.nix
];
};
}
})
./configuration.nix
];
};
};

View file

@ -1,6 +1,6 @@
{nurpkgs, lib, ...}@args:
{pkgs, lib, ...}@args:
let
rycee-addons = nurpkgs.repos.rycee.firefox-addons;
rycee-addons = pkgs.repos.rycee.firefox-addons;
custom-addons = import ./custom-addons.nix args;
in
{

View file

@ -1,8 +1,7 @@
{ pkgs, ...}@args:
args:
let
nurpkgs = import (builtins.fetchTarball {url = "https://github.com/nix-community/NUR/archive/master.tar.gz"; sha256 = "1gb3wkmyl6xbs4kval2ml48nlil39853dj62rxfrlk9i2nky2ly4"; }) { inherit pkgs; };
firefoxAddons = import ./addons.nix (args // {inherit nurpkgs; });
firefoxAddons = import ./addons.nix args;
firefoxSettings = {
"browser.aboutConfig.showWarning" = false;
"browser.toolbars.bookmarks.visibility" = "always";