mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 20:39:18 -08:00
Redo overlays setup. Move to "final: prev:". Provide TST as overlay
This commit is contained in:
parent
5a35ac3c3e
commit
dc5d6552a1
9 changed files with 51 additions and 44 deletions
|
|
@ -1,19 +0,0 @@
|
|||
{ stdenv, sass, base16 }:
|
||||
|
||||
stdenv.mkDerivation ({
|
||||
pname = "firefox-tst-css";
|
||||
version = "0.0.1";
|
||||
|
||||
phases = [ "buildPhase" ];
|
||||
|
||||
src = ./tst.sass;
|
||||
|
||||
buildInputs = [
|
||||
sass
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
substituteAll $src firefox-tst-substituted.sass
|
||||
sass firefox-tst-substituted.sass $out --sourcemap=none
|
||||
'';
|
||||
} // base16)
|
||||
|
|
@ -10,11 +10,9 @@ let
|
|||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||
"svg.context-properties.content.enabled" = true;
|
||||
};
|
||||
firefox-tst = pkgs.callPackage ./firefox-tst { base16 = config.kw.hexColors; };
|
||||
in
|
||||
{
|
||||
|
||||
home.file.".mozilla/tst.css".source = firefox-tst;
|
||||
home.file.".mozilla/tst.css".source = pkgs.firefox-tst { base16 = config.kw.hexColors; };
|
||||
|
||||
programs.zsh.shellAliases = {
|
||||
ff-pm = "firefox --ProfileManager";
|
||||
|
|
|
|||
|
|
@ -1,30 +1,17 @@
|
|||
{ sources, system ? builtins.currentSystem, ... }@args:
|
||||
|
||||
let
|
||||
overlay = self: super: {
|
||||
nur = import sources.nur {
|
||||
nurpkgs = self;
|
||||
pkgs = self;
|
||||
};
|
||||
anicca = self.callPackage sources.anicca {};
|
||||
rustfmt = super.rustfmt.overrideAttrs ({ patches ? [ ], ... }: {
|
||||
patches = patches ++ [
|
||||
# Adds an option variant that merges all use statements into a single block.
|
||||
# Taken from https://github.com/rust-lang/rustfmt/pull/4680
|
||||
./Implement-One-option-for-imports_granularity-4669.patch
|
||||
];
|
||||
});
|
||||
linuxPackagesFor = kernel: (super.linuxPackagesFor kernel).extend (_: ksuper: {
|
||||
zfsUnstable = ksuper.zfsUnstable.overrideAttrs (old: { meta = old.meta // { broken = false; }; });
|
||||
});
|
||||
};
|
||||
pkgs = import sources.nixpkgs {
|
||||
overlays = [
|
||||
(import (sources.arcexprs + "/overlay.nix"))
|
||||
(import (sources.katexprs + "/overlay.nix"))
|
||||
(import ./nur { inherit sources; })
|
||||
(import sources.emacs-overlay)
|
||||
overlay
|
||||
];
|
||||
(import ./rustfmt)
|
||||
(import ./firefox-tst)
|
||||
] ++ (map (path: import "${path}/overlay.nix") [
|
||||
sources.arcexprs
|
||||
sources.katexprs
|
||||
sources.anicca
|
||||
]);
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
permittedInsecurePackages = [
|
||||
|
|
@ -33,4 +20,4 @@ let
|
|||
};
|
||||
};
|
||||
in
|
||||
pkgs
|
||||
pkgs
|
||||
|
|
|
|||
21
overlays/firefox-tst/default.nix
Normal file
21
overlays/firefox-tst/default.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
final: prev: {
|
||||
firefox-tst = final.callPackage ({ stdenv, sass }: { base16 }:
|
||||
|
||||
stdenv.mkDerivation ({
|
||||
pname = "firefox-tst-css";
|
||||
version = "0.0.1";
|
||||
|
||||
phases = [ "buildPhase" ];
|
||||
|
||||
src = ./tst.sass;
|
||||
|
||||
buildInputs = [
|
||||
sass
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
substituteAll $src firefox-tst-substituted.sass
|
||||
sass firefox-tst-substituted.sass $out --sourcemap=none --style expanded
|
||||
'';
|
||||
} // base16)) {};
|
||||
}
|
||||
6
overlays/nur/default.nix
Normal file
6
overlays/nur/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ sources }: final: prev: {
|
||||
nur = import sources.nur {
|
||||
nurpkgs = final;
|
||||
pkgs = final;
|
||||
};
|
||||
}
|
||||
9
overlays/rustfmt/default.nix
Normal file
9
overlays/rustfmt/default.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
final: prev: {
|
||||
rustfmt = prev.rustfmt.overrideAttrs ({ patches ? [ ], ... }: {
|
||||
patches = patches ++ [
|
||||
# Adds an option variant that merges all use statements into a single block.
|
||||
# Taken from https://github.com/rust-lang/rustfmt/pull/4680
|
||||
./Implement-One-option-for-imports_granularity-4669.patch
|
||||
];
|
||||
});
|
||||
}
|
||||
5
overlays/zfsUnstable/default.nix
Normal file
5
overlays/zfsUnstable/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
final: prev: {
|
||||
linuxPackagesFor = kernel: (final.linuxPackagesFor kernel).extend (_: kfinal: {
|
||||
zfsUnstable = kfinal.zfsUnstable.overrideAttrs (old: { meta = old.meta // { broken = false; }; });
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue