Skip to content

Commit

Permalink
Setup overlay for nixpkgs-unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed Mar 20, 2024
1 parent d9b859a commit 17cf1c9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
4 changes: 2 additions & 2 deletions bacon.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{ inputs, system, pkgs-unstable }: with inputs;
{ inputs, system, pkgs }: with inputs;
let
username = "sigmanificient";
in
{
inherit system;

specialArgs = {
inherit username pkgs-unstable;
inherit username pkgs;
hostname = "Bacon";
};

Expand Down
21 changes: 16 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,29 @@
};
};

outputs = inputs:
with inputs; let
outputs = { nixpkgs, nixpkgs-unstable, ... } @ inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
pkgs-unstable = nixpkgs.legacyPackages.${system};

pkgs-settings = {
inherit system;
config.allowUnfree = true;
};

pkgs = import nixpkgs (pkgs-settings // {
overlays = [
(_: _: {
unstable = import nixpkgs-unstable pkgs-settings;
})
];
});
in
{
formatter.${system} = pkgs.nixpkgs-fmt;

nixosConfigurations = {
Bacon = nixpkgs.lib.nixosSystem
(import ./bacon.nix { inherit inputs system pkgs-unstable; });
(import ./bacon.nix { inherit inputs system pkgs; });
};
};
}
4 changes: 2 additions & 2 deletions system/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, username, hostname, pkgs, pkgs-unstable, ... }:
{ config, username, hostname, pkgs, ... }:
{
imports =
[
Expand Down Expand Up @@ -217,7 +217,7 @@
virtualisation = {
docker = {
enable = true;
package = pkgs-unstable.docker;
package = pkgs.unstable.docker;
};

libvirtd.enable = true;
Expand Down

0 comments on commit 17cf1c9

Please sign in to comment.