feat: home-manager stylix
This commit is contained in:
parent
6ab38a390f
commit
540bd601e2
3 changed files with 22 additions and 40 deletions
|
@ -5,6 +5,7 @@
|
|||
./options
|
||||
|
||||
./home-manager.nix
|
||||
./stylix.nix
|
||||
|
||||
./system
|
||||
./programs
|
||||
|
|
21
modules/home/stylix.nix
Normal file
21
modules/home/stylix.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
config = {
|
||||
stylix = {
|
||||
iconTheme = {
|
||||
package = pkgs.kora-icon-theme;
|
||||
dark = "kora";
|
||||
light = "kora-light-panel";
|
||||
};
|
||||
|
||||
fonts.sizes.terminal = lib.mkIf pkgs.stdenv.isDarwin 14;
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
kora-icon-theme
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
system,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.snowfall.system) is-darwin;
|
||||
|
||||
cfg = config.marleyos.appearance.base;
|
||||
inherit (config.marleyos) isDesktop;
|
||||
in {
|
||||
options.marleyos.appearance.base.enable = lib.mkEnableOption "base";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
marleyos = {
|
||||
apps = {
|
||||
pinentry =
|
||||
if isDesktop
|
||||
then pkgs.pinentry-gtk2
|
||||
else pkgs.pinentry-curses;
|
||||
};
|
||||
};
|
||||
|
||||
stylix = {
|
||||
iconTheme = {
|
||||
package = pkgs.kora-icon-theme;
|
||||
dark = "kora";
|
||||
light = "kora-light-panel";
|
||||
};
|
||||
|
||||
fonts.sizes.terminal = lib.mkIf (is-darwin system) 14;
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
kora-icon-theme
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue