mirror of
https://github.com/danth/stylix
synced 2024-11-10 06:34:15 +00:00
Beautify 2cf29984d4
🎨
This commit is contained in:
parent
2cf29984d4
commit
d673f6a30d
1 changed files with 45 additions and 44 deletions
89
flake.nix
89
flake.nix
|
@ -5,51 +5,52 @@
|
|||
};
|
||||
|
||||
outputs = { nixpkgs, utils, self, ... }:
|
||||
(utils.lib.eachSystem ["aarch64-linux" "i686-linux" "x86_64-linux"] (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
(utils.lib.eachSystem [ "aarch64-linux" "i686-linux" "x86_64-linux" ]
|
||||
(system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
|
||||
ghc = pkgs.haskellPackages.ghcWithPackages
|
||||
(haskellPackages: with haskellPackages; [ json JuicyPixels ]);
|
||||
ghc = pkgs.haskellPackages.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 = 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
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue