overlays by default

This commit is contained in:
Daylin Morgan 2024-02-15 10:57:13 -06:00
parent 32d3ab71e8
commit daf4845e6e
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
4 changed files with 12 additions and 21 deletions

View file

@ -9,7 +9,7 @@
restic
docker
];
nixpkgs.overlays = [inputs.pinix.overlays.default];
cli.enable = true;
desktop.enable = true;

View file

@ -32,9 +32,16 @@ in rec {
mkSystem = hostname:
nixosSystem {
system = "x86_64-linux";
modules =
[../modules/common.nix]
modules = [
../modules/common.nix
# ({...}: nixpkgs.overlays = [ import ../overlays {}; ])
(_:
{ nixpkgs.overlays = import ../overlays _ ++
[inputs.pinix.overlays.default]; })
]
++ filter isNixFile (listFilesRecursive (../. + "/hosts/${hostname}"));
specialArgs = {inherit inputs mkRune;};
};
mapHosts = dir: mapAttrs (name: _: mkSystem name) (readDir dir);

View file

@ -10,15 +10,10 @@
in {
options.languages.nim = mkEnableOption "nim";
config = mkIf cfg.nim {
nixpkgs.overlays = [
(import ../../overlays/nimlsp {})
(import ../../overlays/nimble {})
(import ../../overlays/nim-atlas {})
];
environment.systemPackages = with pkgs; [
nim-atlas
nim
nim-atlas
nimble
nimlsp
];

View file

@ -1,11 +0,0 @@
{...}: (_final: prev: {
hyprland = prev.hyprland.overrideAttrs {
src = prev.fetchFromGitHub {
version = "main-20240121";
owner = "hyprwm";
repo = "Hyprland";
rev = "3c964a9fdc220250a85b1c498e5b6fad9390272f";
hash = "sha256-oIt4bUVXRR7qnBPizcPA7fTiZl4xz9QaSdzLNukjtkw=";
};
};
})