refactor: Move nix
outside of .config
dir
Technically not a config but a compose file, so I think it's better to have outside of `.config` dir
This commit is contained in:
parent
3484b4154a
commit
93a26accd1
22 changed files with 0 additions and 0 deletions
29
nix/lib/mkSystem.nix
Normal file
29
nix/lib/mkSystem.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ arch, stable, unstable, nur, extraOverlays ? [] }:
|
||||
|
||||
let
|
||||
overlays = [
|
||||
(import ../overlays/python.nix)
|
||||
] ++ extraOverlays;
|
||||
|
||||
# Placed here so that we don't need to specify hash for fetchTarball
|
||||
packageOverrides = pkgs: {
|
||||
nur = import nur {
|
||||
nurpkgs = pkgs;
|
||||
inherit pkgs;
|
||||
};
|
||||
};
|
||||
in {
|
||||
system = arch;
|
||||
pkgs = import stable {
|
||||
system = arch;
|
||||
inherit overlays;
|
||||
config.allowUnfree = true;
|
||||
config.packageOverrides = packageOverrides;
|
||||
};
|
||||
pkgs-unstable = import unstable {
|
||||
system = arch;
|
||||
inherit overlays;
|
||||
config.allowUnfree = true;
|
||||
# config.packageOverrides = packageOverrides;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue