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
|
./internet
|
||||||
./sync
|
./sync
|
||||||
./terminal
|
./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 = {
|
SearchEngines = {
|
||||||
Default = "kagi";
|
Default = "kagi";
|
||||||
Add = [
|
Add = [
|
||||||
{
|
# {
|
||||||
Name = "MartyTF's Series of Tubes";
|
# Name = "${osConfig.user.userName}'s Series of Tubes";
|
||||||
URLTemplate = "https://search.marty.tf/?q={searchTerms}";
|
# URLTemplate = "https://${osConfig.server.misc.searxng.subdomain}.${osConfig.networking.domain}/?q={searchTerms}";
|
||||||
IconURL = "https://wiki.nixos.org/favicon.ico";
|
# IconURL = "https://docs.searxng.org/_static/searxng-wordmark.svg";
|
||||||
Alias = "@sgx";
|
# Alias = "@sgx";
|
||||||
}
|
# }
|
||||||
{
|
{
|
||||||
Name = "kagi";
|
Name = "kagi";
|
||||||
URLTemplate = "https://kagi.com/search?q={searchTerms}";
|
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";
|
Alias = "@k";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ in
|
||||||
accel-profile "flat"
|
accel-profile "flat"
|
||||||
accel-speed 0.0
|
accel-speed 0.0
|
||||||
scroll-method "two-finger"
|
scroll-method "two-finger"
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
mouse {
|
mouse {
|
||||||
|
|
@ -61,10 +61,11 @@ in
|
||||||
|
|
||||||
binds {
|
binds {
|
||||||
//Applications
|
//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.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}+${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
|
//Window Management
|
||||||
${modifier}+Shift+${osConfig.keybinds.hotkeys.close-window} { close-window; }
|
${modifier}+Shift+${osConfig.keybinds.hotkeys.close-window} { close-window; }
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
editor = {
|
editor = {
|
||||||
vscodium.enable = true;
|
vscodium.enable = true;
|
||||||
emacs.enable = true;
|
emacs.enable = true;
|
||||||
default = "codium";
|
default = "nvim";
|
||||||
};
|
};
|
||||||
languages = {
|
languages = {
|
||||||
python.enable = true;
|
python.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,9 @@
|
||||||
editor = {
|
editor = {
|
||||||
vscodium.enable = true;
|
vscodium.enable = true;
|
||||||
emacs.enable = true;
|
emacs.enable = true;
|
||||||
default = "codium";
|
neovim.enable = true;
|
||||||
|
zed.enable = false;
|
||||||
|
default = "emacs";
|
||||||
};
|
};
|
||||||
languages = {
|
languages = {
|
||||||
python.enable = true;
|
python.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,10 @@
|
||||||
editor = {
|
editor = {
|
||||||
vscodium.enable = lib.mkEnableOption "enable vscodium";
|
vscodium.enable = lib.mkEnableOption "enable vscodium";
|
||||||
emacs.enable = lib.mkEnableOption "enable emacs";
|
emacs.enable = lib.mkEnableOption "enable emacs";
|
||||||
|
neovim.enable = lib.mkEnableOption "enable neovim";
|
||||||
|
zed.enable = lib.mkEnableOption "enable zed";
|
||||||
default = lib.mkOption {
|
default = lib.mkOption {
|
||||||
default = "vscodium";
|
default = "neovim";
|
||||||
description = "default editor";
|
description = "default editor";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -24,10 +26,26 @@
|
||||||
with pkgs;
|
with pkgs;
|
||||||
[
|
[
|
||||||
nixfmt
|
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 = {
|
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 =
|
vscode =
|
||||||
if config.apps.development.editor.vscodium.enable then
|
if config.apps.development.editor.vscodium.enable then
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,16 @@
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
with pkgs;
|
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 =
|
environment.systemPackages =
|
||||||
with pkgs;
|
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 [ ]);
|
++ (if config.apps.messaging.signal.enable then [ signal-desktop ] else [ ]);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,4 +41,9 @@
|
||||||
./niri.nix
|
./niri.nix
|
||||||
./sway.nix
|
./sway.nix
|
||||||
];
|
];
|
||||||
|
config = {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
wl-clipboard
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue