pbsdspkgs
This commit is contained in:
parent
bd765031de
commit
1341d9d719
4
base.nix
4
base.nix
|
@ -12,7 +12,9 @@
|
||||||
(ifExists ./hardware-configuration.nix )
|
(ifExists ./hardware-configuration.nix )
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.overlays = [ (import ./overlay.nix) ];
|
nixpkgs.overlays = [
|
||||||
|
(import ./overlays/wl-clipboard-timeout.nix)
|
||||||
|
];
|
||||||
|
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
pkgs.pulsar.name
|
pkgs.pulsar.name
|
||||||
|
|
30
flake.nix
30
flake.nix
|
@ -183,9 +183,13 @@
|
||||||
networking.domain = domain;
|
networking.domain = domain;
|
||||||
networking.search = [ domain ];
|
networking.search = [ domain ];
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
|
self.overlays.pbsdspkgs
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
#unstable = unstable.legacyPackages.${final.system};
|
#unstable = unstable.legacyPackages.${final.system};
|
||||||
unstable = import inputs.unstable { inherit system; config.allowUnfree = true; }; # TODO: inherit nixos config from stable
|
unstable = import inputs.unstable {
|
||||||
|
inherit system;
|
||||||
|
config = final.pkgs.config;
|
||||||
|
};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
# This makes commandline tools like 'nix run nixpkgs#hello'
|
# This makes commandline tools like 'nix run nixpkgs#hello'
|
||||||
|
@ -290,14 +294,9 @@
|
||||||
nixosConfigurations = mkHosts (mkConfig []);
|
nixosConfigurations = mkHosts (mkConfig []);
|
||||||
nixosReports = mkHosts (mkReport []);
|
nixosReports = mkHosts (mkReport []);
|
||||||
|
|
||||||
# TODO: overlays
|
overlays = {
|
||||||
|
pbsdspkgs = pkgs: prev: let inherit (pkgs) lib; in {
|
||||||
packages = forAllSystems ({ inputs, pkgs, lib, ... }: let
|
pbsds = lib.makeScope pkgs.newScope (pbsds: {
|
||||||
# TODO: by-name
|
|
||||||
mk-nspawn-setup = hostname: # TODO: nspawn-tarball.nix populates /etc/nixos with junk
|
|
||||||
(pkgs.callPackage ./pkgs/mk-nspawn-setup {})
|
|
||||||
(mkHosts (mkConfig [ "${nixos-nspawn}/nspawn-tarball.nix" ])).${hostname};
|
|
||||||
in {
|
|
||||||
# TODO: get faketty to work, ${expect}/bin/unbuffer is bad
|
# TODO: get faketty to work, ${expect}/bin/unbuffer is bad
|
||||||
nixos-rebuild-nom = pkgs.writeScriptBin "nixos-rebuild" ''
|
nixos-rebuild-nom = pkgs.writeScriptBin "nixos-rebuild" ''
|
||||||
if test -t 1 && test -z "''${NIX_NO_NOM-}"; then
|
if test -t 1 && test -z "''${NIX_NO_NOM-}"; then
|
||||||
|
@ -310,7 +309,20 @@
|
||||||
device-mon = pkgs.callPackage ./pkgs/device-mon {};
|
device-mon = pkgs.callPackage ./pkgs/device-mon {};
|
||||||
#pdoc-docs = (pkgs.callPackage ./pkgs/pdocs.nix {}).pdocs;
|
#pdoc-docs = (pkgs.callPackage ./pkgs/pdocs.nix {}).pdocs;
|
||||||
#pdoc3-docs = (pkgs.callPackage ./pkgs/pdocs.nix {}).pdocs3;
|
#pdoc3-docs = (pkgs.callPackage ./pkgs/pdocs.nix {}).pdocs3;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
wl-clipboard-timeout = ./overlays/wl-clipboard-timeout.nix;
|
||||||
|
default = self.overlays.pbsdspkgs;
|
||||||
|
};
|
||||||
|
|
||||||
|
packages = forAllSystems ({ inputs, pkgs, lib, ... }: let
|
||||||
|
# TODO: by-name
|
||||||
|
mk-nspawn-setup = hostname: # TODO: nspawn-tarball.nix populates /etc/nixos with junk
|
||||||
|
(pkgs.callPackage ./pkgs/mk-nspawn-setup {})
|
||||||
|
(mkHosts (mkConfig [ "${nixos-nspawn}/nspawn-tarball.nix" ])).${hostname};
|
||||||
|
pbsdspkgs = lib.filterAttrs (name: value: lib.isDerivation value) (self.overlays.pbsdspkgs pkgs null).pbsds;
|
||||||
|
in
|
||||||
|
pbsdspkgs // {
|
||||||
nspawn-setup-brumlebasse = mk-nspawn-setup "brumlebasse";
|
nspawn-setup-brumlebasse = mk-nspawn-setup "brumlebasse";
|
||||||
image-brumlebasse-openstack = nixos-generators-2311.nixosGenerate {
|
image-brumlebasse-openstack = nixos-generators-2311.nixosGenerate {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
Loading…
Reference in New Issue