various changes
This commit is contained in:
parent
50a59333e6
commit
6a2f63e71e
24 changed files with 90 additions and 279 deletions
|
|
@ -27,6 +27,6 @@
|
|||
services.gpg-agent = {
|
||||
enable = true;
|
||||
enableSshSupport = true;
|
||||
pinentryFlavor = "curses";
|
||||
pinentryFlavor = "tty";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
[
|
||||
./dev.nix
|
||||
./alacritty
|
||||
#./nvim
|
||||
./nvim
|
||||
./shell
|
||||
./git
|
||||
./2fa
|
||||
./direnv
|
||||
./xdg
|
||||
]
|
||||
|
|
|
|||
|
|
@ -6,5 +6,10 @@
|
|||
k9s
|
||||
kubectl
|
||||
python3
|
||||
p7zip
|
||||
nodejs
|
||||
nodePackages.pnpm
|
||||
gnumake
|
||||
gcc
|
||||
];
|
||||
}
|
||||
|
|
|
|||
8
modules/programs/direnv/default.nix
Executable file
8
modules/programs/direnv/default.nix
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,44 +1,6 @@
|
|||
{ pkgs, ...}:
|
||||
{
|
||||
xdg.configFile.nvim = {
|
||||
source = ../../../config/nvim;
|
||||
recursive = true;
|
||||
};
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
vimAlias = true;
|
||||
vimdiffAlias = true;
|
||||
extraConfig = ":luafile ~/.config/nvim/lua/init.lua";
|
||||
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
vim-commentary
|
||||
vim-surround
|
||||
toggleterm-nvim
|
||||
targets-vim
|
||||
indent-blankline-nvim
|
||||
vim-go
|
||||
vim-nix
|
||||
(nvim-treesitter.withPlugins
|
||||
(
|
||||
plugins: with plugins; [
|
||||
tree-sitter-bash
|
||||
tree-sitter-c
|
||||
tree-sitter-dockerfile
|
||||
tree-sitter-go
|
||||
tree-sitter-javascript
|
||||
tree-sitter-json
|
||||
tree-sitter-lua
|
||||
tree-sitter-nix
|
||||
tree-sitter-php
|
||||
tree-sitter-python
|
||||
tree-sitter-yaml
|
||||
]
|
||||
)
|
||||
)
|
||||
nvim-treesitter-textobjects
|
||||
leap-nvim
|
||||
telescope-nvim
|
||||
];
|
||||
};
|
||||
}
|
||||
home.packages = with pkgs; [
|
||||
full
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
sus = "systemctl suspend";
|
||||
hms = "home-manager switch --flake $NIX_FLAKE#${host.username}";
|
||||
rbs = "sudo nixos-rebuild switch --flake $NIX_FLAKE#${host.hostName}";
|
||||
nvim-dev = "nix run ~/dev/nvim.nix";
|
||||
};
|
||||
shellOptions = [
|
||||
"cmdhist"
|
||||
|
|
|
|||
41
modules/programs/xdg/default.nix
Executable file
41
modules/programs/xdg/default.nix
Executable file
|
|
@ -0,0 +1,41 @@
|
|||
{pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
xdg-utils
|
||||
];
|
||||
xdg.mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"x-scheme-handler/http" = "io.gitlab.librewolf-community.desktop";
|
||||
"x-scheme-handler/https" = "io.gitlab.librewolf-community.desktop";
|
||||
"x-scheme-handler/chrome" = "io.gitlab.librewolf-community.desktop";
|
||||
"video/mp4" = "io.gitlab.librewolf-community.desktop";
|
||||
"video/mkv" = "io.gitlab.librewolf-community.desktop";
|
||||
"image/jpeg" = "io.gitlab.librewolf-community.desktop";
|
||||
"image/jpg" = "io.gitlab.librewolf-community.desktop";
|
||||
"image/png" = "io.gitlab.librewolf-community.desktop";
|
||||
"application/epub" = "io.gitlab.librewolf-community.desktop";
|
||||
"application/pdf" = "io.gitlab.librewolf-community.desktop";
|
||||
"application/x-extension-htm" = "io.gitlab.librewolf-community.desktop";
|
||||
"application/x-extension-html" = "io.gitlab.librewolf-community.desktop";
|
||||
"application/x-extension-shtml" = "io.gitlab.librewolf-community.desktop";
|
||||
"application/xhtml+xml" = "io.gitlab.librewolf-community.desktop";
|
||||
"application/x-extension-xhtml" = "io.gitlab.librewolf-community.desktop";
|
||||
"application/x-extension-xht" = "io.gitlab.librewolf-community.desktop";
|
||||
"x-scheme-handler/about" = "io.gitlab.librewolf-community.desktop";
|
||||
"x-scheme-handler/unknown" = "io.gitlab.librewolf-community.desktop";
|
||||
};
|
||||
associations.added = {
|
||||
"x-scheme-handler/http" = "io.gitlab.librewolf-community.desktop";
|
||||
"x-scheme-handler/https" = "io.gitlab.librewolf-community.desktop";
|
||||
"x-scheme-handler/chrome" = "io.gitlab.librewolf-community.desktop";
|
||||
"text/html" = "io.gitlab.librewolf-community.desktop;";
|
||||
"application/x-extension-htm" = "io.gitlab.librewolf-community.desktop;";
|
||||
"application/x-extension-html" = "io.gitlab.librewolf-community.desktop;";
|
||||
"application/x-extension-shtml" = "io.gitlab.librewolf-community.desktop;";
|
||||
"application/xhtml+xml" = "io.gitlab.librewolf-community.desktop;";
|
||||
"application/x-extension-xhtml" = "io.gitlab.librewolf-community.desktop;";
|
||||
"application/x-extension-xht" = "io.gitlab.librewolf-community.desktop;";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -202,7 +202,7 @@
|
|||
];
|
||||
timeouts = [
|
||||
{ timeout = 600; command = "${pkgs.swaylock}/bin/swaylock";}
|
||||
{ timeout = 1200; command = "${pkgs.sway}/bin/swaymsg \"output * toggle\"";}
|
||||
{ timeout = 600; command = "${pkgs.sway}/bin/swaymsg \"output * toggle\"";}
|
||||
];
|
||||
};
|
||||
services.kanshi = {
|
||||
|
|
@ -218,7 +218,7 @@
|
|||
dock = {
|
||||
outputs = [
|
||||
{
|
||||
criteria = "DP-4";
|
||||
criteria = "HDMI-A-1";
|
||||
status = "enable";
|
||||
mode = "1920x1080@60Hz";
|
||||
position = "0,0";
|
||||
|
|
@ -229,11 +229,11 @@
|
|||
outputs = [
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
status = "enable";
|
||||
status = "disable";
|
||||
position = "0,1080";
|
||||
}
|
||||
{
|
||||
criteria = "DP-4";
|
||||
criteria = "HDMI-A-1";
|
||||
status = "enable";
|
||||
mode = "1920x1080@60Hz";
|
||||
position = "0,0";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue