feat: Change nix formatter to alejandra
This commit is contained in:
parent
0b8b647f05
commit
b4c3dfec42
229 changed files with 2528 additions and 2884 deletions
|
|
@ -2,8 +2,7 @@
|
|||
pkgs,
|
||||
unixName,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
youthlic = {
|
||||
xdg-dirs.enable = true;
|
||||
programs = {
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{ ... }: { }
|
||||
{...}: {}
|
||||
|
|
|
|||
|
|
@ -4,35 +4,32 @@
|
|||
unixName,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
imports = lib.youthlic.loadImports ./.;
|
||||
youthlic = {
|
||||
xdg-dirs.enable = true;
|
||||
programs =
|
||||
let
|
||||
email = config.accounts.email.accounts.ulic-youthlic;
|
||||
inherit (email) address name;
|
||||
signKey = email.gpg.key;
|
||||
in
|
||||
{
|
||||
gpg.enable = true;
|
||||
git = {
|
||||
inherit name signKey;
|
||||
email = address;
|
||||
encrypt-credential = true;
|
||||
};
|
||||
fish.enable = true;
|
||||
bash.enable = true;
|
||||
jujutsu = {
|
||||
enable = true;
|
||||
inherit name signKey;
|
||||
email = address;
|
||||
};
|
||||
starship.enable = true;
|
||||
sops.enable = true;
|
||||
atuin.enable = true;
|
||||
programs = let
|
||||
email = config.accounts.email.accounts.ulic-youthlic;
|
||||
inherit (email) address name;
|
||||
signKey = email.gpg.key;
|
||||
in {
|
||||
gpg.enable = true;
|
||||
git = {
|
||||
inherit name signKey;
|
||||
email = address;
|
||||
encrypt-credential = true;
|
||||
};
|
||||
fish.enable = true;
|
||||
bash.enable = true;
|
||||
jujutsu = {
|
||||
enable = true;
|
||||
inherit name signKey;
|
||||
email = address;
|
||||
};
|
||||
starship.enable = true;
|
||||
sops.enable = true;
|
||||
atuin.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
david = {
|
||||
|
|
|
|||
|
|
@ -2,17 +2,13 @@
|
|||
config,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
inherit (inputs.niri-flake.lib.kdl) node leaf flag;
|
||||
in
|
||||
{
|
||||
in {
|
||||
david.programs.niri = {
|
||||
waybar.settings =
|
||||
let
|
||||
cfg = config.david.programs.niri.waybar;
|
||||
in
|
||||
[ (cfg.template // (cfg.helper.mkBacklight "intel_backlight") // { output = "eDP-1"; }) ];
|
||||
waybar.settings = let
|
||||
cfg = config.david.programs.niri.waybar;
|
||||
in [(cfg.template // (cfg.helper.mkBacklight "intel_backlight") // {output = "eDP-1";})];
|
||||
wluma.extraSettings = {
|
||||
output = {
|
||||
backlight = [
|
||||
|
|
@ -24,26 +20,25 @@ in
|
|||
];
|
||||
};
|
||||
};
|
||||
extraConfig =
|
||||
let
|
||||
output = node "output";
|
||||
in
|
||||
[
|
||||
(output
|
||||
[ "eDP-1" ]
|
||||
[
|
||||
(leaf "mode" [ "1920x1200@60.018" ])
|
||||
(leaf "scale" [ 1.0 ])
|
||||
(flag "focus-at-startup")
|
||||
(leaf "position" [
|
||||
{
|
||||
x = 0;
|
||||
y = 0;
|
||||
}
|
||||
])
|
||||
(leaf "transform" [ "normal" ])
|
||||
]
|
||||
)
|
||||
];
|
||||
extraConfig = let
|
||||
output = node "output";
|
||||
in [
|
||||
(
|
||||
output
|
||||
["eDP-1"]
|
||||
[
|
||||
(leaf "mode" ["1920x1200@60.018"])
|
||||
(leaf "scale" [1.0])
|
||||
(flag "focus-at-startup")
|
||||
(leaf "position" [
|
||||
{
|
||||
x = 0;
|
||||
y = 0;
|
||||
}
|
||||
])
|
||||
(leaf "transform" ["normal"])
|
||||
]
|
||||
)
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,43 +4,40 @@
|
|||
config,
|
||||
unixName,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
imports = lib.youthlic.loadImports ./.;
|
||||
youthlic = {
|
||||
xdg-dirs.enable = true;
|
||||
programs =
|
||||
let
|
||||
email = config.accounts.email.accounts.ulic-youthlic;
|
||||
inherit (email) name address;
|
||||
signKey = email.gpg.key;
|
||||
in
|
||||
{
|
||||
rustypaste-cli.enable = true;
|
||||
gpg.enable = true;
|
||||
jujutsu = {
|
||||
enable = true;
|
||||
inherit name signKey;
|
||||
email = address;
|
||||
};
|
||||
git = {
|
||||
inherit name signKey;
|
||||
email = address;
|
||||
encrypt-credential = true;
|
||||
};
|
||||
fish.enable = true;
|
||||
bash.enable = true;
|
||||
starship.enable = true;
|
||||
sops.enable = true;
|
||||
kvm.enable = true;
|
||||
atuin.enable = true;
|
||||
ion.enable = true;
|
||||
spotifyd.enable = true;
|
||||
awscli = {
|
||||
enable = true;
|
||||
url = "http://localhost:8491";
|
||||
};
|
||||
programs = let
|
||||
email = config.accounts.email.accounts.ulic-youthlic;
|
||||
inherit (email) name address;
|
||||
signKey = email.gpg.key;
|
||||
in {
|
||||
rustypaste-cli.enable = true;
|
||||
gpg.enable = true;
|
||||
jujutsu = {
|
||||
enable = true;
|
||||
inherit name signKey;
|
||||
email = address;
|
||||
};
|
||||
git = {
|
||||
inherit name signKey;
|
||||
email = address;
|
||||
encrypt-credential = true;
|
||||
};
|
||||
fish.enable = true;
|
||||
bash.enable = true;
|
||||
starship.enable = true;
|
||||
sops.enable = true;
|
||||
kvm.enable = true;
|
||||
atuin.enable = true;
|
||||
ion.enable = true;
|
||||
spotifyd.enable = true;
|
||||
awscli = {
|
||||
enable = true;
|
||||
url = "http://localhost:8491";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
david = {
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.david.programs.niri;
|
||||
in
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.david.programs.niri;
|
||||
in {
|
||||
david.programs.niri = lib.mkIf cfg.enable {
|
||||
waybar.settings =
|
||||
let
|
||||
cfg = config.david.programs.niri.waybar;
|
||||
in
|
||||
[
|
||||
(cfg.template // (cfg.helper.mkBacklight "ddcci13") // { output = "DP-1"; })
|
||||
(cfg.template // (cfg.helper.mkBacklight "nvidia_0") // { output = "eDP-2"; })
|
||||
];
|
||||
waybar.settings = let
|
||||
cfg = config.david.programs.niri.waybar;
|
||||
in [
|
||||
(cfg.template // (cfg.helper.mkBacklight "ddcci13") // {output = "DP-1";})
|
||||
(cfg.template // (cfg.helper.mkBacklight "nvidia_0") // {output = "eDP-2";})
|
||||
];
|
||||
wluma.extraSettings = {
|
||||
output = {
|
||||
backlight = [
|
||||
|
|
@ -34,6 +34,6 @@ in
|
|||
}
|
||||
];
|
||||
};
|
||||
extraConfig = [ ];
|
||||
extraConfig = [];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
imports = lib.youthlic.loadImports ./.;
|
||||
config = {
|
||||
youthlic.programs = {
|
||||
|
|
|
|||
|
|
@ -2,11 +2,9 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.david.accounts.email;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.accounts.email = {
|
||||
enable = lib.mkEnableOption "emails";
|
||||
|
|
|
|||
|
|
@ -3,11 +3,9 @@
|
|||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.david.programs.alacritty;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.programs.alacritty = {
|
||||
enable = lib.mkEnableOption "alacritty";
|
||||
|
|
@ -20,13 +18,13 @@ in
|
|||
settings =
|
||||
(
|
||||
with lib;
|
||||
pipe ./alacritty.toml [
|
||||
builtins.readFile
|
||||
builtins.fromTOML
|
||||
]
|
||||
pipe ./alacritty.toml [
|
||||
builtins.readFile
|
||||
builtins.fromTOML
|
||||
]
|
||||
)
|
||||
// {
|
||||
colors = lib.mkForce { };
|
||||
colors = lib.mkForce {};
|
||||
font.size = lib.mkForce 16;
|
||||
window.opacity = lib.mkForce 0.8;
|
||||
general.import = [
|
||||
|
|
|
|||
|
|
@ -2,11 +2,9 @@
|
|||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.david.programs.chromium;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.programs.chromium = {
|
||||
enable = lib.mkEnableOption "chromium";
|
||||
|
|
|
|||
|
|
@ -3,11 +3,9 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.david.programs.espanso;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.programs.espanso = {
|
||||
enable = lib.mkEnableOption "espanso";
|
||||
|
|
@ -18,7 +16,7 @@ in
|
|||
enable = true;
|
||||
package = pkgs.espanso-wayland;
|
||||
configs = {
|
||||
default = { };
|
||||
default = {};
|
||||
};
|
||||
matches = {
|
||||
base = {
|
||||
|
|
|
|||
|
|
@ -3,11 +3,9 @@
|
|||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.david.programs.firefox;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.programs.firefox = {
|
||||
enable = lib.mkEnableOption "firefox";
|
||||
|
|
@ -89,7 +87,7 @@ in
|
|||
];
|
||||
}
|
||||
];
|
||||
definedAliases = [ "@gp" ];
|
||||
definedAliases = ["@gp"];
|
||||
};
|
||||
"Nix Packages" = {
|
||||
urls = [
|
||||
|
|
@ -108,7 +106,7 @@ in
|
|||
}
|
||||
];
|
||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
definedAliases = [ "@np" ];
|
||||
definedAliases = ["@np"];
|
||||
};
|
||||
"Nix Options" = {
|
||||
urls = [
|
||||
|
|
@ -126,7 +124,7 @@ in
|
|||
];
|
||||
}
|
||||
];
|
||||
definedAliases = [ "@no" ];
|
||||
definedAliases = ["@no"];
|
||||
};
|
||||
"Home Manager Options" = {
|
||||
urls = [
|
||||
|
|
@ -144,7 +142,7 @@ in
|
|||
];
|
||||
}
|
||||
];
|
||||
definedAliases = [ "@hm" ];
|
||||
definedAliases = ["@hm"];
|
||||
};
|
||||
"Nix Flakes" = {
|
||||
urls = [
|
||||
|
|
@ -162,7 +160,7 @@ in
|
|||
];
|
||||
}
|
||||
];
|
||||
definedAliases = [ "@nf" ];
|
||||
definedAliases = ["@nf"];
|
||||
};
|
||||
"NixOS Wiki" = {
|
||||
urls = [
|
||||
|
|
@ -176,7 +174,7 @@ in
|
|||
];
|
||||
}
|
||||
];
|
||||
definedAliases = [ "@nw" ];
|
||||
definedAliases = ["@nw"];
|
||||
};
|
||||
"Rust Stdandard Lib" = {
|
||||
urls = [
|
||||
|
|
@ -190,7 +188,7 @@ in
|
|||
];
|
||||
}
|
||||
];
|
||||
definedAliases = [ "@rs" ];
|
||||
definedAliases = ["@rs"];
|
||||
};
|
||||
"GitHub" = {
|
||||
urls = [
|
||||
|
|
@ -208,7 +206,7 @@ in
|
|||
];
|
||||
}
|
||||
];
|
||||
definedAliases = [ "@gh" ];
|
||||
definedAliases = ["@gh"];
|
||||
};
|
||||
"Rust Reference" = {
|
||||
urls = [
|
||||
|
|
@ -222,7 +220,7 @@ in
|
|||
];
|
||||
}
|
||||
];
|
||||
definedAliases = [ "@rr" ];
|
||||
definedAliases = ["@rr"];
|
||||
};
|
||||
"Rust Crates" = {
|
||||
urls = [
|
||||
|
|
@ -236,7 +234,7 @@ in
|
|||
];
|
||||
}
|
||||
];
|
||||
definedAliases = [ "@rc" ];
|
||||
definedAliases = ["@rc"];
|
||||
};
|
||||
"C++ Reference" = {
|
||||
urls = [
|
||||
|
|
@ -254,7 +252,7 @@ in
|
|||
];
|
||||
}
|
||||
];
|
||||
definedAliases = [ "@cr" ];
|
||||
definedAliases = ["@cr"];
|
||||
};
|
||||
"bing".metaData.hidden = true;
|
||||
"google".metaData.alias = "@g"; # builtin engines only support specifying one additional alias
|
||||
|
|
|
|||
|
|
@ -2,11 +2,9 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.david.programs.foot;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.programs.foot = {
|
||||
enable = lib.mkEnableOption "foot";
|
||||
|
|
|
|||
|
|
@ -2,11 +2,9 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.david.programs.fuzzel;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.programs.fuzzel = {
|
||||
enable = lib.mkEnableOption "fuzzel";
|
||||
|
|
|
|||
|
|
@ -3,42 +3,39 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
options = {
|
||||
david.programs.ghostty = {
|
||||
enable = lib.mkEnableOption "ghostty";
|
||||
};
|
||||
};
|
||||
config =
|
||||
let
|
||||
cfg = config.david.programs.ghostty;
|
||||
in
|
||||
(lib.mkIf cfg.enable {
|
||||
programs.ghostty = lib.mkMerge [
|
||||
{
|
||||
enable = true;
|
||||
package = pkgs.ghostty;
|
||||
settings = {
|
||||
# font-family = "Maple Mono NF CN";
|
||||
font-feature = [
|
||||
"calt"
|
||||
"zero"
|
||||
"cv03"
|
||||
"ss08"
|
||||
];
|
||||
font-size = lib.mkForce 17;
|
||||
theme = lib.mkForce "Atom One Dark";
|
||||
background-opacity = lib.mkForce 0.8;
|
||||
confirm-close-surface = "false";
|
||||
};
|
||||
}
|
||||
(lib.mkIf config.youthlic.programs.fish.enable {
|
||||
enableFishIntegration = true;
|
||||
})
|
||||
(lib.mkIf config.youthlic.programs.bash.enable {
|
||||
enableBashIntegration = true;
|
||||
})
|
||||
];
|
||||
});
|
||||
config = let
|
||||
cfg = config.david.programs.ghostty;
|
||||
in (lib.mkIf cfg.enable {
|
||||
programs.ghostty = lib.mkMerge [
|
||||
{
|
||||
enable = true;
|
||||
package = pkgs.ghostty;
|
||||
settings = {
|
||||
# font-family = "Maple Mono NF CN";
|
||||
font-feature = [
|
||||
"calt"
|
||||
"zero"
|
||||
"cv03"
|
||||
"ss08"
|
||||
];
|
||||
font-size = lib.mkForce 17;
|
||||
theme = lib.mkForce "Atom One Dark";
|
||||
background-opacity = lib.mkForce 0.8;
|
||||
confirm-close-surface = "false";
|
||||
};
|
||||
}
|
||||
(lib.mkIf config.youthlic.programs.fish.enable {
|
||||
enableFishIntegration = true;
|
||||
})
|
||||
(lib.mkIf config.youthlic.programs.bash.enable {
|
||||
enableBashIntegration = true;
|
||||
})
|
||||
];
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,11 +3,9 @@
|
|||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.david.programs.helix;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.programs.helix = {
|
||||
enable = lib.mkEnableOption "helix";
|
||||
|
|
|
|||
|
|
@ -2,11 +2,9 @@
|
|||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.david.programs.kanshi;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.programs.kanshi = {
|
||||
enable = lib.mkEnableOption "kanshi";
|
||||
|
|
|
|||
|
|
@ -2,11 +2,9 @@
|
|||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.david.programs.mpv;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.programs.mpv = {
|
||||
enable = lib.mkEnableOption "mpv";
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -6,17 +6,17 @@
|
|||
osConfig ? null,
|
||||
options,
|
||||
...
|
||||
}@args:
|
||||
let
|
||||
} @ args: let
|
||||
cfg = config.david.programs.niri;
|
||||
niri = osConfig.programs.niri.package;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.programs.niri = {
|
||||
enable = (lib.mkEnableOption "niri") // {
|
||||
default = osConfig.youthlic.gui.enabled == "niri";
|
||||
};
|
||||
enable =
|
||||
(lib.mkEnableOption "niri")
|
||||
// {
|
||||
default = osConfig.youthlic.gui.enabled == "niri";
|
||||
};
|
||||
extraConfig = lib.mkOption {
|
||||
type = inputs.niri-flake.lib.kdl.types.kdl-document;
|
||||
};
|
||||
|
|
@ -51,35 +51,34 @@ in
|
|||
swayimg
|
||||
seahorse
|
||||
])
|
||||
++ [ niri ];
|
||||
++ [niri];
|
||||
qt = {
|
||||
enable = true;
|
||||
};
|
||||
xdg.portal = {
|
||||
configPackages = [ niri ];
|
||||
configPackages = [niri];
|
||||
enable = true;
|
||||
extraPortals = lib.mkIf (
|
||||
!niri.cargoBuildNoDefaultFeatures || builtins.elem "xdp-gnome-screencast" niri.cargoBuildFeatures
|
||||
) [ pkgs.xdg-desktop-portal-gnome ];
|
||||
) [pkgs.xdg-desktop-portal-gnome];
|
||||
};
|
||||
xdg.configFile =
|
||||
let
|
||||
qtctConf = ''
|
||||
xdg.configFile = let
|
||||
qtctConf =
|
||||
''
|
||||
[Appearance]
|
||||
standard_dialogs=xdgdesktopportal
|
||||
''
|
||||
+ lib.optionalString (config.qt.style ? name) ''
|
||||
style=${config.qt.style.name}
|
||||
'';
|
||||
in
|
||||
{
|
||||
"qt5ct/qt5ct.conf" = lib.mkForce {
|
||||
text = qtctConf;
|
||||
};
|
||||
"qt6ct/qt6ct.conf" = lib.mkForce {
|
||||
text = qtctConf;
|
||||
};
|
||||
in {
|
||||
"qt5ct/qt5ct.conf" = lib.mkForce {
|
||||
text = qtctConf;
|
||||
};
|
||||
"qt6ct/qt6ct.conf" = lib.mkForce {
|
||||
text = qtctConf;
|
||||
};
|
||||
};
|
||||
david.programs = {
|
||||
fuzzel.enable = true;
|
||||
waybar = {
|
||||
|
|
@ -97,7 +96,7 @@ in
|
|||
};
|
||||
programs.niri = {
|
||||
config =
|
||||
(lib.toList (import ./config.nix (args // { inherit pkgs; }))) ++ (lib.toList cfg.extraConfig);
|
||||
(lib.toList (import ./config.nix (args // {inherit pkgs;}))) ++ (lib.toList cfg.extraConfig);
|
||||
package = niri;
|
||||
};
|
||||
})
|
||||
|
|
|
|||
|
|
@ -3,11 +3,9 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.david.programs.nvchad;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.programs.nvchad = {
|
||||
enable = lib.mkEnableOption "nvchad";
|
||||
|
|
|
|||
|
|
@ -3,11 +3,9 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.david.programs.openssh;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.programs.openssh = {
|
||||
enable = lib.mkEnableOption "openssh";
|
||||
|
|
@ -49,7 +47,7 @@ in
|
|||
};
|
||||
})
|
||||
(lib.mkIf (cfg.enable && config.youthlic.programs.sops.enable) {
|
||||
programs.ssh.includes = [ config.sops.secrets.ssh-config.path ];
|
||||
programs.ssh.includes = [config.sops.secrets.ssh-config.path];
|
||||
sops.secrets = {
|
||||
"ssh-private-key/tytonidae" = {
|
||||
mode = "0600";
|
||||
|
|
|
|||
|
|
@ -4,17 +4,15 @@
|
|||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
inherit (inputs) nixpkgs emacs-overlay spacemacs;
|
||||
inherit (pkgs) system;
|
||||
cfg = config.david.programs.spacemacs;
|
||||
pkgs' = import nixpkgs {
|
||||
localSystem = { inherit system; };
|
||||
overlays = [ emacs-overlay.overlays.default ];
|
||||
localSystem = {inherit system;};
|
||||
overlays = [emacs-overlay.overlays.default];
|
||||
};
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.programs.spacemacs = {
|
||||
enable = lib.mkEnableOption "spacemacs";
|
||||
|
|
@ -30,8 +28,7 @@ in
|
|||
};
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
package =
|
||||
with pkgs';
|
||||
package = with pkgs';
|
||||
(emacsPackagesFor emacs-pgtk).emacsWithPackages (_epkgs: [
|
||||
git
|
||||
gnutar
|
||||
|
|
|
|||
|
|
@ -3,11 +3,9 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.david.programs.swaylock;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.programs.swaylock = {
|
||||
enable = lib.mkEnableOption "swaylock";
|
||||
|
|
|
|||
|
|
@ -2,11 +2,9 @@
|
|||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.david.programs.swaync;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.programs.swaync = {
|
||||
enable = lib.mkEnableOption "swaync";
|
||||
|
|
@ -20,7 +18,7 @@ in
|
|||
};
|
||||
})
|
||||
(lib.mkIf (!cfg.systemd.enable) {
|
||||
systemd.user.services.swaync = lib.mkForce { };
|
||||
systemd.user.services.swaync = lib.mkForce {};
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,11 +2,9 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.david.programs.thunderbird;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.programs.thunderbird = {
|
||||
enable = lib.mkEnableOption "thunderbird";
|
||||
|
|
|
|||
|
|
@ -4,11 +4,9 @@
|
|||
lib,
|
||||
options,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.david.programs.waybar;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.programs.waybar = {
|
||||
enable = lib.mkEnableOption "waybar";
|
||||
|
|
@ -25,7 +23,7 @@ in
|
|||
"niri/workspaces"
|
||||
"wlr/taskbar"
|
||||
];
|
||||
modules-center = [ "clock" ];
|
||||
modules-center = ["clock"];
|
||||
modules-right = [
|
||||
"tray"
|
||||
"idle_inhibitor"
|
||||
|
|
@ -39,7 +37,7 @@ in
|
|||
on-click = "activate";
|
||||
};
|
||||
|
||||
"niri/worksapces" = { };
|
||||
"niri/worksapces" = {};
|
||||
"niri/taskbar" = {
|
||||
icon-size = 15;
|
||||
on-click = "activate";
|
||||
|
|
|
|||
|
|
@ -3,11 +3,9 @@
|
|||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.david.programs.waypaper;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.programs.waypaper = {
|
||||
enable = lib.mkEnableOption "waypaper";
|
||||
|
|
@ -29,7 +27,7 @@ in
|
|||
OnCalendar = "*:0/10";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = [ "timers.target" ];
|
||||
WantedBy = ["timers.target"];
|
||||
};
|
||||
};
|
||||
services."waypaper" = {
|
||||
|
|
|
|||
|
|
@ -3,11 +3,9 @@
|
|||
config,
|
||||
options,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.david.programs.wluma;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.programs.wluma = {
|
||||
enable = lib.mkEnableOption "wluma";
|
||||
|
|
@ -35,22 +33,23 @@ in
|
|||
config = lib.mkIf cfg.enable {
|
||||
services.wluma = {
|
||||
enable = true;
|
||||
settings = {
|
||||
als = {
|
||||
webcam = {
|
||||
video = 0;
|
||||
thresholds = {
|
||||
"0" = "night";
|
||||
"15" = "dark";
|
||||
"30" = "dim";
|
||||
"45" = "normal";
|
||||
"60" = "bright";
|
||||
"75" = "outdoors";
|
||||
settings =
|
||||
{
|
||||
als = {
|
||||
webcam = {
|
||||
video = 0;
|
||||
thresholds = {
|
||||
"0" = "night";
|
||||
"15" = "dark";
|
||||
"30" = "dim";
|
||||
"45" = "normal";
|
||||
"60" = "bright";
|
||||
"75" = "outdoors";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
// cfg.extraSettings;
|
||||
}
|
||||
// cfg.extraSettings;
|
||||
systemd = {
|
||||
enable = true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,11 +3,9 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.david.programs.zed-editor;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.programs.zed-editor = {
|
||||
enable = lib.mkEnableOption "zed-editor";
|
||||
|
|
@ -64,7 +62,7 @@ in
|
|||
ty = {
|
||||
binary = {
|
||||
path = lib.getExe pkgs.ty;
|
||||
arguments = [ "server" ];
|
||||
arguments = ["server"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,11 +3,9 @@
|
|||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.david.wallpaper;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
david.wallpaper = {
|
||||
enable = lib.mkEnableOption "wallpaper";
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@
|
|||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
imports =
|
||||
(with inputs; [
|
||||
niri-flake.homeModules.niri
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@
|
|||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
config = {
|
||||
nixpkgs = {
|
||||
config = {
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@
|
|||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
imports =
|
||||
(with inputs; [
|
||||
sops-nix.homeManagerModules.sops
|
||||
|
|
|
|||
|
|
@ -2,11 +2,9 @@
|
|||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.youthlic.programs.atuin;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
youthlic.programs.atuin = {
|
||||
enable = lib.mkEnableOption "atuin";
|
||||
|
|
|
|||
|
|
@ -3,11 +3,9 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.youthlic.programs.awscli;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
youthlic.programs.awscli = {
|
||||
enable = lib.mkEnableOption "awscli";
|
||||
|
|
@ -18,7 +16,7 @@ in
|
|||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
sops.secrets."awscli" = { };
|
||||
sops.secrets."awscli" = {};
|
||||
programs.awscli = {
|
||||
enable = true;
|
||||
credentials = {
|
||||
|
|
|
|||
|
|
@ -2,11 +2,9 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.youthlic.programs.bash;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
youthlic.programs.bash = {
|
||||
enable = lib.mkEnableOption "bash";
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.youthlic.programs.direnv;
|
||||
in
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.youthlic.programs.direnv;
|
||||
in {
|
||||
options = {
|
||||
youthlic.programs.direnv = {
|
||||
enable = lib.mkEnableOption "direnv";
|
||||
|
|
|
|||
|
|
@ -2,14 +2,12 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.youthlic.programs.eza;
|
||||
fish-cfg = config.youthlic.programs.fish;
|
||||
bash-cfg = config.youthlic.programs.bash;
|
||||
ion-cfg = config.youthlic.programs.ion;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
youthlic.programs.eza = {
|
||||
enable = lib.mkEnableOption "eza";
|
||||
|
|
|
|||
|
|
@ -3,11 +3,9 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.youthlic.programs.fish;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
youthlic.programs.fish = {
|
||||
enable = lib.mkEnableOption "fish";
|
||||
|
|
@ -25,7 +23,8 @@ in
|
|||
{
|
||||
name = with pkgs.fishPlugins.foreign-env; pname + "-" + version;
|
||||
src = pkgs.fishPlugins.foreign-env.overrideAttrs {
|
||||
postInstall = # bash
|
||||
postInstall =
|
||||
# bash
|
||||
''
|
||||
ln -s $out/share/fish/vendor_functions.d $out/functions
|
||||
'';
|
||||
|
|
@ -41,7 +40,8 @@ in
|
|||
body = '''';
|
||||
};
|
||||
};
|
||||
shellInitLast = # fish
|
||||
shellInitLast =
|
||||
# fish
|
||||
''
|
||||
if test -e ~/.config/guix/current/bin/guix
|
||||
fish_add_path -pPm ~/.config/guix/current/bin
|
||||
|
|
|
|||
|
|
@ -2,13 +2,11 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.youthlic.programs.fzf;
|
||||
fish-cfg = config.youthlic.programs.fish;
|
||||
bash-cfg = config.youthlic.programs.bash;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
youthlic.programs.fzf = {
|
||||
enable = lib.mkEnableOption "fzf";
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
options = {
|
||||
youthlic.programs.git = {
|
||||
email = lib.mkOption {
|
||||
|
|
@ -31,10 +30,9 @@
|
|||
encrypt-credential = lib.mkEnableOption "encrypt git credential";
|
||||
};
|
||||
};
|
||||
config =
|
||||
let
|
||||
cfg = config.youthlic.programs.git;
|
||||
in
|
||||
config = let
|
||||
cfg = config.youthlic.programs.git;
|
||||
in
|
||||
lib.mkMerge [
|
||||
{
|
||||
programs = {
|
||||
|
|
|
|||
|
|
@ -4,17 +4,15 @@
|
|||
lib,
|
||||
outputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
options = {
|
||||
youthlic.programs.gpg = {
|
||||
enable = lib.mkEnableOption "gpg";
|
||||
};
|
||||
};
|
||||
config =
|
||||
let
|
||||
cfg = config.youthlic.programs.gpg;
|
||||
in
|
||||
config = let
|
||||
cfg = config.youthlic.programs.gpg;
|
||||
in
|
||||
lib.mkIf cfg.enable {
|
||||
services.gpg-agent = lib.mkMerge [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,26 +3,23 @@
|
|||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.youthlic.programs.helix;
|
||||
defaultLanguagesSettings = config.programs.helix.package.passthru.languages.language;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
youthlic.programs.helix = {
|
||||
enable = lib.mkEnableOption "helix";
|
||||
languageSettings = lib.mkOption {
|
||||
type = lib.types.attrsOf (
|
||||
lib.types.submodule (
|
||||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
freeformType = lib.types.anything;
|
||||
options = {
|
||||
language-servers = lib.mkOption {
|
||||
type = lib.types.listOf (lib.types.either lib.types.str lib.types.anything);
|
||||
default = [ "typos-lsp" ];
|
||||
example = [ "rust-analyzer" ];
|
||||
default = ["typos-lsp"];
|
||||
example = ["rust-analyzer"];
|
||||
apply = lib.unique;
|
||||
};
|
||||
};
|
||||
|
|
@ -30,17 +27,16 @@ in
|
|||
)
|
||||
);
|
||||
default = lib.pipe defaultLanguagesSettings [
|
||||
(map (lang: lib.nameValuePair lang.name (lib.removeAttrs lang [ "name" ])))
|
||||
(map (lang: lib.nameValuePair lang.name (lib.removeAttrs lang ["name"])))
|
||||
lib.listToAttrs
|
||||
];
|
||||
apply = lib.mapAttrsToList (name: value: { inherit name; } // value);
|
||||
apply = lib.mapAttrsToList (name: value: {inherit name;} // value);
|
||||
};
|
||||
extraPackages = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.package;
|
||||
default = [ ];
|
||||
default = [];
|
||||
example = (
|
||||
with pkgs;
|
||||
[
|
||||
with pkgs; [
|
||||
deno
|
||||
]
|
||||
);
|
||||
|
|
@ -56,8 +52,7 @@ in
|
|||
enable = true;
|
||||
defaultEditor = true;
|
||||
extraPackages = cfg.extraPackages;
|
||||
settings =
|
||||
with lib;
|
||||
settings = with lib;
|
||||
pipe ./config.toml [
|
||||
builtins.readFile
|
||||
builtins.fromTOML
|
||||
|
|
@ -86,200 +81,200 @@ in
|
|||
command = "typos-lsp";
|
||||
};
|
||||
};
|
||||
} { language = cfg.languageSettings; };
|
||||
} {language = cfg.languageSettings;};
|
||||
};
|
||||
})
|
||||
(lib.mkIf cfg.enable {
|
||||
youthlic.programs.helix.languageSettings = lib.pipe defaultLanguagesSettings [
|
||||
(map ({ name, ... }: lib.nameValuePair name { language-servers = [ "typos-lsp" ]; }))
|
||||
(map ({name, ...}: lib.nameValuePair name {language-servers = ["typos-lsp"];}))
|
||||
lib.listToAttrs
|
||||
];
|
||||
})
|
||||
(lib.mkIf cfg.enable {
|
||||
youthlic.programs.helix.languageSettings =
|
||||
lib.recursiveUpdate
|
||||
(lib.pipe defaultLanguagesSettings [
|
||||
(map (lang: lib.nameValuePair lang.name (lib.removeAttrs lang [ "name" ])))
|
||||
lib.listToAttrs
|
||||
])
|
||||
{
|
||||
cmake = {
|
||||
language-servers = [
|
||||
"neocmakelsp"
|
||||
"cmake-language-server"
|
||||
(lib.pipe defaultLanguagesSettings [
|
||||
(map (lang: lib.nameValuePair lang.name (lib.removeAttrs lang ["name"])))
|
||||
lib.listToAttrs
|
||||
])
|
||||
{
|
||||
cmake = {
|
||||
language-servers = [
|
||||
"neocmakelsp"
|
||||
"cmake-language-server"
|
||||
];
|
||||
};
|
||||
kdl = {
|
||||
formatter = {
|
||||
command = "kdlfmt";
|
||||
args = [
|
||||
"format"
|
||||
"-"
|
||||
];
|
||||
};
|
||||
kdl = {
|
||||
formatter = {
|
||||
command = "kdlfmt";
|
||||
args = [
|
||||
"format"
|
||||
"-"
|
||||
];
|
||||
};
|
||||
};
|
||||
just = {
|
||||
formatter = {
|
||||
command = "just";
|
||||
args = [
|
||||
"--dump"
|
||||
];
|
||||
};
|
||||
};
|
||||
nix = {
|
||||
formatter = {
|
||||
command = "nixfmt";
|
||||
};
|
||||
};
|
||||
xml = {
|
||||
formatter = {
|
||||
command = "xmllint";
|
||||
args = [
|
||||
"--format"
|
||||
"-"
|
||||
];
|
||||
};
|
||||
};
|
||||
typst = {
|
||||
formatter = {
|
||||
command = "typstyle";
|
||||
};
|
||||
};
|
||||
c = {
|
||||
formatter = {
|
||||
command = "clang-format";
|
||||
};
|
||||
};
|
||||
cpp = {
|
||||
formatter = {
|
||||
command = "clang-format";
|
||||
};
|
||||
};
|
||||
python = {
|
||||
formatter = {
|
||||
command = "ruff";
|
||||
args = [
|
||||
"format"
|
||||
"-s"
|
||||
"--line-length"
|
||||
"88"
|
||||
"-"
|
||||
];
|
||||
};
|
||||
language-servers = [
|
||||
"pyright"
|
||||
"ruff"
|
||||
"ty"
|
||||
];
|
||||
};
|
||||
go = {
|
||||
formatter = {
|
||||
command = "goimports";
|
||||
};
|
||||
};
|
||||
awk = {
|
||||
formatter = {
|
||||
command = "awk";
|
||||
timeout = 5;
|
||||
args = [
|
||||
"--file=/dev/stdin"
|
||||
"--pretty-print=/dev/stdout"
|
||||
];
|
||||
};
|
||||
};
|
||||
fish = {
|
||||
language-servers = [
|
||||
"fish-lsp"
|
||||
];
|
||||
};
|
||||
yaml = {
|
||||
formatter = {
|
||||
command = "deno";
|
||||
args = [
|
||||
"fmt"
|
||||
"-"
|
||||
"--ext"
|
||||
"yaml"
|
||||
];
|
||||
};
|
||||
};
|
||||
html = {
|
||||
formatter = {
|
||||
command = "deno";
|
||||
args = [
|
||||
"fmt"
|
||||
"-"
|
||||
"--ext"
|
||||
"html"
|
||||
];
|
||||
};
|
||||
language-servers = [
|
||||
"vscode-html-language-server"
|
||||
];
|
||||
};
|
||||
css = {
|
||||
formatter = {
|
||||
command = "deno";
|
||||
args = [
|
||||
"fmt"
|
||||
"-"
|
||||
"--ext"
|
||||
"css"
|
||||
];
|
||||
};
|
||||
language-servers = [
|
||||
"vscode-css-language-server"
|
||||
];
|
||||
};
|
||||
toml = {
|
||||
formatter = {
|
||||
command = "taplo";
|
||||
args = [
|
||||
"fmt"
|
||||
"-"
|
||||
];
|
||||
};
|
||||
};
|
||||
markdown = {
|
||||
formatter = {
|
||||
command = "deno";
|
||||
args = [
|
||||
"fmt"
|
||||
"-"
|
||||
"--ext"
|
||||
"md"
|
||||
];
|
||||
};
|
||||
};
|
||||
json = {
|
||||
language-servers = [
|
||||
"vscode-json-language-server"
|
||||
];
|
||||
formatter = {
|
||||
command = "deno";
|
||||
args = [
|
||||
"fmt"
|
||||
"-"
|
||||
"--ext"
|
||||
"json"
|
||||
];
|
||||
};
|
||||
};
|
||||
jsonc = {
|
||||
language-servers = [
|
||||
"vscode-json-language-server"
|
||||
];
|
||||
formatter = {
|
||||
command = "deno";
|
||||
args = [
|
||||
"fmt"
|
||||
"-"
|
||||
"--ext"
|
||||
"jsonc"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
just = {
|
||||
formatter = {
|
||||
command = "just";
|
||||
args = [
|
||||
"--dump"
|
||||
];
|
||||
};
|
||||
};
|
||||
nix = {
|
||||
formatter = {
|
||||
command = "nixfmt";
|
||||
};
|
||||
};
|
||||
xml = {
|
||||
formatter = {
|
||||
command = "xmllint";
|
||||
args = [
|
||||
"--format"
|
||||
"-"
|
||||
];
|
||||
};
|
||||
};
|
||||
typst = {
|
||||
formatter = {
|
||||
command = "typstyle";
|
||||
};
|
||||
};
|
||||
c = {
|
||||
formatter = {
|
||||
command = "clang-format";
|
||||
};
|
||||
};
|
||||
cpp = {
|
||||
formatter = {
|
||||
command = "clang-format";
|
||||
};
|
||||
};
|
||||
python = {
|
||||
formatter = {
|
||||
command = "ruff";
|
||||
args = [
|
||||
"format"
|
||||
"-s"
|
||||
"--line-length"
|
||||
"88"
|
||||
"-"
|
||||
];
|
||||
};
|
||||
language-servers = [
|
||||
"pyright"
|
||||
"ruff"
|
||||
"ty"
|
||||
];
|
||||
};
|
||||
go = {
|
||||
formatter = {
|
||||
command = "goimports";
|
||||
};
|
||||
};
|
||||
awk = {
|
||||
formatter = {
|
||||
command = "awk";
|
||||
timeout = 5;
|
||||
args = [
|
||||
"--file=/dev/stdin"
|
||||
"--pretty-print=/dev/stdout"
|
||||
];
|
||||
};
|
||||
};
|
||||
fish = {
|
||||
language-servers = [
|
||||
"fish-lsp"
|
||||
];
|
||||
};
|
||||
yaml = {
|
||||
formatter = {
|
||||
command = "deno";
|
||||
args = [
|
||||
"fmt"
|
||||
"-"
|
||||
"--ext"
|
||||
"yaml"
|
||||
];
|
||||
};
|
||||
};
|
||||
html = {
|
||||
formatter = {
|
||||
command = "deno";
|
||||
args = [
|
||||
"fmt"
|
||||
"-"
|
||||
"--ext"
|
||||
"html"
|
||||
];
|
||||
};
|
||||
language-servers = [
|
||||
"vscode-html-language-server"
|
||||
];
|
||||
};
|
||||
css = {
|
||||
formatter = {
|
||||
command = "deno";
|
||||
args = [
|
||||
"fmt"
|
||||
"-"
|
||||
"--ext"
|
||||
"css"
|
||||
];
|
||||
};
|
||||
language-servers = [
|
||||
"vscode-css-language-server"
|
||||
];
|
||||
};
|
||||
toml = {
|
||||
formatter = {
|
||||
command = "taplo";
|
||||
args = [
|
||||
"fmt"
|
||||
"-"
|
||||
];
|
||||
};
|
||||
};
|
||||
markdown = {
|
||||
formatter = {
|
||||
command = "deno";
|
||||
args = [
|
||||
"fmt"
|
||||
"-"
|
||||
"--ext"
|
||||
"md"
|
||||
];
|
||||
};
|
||||
};
|
||||
json = {
|
||||
language-servers = [
|
||||
"vscode-json-language-server"
|
||||
];
|
||||
formatter = {
|
||||
command = "deno";
|
||||
args = [
|
||||
"fmt"
|
||||
"-"
|
||||
"--ext"
|
||||
"json"
|
||||
];
|
||||
};
|
||||
};
|
||||
jsonc = {
|
||||
language-servers = [
|
||||
"vscode-json-language-server"
|
||||
];
|
||||
formatter = {
|
||||
command = "deno";
|
||||
args = [
|
||||
"fmt"
|
||||
"-"
|
||||
"--ext"
|
||||
"jsonc"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,11 +2,9 @@
|
|||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.youthlic.programs.ion;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
youthlic.programs.ion = {
|
||||
enable = lib.mkEnableOption "ion";
|
||||
|
|
|
|||
|
|
@ -3,11 +3,9 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.youthlic.programs.jujutsu;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
youthlic.programs.jujutsu = {
|
||||
enable = lib.mkEnableOption "jujutsu";
|
||||
|
|
|
|||
|
|
@ -2,11 +2,9 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.youthlic.programs.kvm;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
youthlic.programs.kvm = {
|
||||
enable = lib.mkEnableOption "kvm";
|
||||
|
|
@ -16,8 +14,8 @@ in
|
|||
dconf = {
|
||||
settings = {
|
||||
"org/virt-manager/virt-manager/connections" = {
|
||||
autoconnect = [ "qemu:///system" ];
|
||||
uris = [ "qemu:///system" ];
|
||||
autoconnect = ["qemu:///system"];
|
||||
uris = ["qemu:///system"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,22 +3,20 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.youthlic.programs.rustypaste-cli;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
youthlic.programs.rustypaste-cli = {
|
||||
enable = lib.mkEnableOption "rustypaste-cli";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [ pkgs.rustypaste-cli ];
|
||||
home.packages = [pkgs.rustypaste-cli];
|
||||
sops = {
|
||||
secrets = {
|
||||
"rustypaste/auth" = { };
|
||||
"rustypaste/delete" = { };
|
||||
"rustypaste/auth" = {};
|
||||
"rustypaste/delete" = {};
|
||||
};
|
||||
templates."rustypaste-config.toml" = {
|
||||
path = "${config.xdg.configHome}/rustypaste/config.toml";
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@
|
|||
pkgs,
|
||||
rootPath,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
options = {
|
||||
youthlic.programs.sops = {
|
||||
enable = lib.mkOption {
|
||||
|
|
@ -25,14 +24,12 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
config =
|
||||
let
|
||||
cfg = config.youthlic.programs.sops;
|
||||
in
|
||||
config = let
|
||||
cfg = config.youthlic.programs.sops;
|
||||
in
|
||||
lib.mkIf cfg.enable {
|
||||
home.packages = (
|
||||
with pkgs;
|
||||
[
|
||||
with pkgs; [
|
||||
sops
|
||||
age
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.youthlic.programs.spotifyd;
|
||||
in
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.youthlic.programs.spotifyd;
|
||||
in {
|
||||
options = {
|
||||
youthlic.programs.spotifyd = {
|
||||
enable = lib.mkEnableOption "spotifyd";
|
||||
|
|
|
|||
|
|
@ -2,14 +2,12 @@
|
|||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.youthlic.programs.starship;
|
||||
fish-cfg = config.youthlic.programs.fish;
|
||||
bash-cfg = config.youthlic.programs.bash;
|
||||
ion-cfg = config.youthlic.programs.ion;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
youthlic.programs.starship = {
|
||||
enable = lib.mkEnableOption "starship";
|
||||
|
|
@ -20,10 +18,9 @@ in
|
|||
programs.starship = {
|
||||
enable = true;
|
||||
enableTransience = true;
|
||||
settings =
|
||||
let
|
||||
config-file = builtins.readFile ./config.toml;
|
||||
in
|
||||
settings = let
|
||||
config-file = builtins.readFile ./config.toml;
|
||||
in
|
||||
builtins.fromTOML config-file;
|
||||
};
|
||||
})
|
||||
|
|
|
|||
|
|
@ -3,13 +3,11 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.youthlic.programs.yazi;
|
||||
fish-cfg = config.youthlic.programs.fish;
|
||||
bash-cfg = config.youthlic.programs.bash;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
youthlic.programs.yazi = {
|
||||
enable = lib.mkEnableOption "yazi";
|
||||
|
|
@ -23,7 +21,8 @@ in
|
|||
programs.yazi = {
|
||||
enable = true;
|
||||
plugins = {
|
||||
inherit (pkgs.yaziPlugins)
|
||||
inherit
|
||||
(pkgs.yaziPlugins)
|
||||
ouch
|
||||
starship
|
||||
piper
|
||||
|
|
@ -81,7 +80,7 @@ in
|
|||
desc = "Chmod on selected files";
|
||||
}
|
||||
{
|
||||
on = [ "l" ];
|
||||
on = ["l"];
|
||||
run = "plugin smart-enter";
|
||||
desc = "Enter the child directory, or open the file";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,13 +2,11 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.youthlic.programs.zoxide;
|
||||
fish-cfg = config.youthlic.programs.fish;
|
||||
bash-cfg = config.youthlic.programs.bash;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
youthlic.programs.zoxide = {
|
||||
enable = lib.mkEnableOption "zoxide";
|
||||
|
|
|
|||
|
|
@ -2,11 +2,9 @@
|
|||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.youthlic.xdg-dirs;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
youthlic.xdg-dirs = {
|
||||
enable = lib.mkEnableOption "xdg-dirs";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue