2021-10-17 14:04:19 +00:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
2022-04-23 09:36:20 +00:00
|
|
|
base16 = {
|
|
|
|
url = "github:SenchoPens/base16.nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2022-07-30 14:30:57 +00:00
|
|
|
|
|
|
|
# Used for documentation
|
|
|
|
coricamu = {
|
|
|
|
url = "github:danth/coricamu";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2021-10-17 14:04:19 +00:00
|
|
|
};
|
|
|
|
|
2022-07-24 16:04:14 +00:00
|
|
|
outputs =
|
2022-07-30 14:30:57 +00:00
|
|
|
{ nixpkgs, base16, coricamu, self, ... }@inputs:
|
2022-07-24 16:04:14 +00:00
|
|
|
with nixpkgs.lib;
|
2022-07-30 14:30:57 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
docsOutputs = coricamu.lib.generateFlakeOutputs {
|
|
|
|
outputName = "docs";
|
|
|
|
modules = [ ./docs/default.nix ];
|
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
};
|
|
|
|
|
|
|
|
in recursiveUpdate docsOutputs {
|
2022-07-24 16:04:14 +00:00
|
|
|
packages = genAttrs [ "aarch64-linux" "i686-linux" "x86_64-linux" ] (
|
|
|
|
system:
|
2021-10-17 15:17:28 +00:00
|
|
|
let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
2021-10-17 14:04:19 +00:00
|
|
|
|
2022-07-24 16:04:14 +00:00
|
|
|
ghc =
|
|
|
|
pkgs.haskellPackages.ghcWithPackages
|
|
|
|
(ps: with ps; [ json JuicyPixels random ]);
|
2021-10-17 14:04:19 +00:00
|
|
|
|
2022-07-24 16:04:14 +00:00
|
|
|
in {
|
2021-10-17 15:17:28 +00:00
|
|
|
palette-generator = pkgs.stdenvNoCC.mkDerivation {
|
|
|
|
name = "palette-generator";
|
|
|
|
src = ./palette-generator;
|
|
|
|
buildInputs = [ ghc ];
|
2022-07-24 16:04:14 +00:00
|
|
|
buildPhase = ''
|
|
|
|
ghc -O -threaded -Wall -Wno-type-defaults Stylix/Main.hs
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
install -D Stylix/Main $out/bin/palette-generator
|
|
|
|
'';
|
2021-10-17 15:17:28 +00:00
|
|
|
};
|
2022-07-24 16:04:14 +00:00
|
|
|
}
|
|
|
|
);
|
2022-05-02 00:12:27 +00:00
|
|
|
|
2022-10-29 17:06:27 +00:00
|
|
|
hydraJobs = {
|
|
|
|
inherit (self.packages.x86_64-linux) docs palette-generator;
|
|
|
|
};
|
|
|
|
|
2022-07-24 16:04:14 +00:00
|
|
|
nixosModules.stylix = { pkgs, ... }@args: {
|
|
|
|
imports = [
|
|
|
|
./modules/alacritty.nix
|
2022-08-04 18:53:06 +00:00
|
|
|
./modules/bemenu.nix
|
2023-01-08 18:59:48 +00:00
|
|
|
./modules/chromium.nix
|
2022-07-24 16:04:14 +00:00
|
|
|
./modules/console.nix
|
|
|
|
./modules/dunst.nix
|
|
|
|
./modules/feh.nix
|
|
|
|
./modules/fish.nix
|
2022-11-26 14:31:33 +00:00
|
|
|
./modules/gedit
|
2022-12-19 19:23:41 +00:00
|
|
|
./modules/gnome
|
2022-07-24 16:04:14 +00:00
|
|
|
./modules/grub.nix
|
2022-11-07 11:12:26 +00:00
|
|
|
./modules/gtk
|
2022-07-24 16:04:14 +00:00
|
|
|
./modules/helix.nix
|
2023-01-07 17:53:22 +00:00
|
|
|
./modules/i3.nix
|
2023-01-28 17:55:34 +00:00
|
|
|
./modules/k9s.nix
|
2022-07-24 16:04:14 +00:00
|
|
|
./modules/kitty.nix
|
|
|
|
./modules/lightdm.nix
|
2022-07-20 18:41:42 +00:00
|
|
|
./modules/mako.nix
|
2022-07-24 16:04:14 +00:00
|
|
|
./modules/plymouth
|
|
|
|
./modules/qutebrowser.nix
|
|
|
|
./modules/sway.nix
|
2022-07-24 19:17:42 +00:00
|
|
|
./modules/swaylock.nix
|
2022-07-24 16:04:14 +00:00
|
|
|
./modules/vim.nix
|
2022-10-26 17:29:56 +00:00
|
|
|
./modules/vscode/default.nix
|
2022-07-24 16:04:14 +00:00
|
|
|
(import ./stylix/palette.nix {
|
|
|
|
inherit (self.packages.${pkgs.system}) palette-generator;
|
|
|
|
base16 = base16.lib args;
|
|
|
|
})
|
|
|
|
./stylix/fonts.nix
|
|
|
|
./stylix/pixel.nix
|
2022-07-25 19:38:43 +00:00
|
|
|
./stylix/target.nix
|
2022-07-24 16:04:14 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2021-10-17 14:04:19 +00:00
|
|
|
}
|