Downgrade kernel to 6.18LTS
Added themes, fixed kanshi, some emacs changes
This commit is contained in:
@@ -10,5 +10,6 @@
|
||||
./terminal
|
||||
./development
|
||||
./notification
|
||||
./theme
|
||||
];
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ in
|
||||
{
|
||||
criteria = "Lenovo Group Limited LEN G34w-10 URW07XK8";
|
||||
position = "2560,0";
|
||||
mode = "3440x1440@50Hz";
|
||||
mode = "3440x1440@60Hz";
|
||||
}
|
||||
];
|
||||
};
|
||||
@@ -76,9 +76,9 @@ in
|
||||
position = "480,1440";
|
||||
}
|
||||
{
|
||||
criteria = "DP-5";
|
||||
criteria = "Lenovo Group Limited LEN G34w-10 URW07XK8";
|
||||
position = "0,0";
|
||||
mode = "3440x1440@50Hz";
|
||||
mode = "3440x1440@60Hz";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.dov.dynamic-theme;
|
||||
schemes = "${pkgs.base16-schemes}/share/themes";
|
||||
|
||||
# Single source of truth for builtin themes
|
||||
builtinThemes = {
|
||||
gruvbox = {
|
||||
dark = "${schemes}/gruvbox-dark-hard.yaml";
|
||||
light = "${schemes}/gruvbox-light-hard.yaml";
|
||||
};
|
||||
catppuccin = {
|
||||
dark = "${schemes}/catppuccin-mocha.yaml";
|
||||
light = "${schemes}/catppuccin-latte.yaml";
|
||||
};
|
||||
};
|
||||
|
||||
in {
|
||||
options.dov.dynamic-theme = {
|
||||
enable = mkEnableOption "dynamic theme switching";
|
||||
|
||||
themes = mkOption {
|
||||
type = types.attrsOf (types.submodule {
|
||||
options = {
|
||||
dark = mkOption {
|
||||
type = types.path;
|
||||
description = "Path to dark variant base16 scheme";
|
||||
};
|
||||
light = mkOption {
|
||||
type = types.path;
|
||||
description = "Path to light variant base16 scheme";
|
||||
};
|
||||
};
|
||||
});
|
||||
default = builtinThemes;
|
||||
description = "Available themes with dark and light variants";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# HM-level stylix config inherits from NixOS level
|
||||
# Specialisations are handled by NixOS module
|
||||
stylix = {
|
||||
enable = true;
|
||||
autoEnable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user