refactor(treewide): format with alejandra
This commit is contained in:
parent
7fefb94400
commit
61cef505da
216 changed files with 5995 additions and 3969 deletions
|
|
@ -1,6 +1,4 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
{...}: {
|
||||
imports = [
|
||||
./office
|
||||
./notes
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkMerge hm;
|
||||
cfg = config.ooknet.productivity.notes.obsidian;
|
||||
notes = config.ooknet.desktop.notes;
|
||||
|
|
@ -8,17 +11,20 @@ let
|
|||
# TODO: use admin.githubUsername
|
||||
notesRepo = "git@github.com:ooks-io/notes.git";
|
||||
notesPath = "${config.xdg.userDirs.documents}/notes";
|
||||
in
|
||||
|
||||
{
|
||||
config = mkMerge [
|
||||
in {
|
||||
config = mkMerge [
|
||||
(mkIf (cfg.enable || notes == "obsidian") {
|
||||
home.packages = [ pkgs.obsidian ];
|
||||
home.activation.cloneObsidianVault = hm.dag.entryAfter ["installPackages"] /* shell */ ''
|
||||
if ! [ -d "${notesPath}" ]; then
|
||||
$DRY_RUN_CMD git clone ${notesRepo} ${notesPath}
|
||||
fi
|
||||
'';
|
||||
home.packages = [pkgs.obsidian];
|
||||
home.activation.cloneObsidianVault =
|
||||
hm.dag.entryAfter ["installPackages"]
|
||||
/*
|
||||
shell
|
||||
*/
|
||||
''
|
||||
if ! [ -d "${notesPath}" ]; then
|
||||
$DRY_RUN_CMD git clone ${notesRepo} ${notesPath}
|
||||
fi
|
||||
'';
|
||||
})
|
||||
|
||||
(mkIf (notes == "obsidian") {
|
||||
|
|
|
|||
|
|
@ -1,13 +1,14 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.ooknet.desktop.productivity.office;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.desktop.productivity.office.enable = mkEnableOption "enable office home module";
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = [ pkgs.libreoffice ];
|
||||
home.packages = [pkgs.libreoffice];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (config.colorscheme) palette;
|
||||
inherit (lib) mkIf;
|
||||
|
||||
zathura = { "application/pdf" = ["org.pwmt.zathura.desktop"]; };
|
||||
|
||||
zathura = {"application/pdf" = ["org.pwmt.zathura.desktop"];};
|
||||
cfg = config.ooknet.productivity.pdf.zathura;
|
||||
pdf = config.ooknet.desktop.pdf;
|
||||
fonts = config.ooknet.fonts;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
config = mkIf (cfg.enable || pdf == "zathura") {
|
||||
programs.zathura = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue