editor shit
This commit is contained in:
parent
633a966e52
commit
b11e8347c1
14 changed files with 160 additions and 16 deletions
|
|
@ -10,5 +10,6 @@
|
|||
./internet
|
||||
./sync
|
||||
./terminal
|
||||
./development
|
||||
];
|
||||
}
|
||||
|
|
|
|||
14
home/apps/development/default.nix
Normal file
14
home/apps/development/default.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./emacs.nix
|
||||
./neovim.nix
|
||||
./zed.nix
|
||||
];
|
||||
}
|
||||
20
home/apps/development/emacs.nix
Normal file
20
home/apps/development/emacs.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
osConfig,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
config = {
|
||||
programs = {
|
||||
emacs = {
|
||||
extraConfig = ''
|
||||
(setq standard-indent 2)
|
||||
'';
|
||||
extraPackages = epkgs: [
|
||||
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
20
home/apps/development/emacs.nix~
Normal file
20
home/apps/development/emacs.nix~
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
osConfig,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
config = {
|
||||
programs = {
|
||||
emacs = {
|
||||
extraConfig = ''
|
||||
(setq standard-indent 2)
|
||||
'';
|
||||
extraPackages = epkgs: [
|
||||
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
23
home/apps/development/neovim.nix
Normal file
23
home/apps/development/neovim.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
osConfig,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
config = {
|
||||
programs = {
|
||||
neovim = {
|
||||
plugins =
|
||||
with pkgs.vimPlugins;
|
||||
[
|
||||
telescope-nvim
|
||||
]
|
||||
++ [ ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
23
home/apps/development/zed.nix
Normal file
23
home/apps/development/zed.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
osConfig,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
config = {
|
||||
programs = {
|
||||
zed-editor = {
|
||||
extensions = [
|
||||
"nix"
|
||||
"toml"
|
||||
"rust"
|
||||
"html"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -79,16 +79,16 @@ in
|
|||
SearchEngines = {
|
||||
Default = "kagi";
|
||||
Add = [
|
||||
{
|
||||
Name = "MartyTF's Series of Tubes";
|
||||
URLTemplate = "https://search.marty.tf/?q={searchTerms}";
|
||||
IconURL = "https://wiki.nixos.org/favicon.ico";
|
||||
Alias = "@sgx";
|
||||
}
|
||||
# {
|
||||
# Name = "${osConfig.user.userName}'s Series of Tubes";
|
||||
# URLTemplate = "https://${osConfig.server.misc.searxng.subdomain}.${osConfig.networking.domain}/?q={searchTerms}";
|
||||
# IconURL = "https://docs.searxng.org/_static/searxng-wordmark.svg";
|
||||
# Alias = "@sgx";
|
||||
# }
|
||||
{
|
||||
Name = "kagi";
|
||||
URLTemplate = "https://kagi.com/search?q={searchTerms}";
|
||||
IconURL = "https://kagi.com/asset/597c5c3/kagi_assets/logos/search.png?v=679b1c5d38deac3ff084fc704aa36694454572a2";
|
||||
IconURL = "https://kagi.com/asset/597c5c3/kagi_assets/logos/search.png";
|
||||
Alias = "@k";
|
||||
}
|
||||
];
|
||||
|
|
|
|||
|
|
@ -61,10 +61,11 @@ in
|
|||
|
||||
binds {
|
||||
//Applications
|
||||
${modifier}+${osConfig.keybinds.hotkeys.terminal} hotkey-overlay-title="Open Terminal" { spawn "${osConfig.apps.terminal.binary}";}
|
||||
${modifier}+${osConfig.keybinds.hotkeys.terminal} hotkey-overlay-title="Open Terminal" { spawn "${osConfig.apps.terminal.default}";}
|
||||
${modifier}+${osConfig.keybinds.hotkeys.browser} hotkey-overlay-title="Open Browser" { spawn "${osConfig.apps.internet.browsers.default}";}
|
||||
${modifier}+${osConfig.keybinds.hotkeys.launcher} hotkey-overlay-title="Open Launcher" { spawn-sh "${nsipc} launcher toggle || walker";}
|
||||
${modifier}+Shift+${osConfig.keybinds.hotkeys.editor} hotkey-overlay-title="Open Editor" { spawn "${osConfig.apps.development.editor.default}";}
|
||||
${modifier}+Shift+${osConfig.keybinds.hotkeys.editor} hotkey-overlay-title="Open Editor" { spawn-sh "$EDITOR";}
|
||||
${modifier}+B hotkey-overlay-title="Open Password Manager" { spawn-sh "rbw unlocked || kitty --class kitty-floating -e rbw unlock; selected=$(rbw list | walker -d); wl-copy $(rbw get \"$selected\"); sleep 30; rbw lock";}
|
||||
|
||||
//Window Management
|
||||
${modifier}+Shift+${osConfig.keybinds.hotkeys.close-window} { close-window; }
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
editor = {
|
||||
vscodium.enable = true;
|
||||
emacs.enable = true;
|
||||
default = "codium";
|
||||
default = "nvim";
|
||||
};
|
||||
languages = {
|
||||
python.enable = true;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,9 @@
|
|||
editor = {
|
||||
vscodium.enable = true;
|
||||
emacs.enable = true;
|
||||
default = "codium";
|
||||
neovim.enable = true;
|
||||
zed.enable = false;
|
||||
default = "emacs";
|
||||
};
|
||||
languages = {
|
||||
python.enable = true;
|
||||
|
|
|
|||
|
|
@ -11,8 +11,10 @@
|
|||
editor = {
|
||||
vscodium.enable = lib.mkEnableOption "enable vscodium";
|
||||
emacs.enable = lib.mkEnableOption "enable emacs";
|
||||
neovim.enable = lib.mkEnableOption "enable neovim";
|
||||
zed.enable = lib.mkEnableOption "enable zed";
|
||||
default = lib.mkOption {
|
||||
default = "vscodium";
|
||||
default = "neovim";
|
||||
description = "default editor";
|
||||
};
|
||||
};
|
||||
|
|
@ -24,10 +26,26 @@
|
|||
with pkgs;
|
||||
[
|
||||
nixfmt
|
||||
fd
|
||||
nil
|
||||
nixd
|
||||
]
|
||||
++ (if config.apps.development.editor.vscodium.enable then [ vscodium ] else [ ]);
|
||||
++ (if config.apps.development.editor.vscodium.enable then [ vscodium ] else [ ])
|
||||
++ (if config.apps.development.editor.zed.enable then [ zed-editor ] else [ ]);
|
||||
|
||||
programs = {
|
||||
neovim =
|
||||
if
|
||||
config.apps.development.editor.neovim.enable
|
||||
then
|
||||
{
|
||||
enable = true;
|
||||
defaultEditor = if (config.apps.development.editor.default == "neovim") then true else false;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
}
|
||||
else
|
||||
{ };
|
||||
vscode =
|
||||
if config.apps.development.editor.vscodium.enable then
|
||||
{
|
||||
|
|
|
|||
|
|
@ -16,7 +16,16 @@
|
|||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[
|
||||
nixd
|
||||
nil
|
||||
]
|
||||
++ (if config.apps.development.languages.python.enable then [ virtualenv ] else [ ]);
|
||||
++ (
|
||||
if config.apps.development.languages.python.enable then
|
||||
[
|
||||
virtualenv
|
||||
]
|
||||
else
|
||||
[ ]
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,15 @@
|
|||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[ ]
|
||||
++ (if config.apps.messaging.element.enable then [ element-desktop ] else [ ])
|
||||
++ (
|
||||
if config.apps.messaging.element.enable then
|
||||
[
|
||||
element-desktop
|
||||
fluffychat
|
||||
]
|
||||
else
|
||||
[ ]
|
||||
)
|
||||
++ (if config.apps.messaging.signal.enable then [ signal-desktop ] else [ ]);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,4 +41,9 @@
|
|||
./niri.nix
|
||||
./sway.nix
|
||||
];
|
||||
config = {
|
||||
environment.systemPackages = with pkgs; [
|
||||
wl-clipboard
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue