1
1
mirror of https://github.com/divnix/digga.git synced 2024-11-27 09:29:27 +03:00

flake: add packages to outputs

This commit is contained in:
Timothy DeHerrera 2020-01-01 19:24:09 -07:00
parent a080a07b21
commit 1493f43ba7
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
2 changed files with 29 additions and 20 deletions

View File

@ -6,22 +6,31 @@
inputs.nixpkgs.url = "github:nrdxp/nixpkgs/fork";
inputs.home.url = "github:nrdxp/home-manager/flakes";
outputs = { self, home, nixpkgs }: {
nixosConfigurations = let
configs = import ./hosts {
inherit nixpkgs;
flake = self;
home = home.nixosModules.home-manager;
outputs = { self, home, nixpkgs }: let
pkgs = import nixpkgs {
system = "x86_64-linux";
overlays = self.overlays;
};
in
{
nixosConfigurations = let
configs = import ./hosts {
inherit nixpkgs;
flake = self;
home = home.nixosModules.home-manager;
};
in
configs;
overlay = import ./pkgs;
overlays = [ self.overlay ];
packages.x86_64-linux = {
inherit (pkgs) sddm-chili dejavu_nerdfont purs;
};
in
configs;
overlay = import ./pkgs;
overlays = [ self.overlay ];
nixosModules = import ./modules;
};
nixosModules = import ./modules;
};
}

View File

@ -1,5 +1,5 @@
self: super: {
sddm-chili = super.callPackage ./applications/display-managers/sddm/themes/chili {};
dejavu_nerdfont = super.callPackage ./data/fonts/dejavu-nerdfont {};
purs = super.callPackage ./shells/zsh/purs {};
final: prev: {
sddm-chili = prev.callPackage ./applications/display-managers/sddm/themes/chili {};
dejavu_nerdfont = prev.callPackage ./data/fonts/dejavu-nerdfont {};
purs = prev.callPackage ./shells/zsh/purs {};
}