rm myLib
This commit is contained in:
parent
318f03df08
commit
e2a28e46dd
2 changed files with 1 additions and 46 deletions
|
|
@ -17,9 +17,7 @@
|
|||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
cowsay
|
||||
lolcat
|
||||
];
|
||||
|
||||
system.stateVersion = "24.11"; # Did you read the comment?
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,43 +0,0 @@
|
|||
{
|
||||
inputs,
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
systems,
|
||||
}: let
|
||||
myLib = (import ./default.nix) {inherit inputs;};
|
||||
outputs = inputs.self.outputs;
|
||||
in rec {
|
||||
# copied from https://github.com/Misterio77/nix-config/blob/main/flake.nix
|
||||
lib = nixpkgs.lib // home-manager.lib;
|
||||
forEachSystem = f: lib.genAttrs (import systems) (system: f pkgsFor.${system});
|
||||
pkgsFor = lib.genAttrs (import systems) (
|
||||
system:
|
||||
import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
}
|
||||
);
|
||||
|
||||
mkSystem = config:
|
||||
inputs.nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit inputs outputs myLib;
|
||||
};
|
||||
modules = [
|
||||
config
|
||||
outputs.nixosModules.default
|
||||
];
|
||||
};
|
||||
|
||||
mkHome = sys: config:
|
||||
inputs.home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = pkgsFor sys;
|
||||
extraSpecialArgs = {
|
||||
inherit inputs myLib outputs;
|
||||
};
|
||||
modules = [
|
||||
config
|
||||
outputs.homeManagerModules.default
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue