mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
Merge pull request 'refactor-overlays' (#14) from refactor-overlays into trunk
Reviewed-on: https://codeberg.org/leana8959/.files/pulls/14
This commit is contained in:
commit
82ae801237
12 changed files with 66 additions and 46 deletions
5
Justfile
5
Justfile
|
|
@ -30,9 +30,8 @@ env name action profilePath="~/.environments":
|
||||||
drv=$(nix-build -E "
|
drv=$(nix-build -E "
|
||||||
let sources = import ./nix/sources.nix {};
|
let sources = import ./nix/sources.nix {};
|
||||||
pkgs = import sources.nixpkgs {
|
pkgs = import sources.nixpkgs {
|
||||||
overlays = [
|
overlays = with (import ../overlays); [
|
||||||
(import ./nix/overlays)
|
packages
|
||||||
(import ./nix/overlays/packages.nix)
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in pkgs.callPackage ./nix/environments/{{ name }}.nix {}
|
in pkgs.callPackage ./nix/environments/{{ name }}.nix {}
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,5 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = import ./nix/packages;
|
packages = import ./nix/packages;
|
||||||
|
overlays = import ./nix/overlays;
|
||||||
overlays = {
|
|
||||||
default = import ./nix/overlays;
|
|
||||||
packages = import ./nix/overlays/packages.nix;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,9 +31,12 @@ in
|
||||||
{
|
{
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
hostPlatform = system;
|
hostPlatform = system;
|
||||||
overlays = map import [
|
overlays = with (import ../overlays); [
|
||||||
../overlays
|
agenix
|
||||||
../overlays/packages.nix
|
disko
|
||||||
|
nur
|
||||||
|
wired-notify
|
||||||
|
packages
|
||||||
];
|
];
|
||||||
|
|
||||||
# Set NIX_PATH and flake registry at the same time
|
# Set NIX_PATH and flake registry at the same time
|
||||||
|
|
|
||||||
|
|
@ -37,10 +37,14 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
hostPlatform = system;
|
hostPlatform = system;
|
||||||
overlays = map import [
|
overlays = with (import ../overlays); [
|
||||||
../overlays
|
agenix
|
||||||
../overlays/packages.nix
|
disko
|
||||||
./vanadium/nixos/overlay.nix
|
nur
|
||||||
|
wired-notify
|
||||||
|
packages
|
||||||
|
|
||||||
|
(import ./vanadium/nixos/overlay.nix)
|
||||||
];
|
];
|
||||||
|
|
||||||
# Set NIX_PATH and flake registry at the same time
|
# Set NIX_PATH and flake registry at the same time
|
||||||
|
|
|
||||||
12
nix/overlays/by-name.nix
Normal file
12
nix/overlays/by-name.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
let
|
||||||
|
sources = import ../sources.nix;
|
||||||
|
lib = import (sources.nixpkgs + "/lib");
|
||||||
|
in
|
||||||
|
lib.mapAttrs
|
||||||
|
(
|
||||||
|
name: _:
|
||||||
|
import (./by-name + "/${name}/overlay.nix") {inherit sources;}
|
||||||
|
)
|
||||||
|
(
|
||||||
|
lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./by-name)
|
||||||
|
)
|
||||||
5
nix/overlays/by-name/agenix/overlay.nix
Normal file
5
nix/overlays/by-name/agenix/overlay.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{sources}:
|
||||||
|
#
|
||||||
|
final: prev: {
|
||||||
|
inherit (final.callPackage sources.agenix {}) agenix;
|
||||||
|
}
|
||||||
7
nix/overlays/by-name/disko/overlay.nix
Normal file
7
nix/overlays/by-name/disko/overlay.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{sources}:
|
||||||
|
#
|
||||||
|
final: _: {
|
||||||
|
disko =
|
||||||
|
final.callPackage (sources.disko + "/package.nix")
|
||||||
|
{diskoVersion = sources.disko.version;};
|
||||||
|
}
|
||||||
8
nix/overlays/by-name/nur/overlay.nix
Normal file
8
nix/overlays/by-name/nur/overlay.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{sources}:
|
||||||
|
#
|
||||||
|
_: prev: {
|
||||||
|
nur = import sources.nur {
|
||||||
|
nurpkgs = prev;
|
||||||
|
pkgs = prev;
|
||||||
|
};
|
||||||
|
}
|
||||||
6
nix/overlays/by-name/pin-isabelle-2023/overlay.nix
Normal file
6
nix/overlays/by-name/pin-isabelle-2023/overlay.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{sources}:
|
||||||
|
#
|
||||||
|
_: _: {
|
||||||
|
# Isabelle version 2023
|
||||||
|
isabelle-2023 = (import sources.pin-isabelle {}).isabelle;
|
||||||
|
}
|
||||||
7
nix/overlays/by-name/pin-wireshark/overlay.nix
Normal file
7
nix/overlays/by-name/pin-wireshark/overlay.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{sources}:
|
||||||
|
#
|
||||||
|
_: _: {
|
||||||
|
# Wireshark bug
|
||||||
|
# https://gitlab.com/wireshark/wireshark/-/issues/19574
|
||||||
|
inherit (import sources.pin-wireshark {}) wireshark;
|
||||||
|
}
|
||||||
2
nix/overlays/by-name/wired-notify/overlay.nix
Normal file
2
nix/overlays/by-name/wired-notify/overlay.nix
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
{sources}:
|
||||||
|
(import sources.wired-notify).overlays.default
|
||||||
|
|
@ -1,31 +1,2 @@
|
||||||
let
|
import ./by-name.nix
|
||||||
sources = import ../sources.nix;
|
// {packages = import ./packages.nix;}
|
||||||
lib = import (sources.nixpkgs + "/lib");
|
|
||||||
in
|
|
||||||
lib.composeManyExtensions [
|
|
||||||
(final: _: {
|
|
||||||
# Isabelle version 2023
|
|
||||||
inherit (import sources.pin-isabelle {}) isabelle;
|
|
||||||
|
|
||||||
# Wireshark bug
|
|
||||||
# https://gitlab.com/wireshark/wireshark/-/issues/19574
|
|
||||||
inherit (import sources.pin-wireshark {}) wireshark;
|
|
||||||
|
|
||||||
wallpapers = final.callPackage sources.wallpapers {};
|
|
||||||
|
|
||||||
inherit (final.callPackage sources.agenix {}) agenix;
|
|
||||||
|
|
||||||
disko =
|
|
||||||
final.callPackage (sources.disko + "/package.nix")
|
|
||||||
{diskoVersion = sources.disko.version;};
|
|
||||||
})
|
|
||||||
|
|
||||||
(_: prev: {
|
|
||||||
nur = import sources.nur {
|
|
||||||
nurpkgs = prev;
|
|
||||||
pkgs = prev;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
|
|
||||||
((import sources.wired-notify).overlays.default)
|
|
||||||
]
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue