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 restic
docker docker
]; ];
nixpkgs.overlays = [inputs.pinix.overlays.default];
cli.enable = true; cli.enable = true;
desktop.enable = true; desktop.enable = true;

View file

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

View file

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