mirror of
https://github.com/danth/stylix
synced 2024-11-10 06:34:15 +00:00
7b34be82ff
This does not rely on an external library for colour selection, therefore it can be fine-tuned to create a better theme. Closes #2 because Colorgram is no longer used.
55 lines
1.7 KiB
Nix
55 lines
1.7 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { nixpkgs, utils, self, ... }:
|
|
(utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
ghc = pkgs.haskell.packages.ghc901.ghcWithPackages
|
|
(haskellPackages: with haskellPackages; [ json JuicyPixels ]);
|
|
|
|
palette-generator = pkgs.stdenvNoCC.mkDerivation {
|
|
name = "palette-generator";
|
|
src = ./palette-generator;
|
|
buildInputs = [ ghc ];
|
|
buildPhase = "ghc -O -threaded -Wall Main.hs";
|
|
installPhase = "install -D Main $out/bin/palette-generator";
|
|
};
|
|
|
|
palette-generator-app = utils.lib.mkApp {
|
|
drv = palette-generator;
|
|
name = "palette-generator";
|
|
};
|
|
|
|
in {
|
|
packages.palette-generator = palette-generator;
|
|
apps.palette-generator = palette-generator-app;
|
|
})) // {
|
|
nixosModules.stylix = { pkgs, ... }: {
|
|
imports = [
|
|
./modules/console.nix
|
|
./modules/dunst.nix
|
|
./modules/feh.nix
|
|
./modules/fish.nix
|
|
./modules/grub.nix
|
|
./modules/gtk.nix
|
|
./modules/kitty.nix
|
|
./modules/lightdm.nix
|
|
./modules/plymouth
|
|
./modules/qutebrowser.nix
|
|
./modules/sway.nix
|
|
./modules/vim.nix
|
|
(import ./stylix/palette.nix
|
|
self.packages.${pkgs.system}.palette-generator)
|
|
./stylix/base16.nix
|
|
./stylix/fonts.nix
|
|
./stylix/home-manager.nix
|
|
./stylix/pixel.nix
|
|
];
|
|
};
|
|
};
|
|
}
|