flake: cleanup inputs

This commit is contained in:
Antoine Martin 2021-07-14 17:53:31 +02:00
parent c5185394cc
commit 573a6ea0bc

View file

@ -31,11 +31,7 @@
}; };
}; };
outputs = { self, outputs = { self, nixpkgs, home-manager, ... } @inputs: {
nixpkgs,
nixpkgs-unstable,
emacs-overlay,
home-manager }: {
nixosConfigurations.poseidon = nixpkgs.lib.nixosSystem rec { nixosConfigurations.poseidon = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
@ -55,7 +51,7 @@
packages = import ./pkgs { pkgs = super; }; packages = import ./pkgs { pkgs = super; };
# packages accessible through pkgs.unstable.package # packages accessible through pkgs.unstable.package
unstable = import nixpkgs-unstable { unstable = import inputs.nixpkgs-unstable {
inherit system; inherit system;
config.allowUnfree = true; config.allowUnfree = true;
}; };
@ -90,12 +86,12 @@
{ {
nixpkgs.overlays = [ nixpkgs.overlays = [
emacs-overlay.overlay inputs.emacs-overlay.overlay
(self: super: { (self: super: {
packages = import ./pkgs { pkgs = super; }; packages = import ./pkgs { pkgs = super; };
unstable = import nixpkgs-unstable { unstable = import inputs.nixpkgs-unstable {
inherit system; inherit system;
config.allowUnfree = true; config.allowUnfree = true;
}; };