refactor(flake-parts): initial flake-parts configuration
This commit is contained in:
parent
8f67be9e68
commit
5603001d65
230 changed files with 380 additions and 717 deletions
18
inputs/home/modules/desktop/productivity/default.nix
Normal file
18
inputs/home/modules/desktop/productivity/default.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./obsidian
|
||||
./zathura
|
||||
./office
|
||||
];
|
||||
|
||||
options.homeModules.desktop.productivity = {
|
||||
obsidian = {
|
||||
enable = lib.mkEnableOption "enable obsidian home module";
|
||||
};
|
||||
zathura = {
|
||||
enable = lib.mkEnableOption "enable zathura home module";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.homeModules.desktop.productivity.obsidian;
|
||||
in
|
||||
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = with pkgs; [ obsidian ];
|
||||
};
|
||||
}
|
||||
13
inputs/home/modules/desktop/productivity/office/default.nix
Normal file
13
inputs/home/modules/desktop/productivity/office/default.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.homeModules.desktop.productivity.office;
|
||||
in
|
||||
|
||||
{
|
||||
options.homeModules.desktop.productivity.office.enable = mkEnableOption "enable office home module";
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = [ pkgs.libreoffice ];
|
||||
};
|
||||
}
|
||||
40
inputs/home/modules/desktop/productivity/zathura/default.nix
Normal file
40
inputs/home/modules/desktop/productivity/zathura/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
cfg = config.homeModules.desktop.productivity.zathura;
|
||||
inherit (config.colorscheme) colors;
|
||||
fonts = config.homeModules.theme.fonts;
|
||||
in
|
||||
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.zathura = {
|
||||
enable = true;
|
||||
options = {
|
||||
font = "${fonts.regular.family} 14";
|
||||
recolor = true;
|
||||
selection-clipboard = "clipboard";
|
||||
default-bg = "#${colors.base00}";
|
||||
default-fg = "#${colors.base01}";
|
||||
statusbar-bg = "#${colors.base02}";
|
||||
statusbar-fg = "#${colors.base04}";
|
||||
inputbar-bg = "#${colors.base00}";
|
||||
inputbar-fg = "#${colors.base07}";
|
||||
notification-bg = "#${colors.base00}";
|
||||
notification-fg = "#${colors.base07}";
|
||||
notification-error-bg = "#${colors.base00}";
|
||||
notification-error-fg = "#${colors.base08}";
|
||||
notification-warning-bg = "#${colors.base00}";
|
||||
notification-warning-fg = "#${colors.base08}";
|
||||
highlight-color = "#${colors.base0A}";
|
||||
highlight-active-color = "#${colors.base0D}";
|
||||
completion-bg = "#${colors.base01}";
|
||||
completion-fg = "#${colors.base05}";
|
||||
completions-highlight-bg = "#${colors.base0D}";
|
||||
completions-highlight-fg = "#${colors.base07}";
|
||||
recolor-lightcolor = "#${colors.base00}";
|
||||
recolor-darkcolor = "#${colors.base06}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue