update nixvim, create disks and fish with home manager
This commit is contained in:
@@ -55,6 +55,7 @@
|
|||||||
./hosts/desktop/configuration.nix
|
./hosts/desktop/configuration.nix
|
||||||
./hosts/desktop/hardware-configuration.nix
|
./hosts/desktop/hardware-configuration.nix
|
||||||
./modules/common.nix
|
./modules/common.nix
|
||||||
|
./modules/desktop/xremap.nix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
gsr-ui.nixosModules.default
|
gsr-ui.nixosModules.default
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,54 +15,11 @@ in
|
|||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
|
./drives.nix
|
||||||
../../modules/scripts.nix
|
../../modules/scripts.nix
|
||||||
../../modules/desktop/xremap.nix
|
|
||||||
../../modules/programs/neovim/neovim.nix
|
../../modules/programs/neovim/neovim.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# DISKS
|
|
||||||
fileSystems."/media/gamedisk4" = {
|
|
||||||
device = "/dev/disk/by-uuid/D290EB87C8A1E82A";
|
|
||||||
fsType = "ntfs3";
|
|
||||||
options = [
|
|
||||||
"uid=1000"
|
|
||||||
"gid=100"
|
|
||||||
"rw"
|
|
||||||
"user"
|
|
||||||
"exec"
|
|
||||||
"umask=000"
|
|
||||||
"nofail"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/media/gamedisk" = {
|
|
||||||
device = "/dev/disk/by-uuid/5C7C14707C1446E4";
|
|
||||||
fsType = "ntfs3";
|
|
||||||
options = [
|
|
||||||
"uid=1000"
|
|
||||||
"gid=100"
|
|
||||||
"rw"
|
|
||||||
"user"
|
|
||||||
"exec"
|
|
||||||
"umask=000"
|
|
||||||
"nofail"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/media/gamedisk2" = {
|
|
||||||
device = "/dev/disk/by-uuid/945A7421DAD8A3CE";
|
|
||||||
fsType = "ntfs3";
|
|
||||||
options = [
|
|
||||||
"uid=1000"
|
|
||||||
"gid=100"
|
|
||||||
"rw"
|
|
||||||
"user"
|
|
||||||
"exec"
|
|
||||||
"umask=000"
|
|
||||||
"nofail"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
nix.settings.experimental-features = [
|
nix.settings.experimental-features = [
|
||||||
"nix-command"
|
"nix-command"
|
||||||
"flakes"
|
"flakes"
|
||||||
@@ -157,24 +114,11 @@ in
|
|||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# environment.loginShellInit = ''
|
# qt = {
|
||||||
# if [ "$(tty)" = "/dev/tty1" ] && [ -z "$WAYLAND_DISPLAY" ]; then
|
# enable = true;
|
||||||
# exec start-hyprland
|
# platformTheme = "qt5ct";
|
||||||
# fi
|
# style = "breeze";
|
||||||
# '';
|
# };
|
||||||
|
|
||||||
# NFS / MPD
|
|
||||||
fileSystems."/media/music" = {
|
|
||||||
device = "192.168.132.149:/media/music";
|
|
||||||
fsType = "nfs4";
|
|
||||||
};
|
|
||||||
boot.supportedFilesystems = [ "nfs4" ];
|
|
||||||
|
|
||||||
qt = {
|
|
||||||
enable = true;
|
|
||||||
platformTheme = "qt5ct";
|
|
||||||
style = "breeze";
|
|
||||||
};
|
|
||||||
|
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
services.gvfs.enable = true;
|
services.gvfs.enable = true;
|
||||||
@@ -182,7 +126,7 @@ in
|
|||||||
services.lact.enable = true;
|
services.lact.enable = true;
|
||||||
services.rsync.enable = true;
|
services.rsync.enable = true;
|
||||||
programs.kdeconnect.enable = true;
|
programs.kdeconnect.enable = true;
|
||||||
programs.neovim.enable = true;
|
# programs.neovim.enable = true;
|
||||||
programs.tmux.enable = true;
|
programs.tmux.enable = true;
|
||||||
programs.bat.enable = true;
|
programs.bat.enable = true;
|
||||||
programs.git = {
|
programs.git = {
|
||||||
@@ -223,6 +167,7 @@ in
|
|||||||
|
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
extraCompatPackages = with pkgs; [ proton-ge-bin ];
|
||||||
package = pkgs.millennium-steam.override {
|
package = pkgs.millennium-steam.override {
|
||||||
extraEnv = {
|
extraEnv = {
|
||||||
LD_AUDIT = "${sls-steam.packages.${pkgs.stdenv.hostPlatform.system}.sls-steam}/library-inject.so:${
|
LD_AUDIT = "${sls-steam.packages.${pkgs.stdenv.hostPlatform.system}.sls-steam}/library-inject.so:${
|
||||||
|
|||||||
@@ -0,0 +1,67 @@
|
|||||||
|
{
|
||||||
|
boot.supportedFilesystems = [
|
||||||
|
"ntfs"
|
||||||
|
"nfs4"
|
||||||
|
];
|
||||||
|
|
||||||
|
fileSystems."/media/music" = {
|
||||||
|
device = "192.168.132.149:/media/music";
|
||||||
|
fsType = "nfs4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/media/gamedisk" = {
|
||||||
|
device = "/dev/disk/by-uuid/5C7C14707C1446E4";
|
||||||
|
fsType = "ntfs-3g";
|
||||||
|
options = [
|
||||||
|
"uid=1000"
|
||||||
|
"gid=100"
|
||||||
|
"rw"
|
||||||
|
"user"
|
||||||
|
"exec"
|
||||||
|
"umask=000"
|
||||||
|
"nofail"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/media/gamedisk2" = {
|
||||||
|
device = "/dev/disk/by-uuid/945A7421DAD8A3CE";
|
||||||
|
fsType = "ntfs-3g";
|
||||||
|
options = [
|
||||||
|
"uid=1000"
|
||||||
|
"gid=100"
|
||||||
|
"rw"
|
||||||
|
"user"
|
||||||
|
"exec"
|
||||||
|
"umask=000"
|
||||||
|
"nofail"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/media/gamedisk3" = {
|
||||||
|
device = "/dev/disk/by-uuid/420E457E60DE3935";
|
||||||
|
fsType = "ntfs-3g";
|
||||||
|
options = [
|
||||||
|
"uid=1000"
|
||||||
|
"gid=100"
|
||||||
|
"rw"
|
||||||
|
"user"
|
||||||
|
"exec"
|
||||||
|
"umask=000"
|
||||||
|
"nofail"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/media/gamedisk4" = {
|
||||||
|
device = "/dev/disk/by-uuid/D290EB87C8A1E82A";
|
||||||
|
fsType = "ntfs-3g";
|
||||||
|
options = [
|
||||||
|
"uid=1000"
|
||||||
|
"gid=100"
|
||||||
|
"rw"
|
||||||
|
"user"
|
||||||
|
"exec"
|
||||||
|
"umask=000"
|
||||||
|
"nofail"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -38,12 +38,6 @@
|
|||||||
"dmask=0077"
|
"dmask=0077"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/media/gamedisk4" = {
|
|
||||||
device = "/dev/disk/by-uuid/D290EB87C8A1E82A";
|
|
||||||
fsType = "ntfs3";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/media/music" = {
|
fileSystems."/media/music" = {
|
||||||
device = "192.168.132.149:/media/music";
|
device = "192.168.132.149:/media/music";
|
||||||
fsType = "nfs4";
|
fsType = "nfs4";
|
||||||
@@ -54,11 +48,6 @@
|
|||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/media/gamedisk" = {
|
|
||||||
device = "/dev/disk/by-uuid/5C7C14707C1446E4";
|
|
||||||
fsType = "ntfs3";
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
{ device = "/dev/disk/by-uuid/5949c73f-30eb-4956-9e93-70301c88fad8"; }
|
{ device = "/dev/disk/by-uuid/5949c73f-30eb-4956-9e93-70301c88fad8"; }
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
programs.fish = {
|
||||||
|
enable = true;
|
||||||
|
interactiveShellInit = ''
|
||||||
|
nitch
|
||||||
|
set -g fish_key_bindings fish_hybrid_key_bindings
|
||||||
|
set fish_greeting
|
||||||
|
'';
|
||||||
|
shellAliases = {
|
||||||
|
ls = "eza -al --no-time --no-user --no-permissions --no-filesize";
|
||||||
|
ll = "eza -la";
|
||||||
|
cat = "bat";
|
||||||
|
cd = "z";
|
||||||
|
cp = "cp -v";
|
||||||
|
ff = "fastfetch";
|
||||||
|
grep = "grep -i";
|
||||||
|
hyprland = "start-hyprland";
|
||||||
|
mv = "mv -v";
|
||||||
|
n = "nvim";
|
||||||
|
py = "uv run";
|
||||||
|
r = "rsync -avh --info=progress2";
|
||||||
|
rm = "gomi";
|
||||||
|
ssh = "kitty +kitten ssh";
|
||||||
|
nd = "nix develop";
|
||||||
|
df = "df -h -x tmpfs -x devtmpfs -x squashfs -x overlay -x efivarfs";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -8,6 +8,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./mpd.nix
|
./mpd.nix
|
||||||
./programs.nix
|
./programs.nix
|
||||||
|
./fish.nix
|
||||||
zen-browser.homeModules.beta
|
zen-browser.homeModules.beta
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -25,6 +26,7 @@
|
|||||||
xdg.mimeApps = {
|
xdg.mimeApps = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultApplications = {
|
defaultApplications = {
|
||||||
|
"application/zip" = [ "org.gnome.FileRoller.desktop" ];
|
||||||
"inode/directory" = [ "nemo.desktop" ];
|
"inode/directory" = [ "nemo.desktop" ];
|
||||||
"image/*" = [ "imv-dir.desktop" ];
|
"image/*" = [ "imv-dir.desktop" ];
|
||||||
"image/gif" = [ "imv-dir.desktop" ];
|
"image/gif" = [ "imv-dir.desktop" ];
|
||||||
@@ -105,33 +107,6 @@
|
|||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.fish = {
|
|
||||||
enable = true;
|
|
||||||
interactiveShellInit = ''
|
|
||||||
nitch
|
|
||||||
set -g fish_key_bindings fish_hybrid_key_bindings
|
|
||||||
set fish_greeting
|
|
||||||
'';
|
|
||||||
shellAliases = {
|
|
||||||
ls = "eza -al --no-time --no-user --no-permissions --no-filesize";
|
|
||||||
ll = "eza -la";
|
|
||||||
cat = "bat";
|
|
||||||
cd = "z";
|
|
||||||
cp = "cp -v";
|
|
||||||
ff = "fastfetch";
|
|
||||||
grep = "grep -i";
|
|
||||||
hyprland = "start-hyprland";
|
|
||||||
mv = "mv -v";
|
|
||||||
n = "nvim";
|
|
||||||
py = "uv run";
|
|
||||||
r = "rsync -avh --info=progress2";
|
|
||||||
rm = "gomi";
|
|
||||||
ssh = "kitty +kitten ssh";
|
|
||||||
nd = "nix develop";
|
|
||||||
df = "df -h -x tmpfs -x devtmpfs -x squashfs -x overlay -x efivarfs";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home.file.".local/share/Steam/steam.cfg".text = ''
|
home.file.".local/share/Steam/steam.cfg".text = ''
|
||||||
BootStrapperInhibitAll=enable
|
BootStrapperInhibitAll=enable
|
||||||
BootStrapperForceSelfUpdate=disable
|
BootStrapperForceSelfUpdate=disable
|
||||||
|
|||||||
@@ -37,6 +37,7 @@
|
|||||||
programs.mpv.enable = true;
|
programs.mpv.enable = true;
|
||||||
programs.imv.enable = true;
|
programs.imv.enable = true;
|
||||||
programs.aria2.enable = true;
|
programs.aria2.enable = true;
|
||||||
|
programs.ripgrep.enable = true;
|
||||||
|
|
||||||
programs.pywal = {
|
programs.pywal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -30,7 +30,6 @@
|
|||||||
spek
|
spek
|
||||||
ffmpeg
|
ffmpeg
|
||||||
# wine
|
# wine
|
||||||
ripgrep
|
|
||||||
nemo-with-extensions
|
nemo-with-extensions
|
||||||
papirus-icon-theme
|
papirus-icon-theme
|
||||||
rust-analyzer
|
rust-analyzer
|
||||||
@@ -61,6 +60,9 @@
|
|||||||
stow
|
stow
|
||||||
bluetui
|
bluetui
|
||||||
file-roller
|
file-roller
|
||||||
|
signal-desktop
|
||||||
|
file
|
||||||
|
ntfs3g
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
|
|||||||
@@ -30,6 +30,51 @@
|
|||||||
action = "<cmd>BufferLineCyclePrev<CR>";
|
action = "<cmd>BufferLineCyclePrev<CR>";
|
||||||
key = "<S-tab>";
|
key = "<S-tab>";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
mode = [ "x" ];
|
||||||
|
action = "<gv";
|
||||||
|
key = "<";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = [ "x" ];
|
||||||
|
action = ">gv";
|
||||||
|
key = ">";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = [ "n" ];
|
||||||
|
action = ''"_d'';
|
||||||
|
key = "d";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = [ "n" ];
|
||||||
|
action = ''"_dd'';
|
||||||
|
key = "dd";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = [ "v" ];
|
||||||
|
action = ''"_d'';
|
||||||
|
key = "d";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = [ "v" ];
|
||||||
|
action = ''"_p'';
|
||||||
|
key = "p";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = [ "n" ];
|
||||||
|
action = "<cmd>Telescope live_grep<CR>";
|
||||||
|
key = "<leader>rg";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = [ "n" ];
|
||||||
|
action = "<cmd>Telescope find_files<CR>";
|
||||||
|
key = "<leader>ff";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = [ "n" ];
|
||||||
|
action = "<cmd>:lua vim.diagnostic.open_float<CR>";
|
||||||
|
key = "<leader>k";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
enable = false;
|
enable = true;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
|
|
||||||
clipboard.register = "unnamedplus";
|
clipboard.register = "unnamedplus";
|
||||||
@@ -26,50 +26,18 @@
|
|||||||
tabstop = 2;
|
tabstop = 2;
|
||||||
softtabstop = 2;
|
softtabstop = 2;
|
||||||
|
|
||||||
|
showmode = false;
|
||||||
|
|
||||||
fillchars.eob = " ";
|
fillchars.eob = " ";
|
||||||
ignorecase = true;
|
ignorecase = true;
|
||||||
smartcase = true;
|
smartcase = true;
|
||||||
mouse = "a";
|
mouse = "a";
|
||||||
};
|
};
|
||||||
|
|
||||||
# colorschemes.nightfox = {
|
extraPlugins = with pkgs.vimPlugins; [
|
||||||
# enable = true;
|
boole-nvim
|
||||||
# settings = {
|
tokyodark-nvim
|
||||||
# # style = "moon";
|
];
|
||||||
# flavor = "carbonfox";
|
|
||||||
# options.transparent = true;
|
|
||||||
# styles = {
|
|
||||||
# sidebars = "transparent";
|
|
||||||
# floats = "transparent";
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
|
|
||||||
colorschemes.base16 = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
base00 = "11121d";
|
|
||||||
base01 = "282934";
|
|
||||||
base02 = "353747"; # slightly lighter than base01 (or reuse 282934)
|
|
||||||
base03 = "565b6b"; # comment color; you'll probably want to tweak this
|
|
||||||
base04 = "abb2bf";
|
|
||||||
base05 = "abb2bf";
|
|
||||||
base06 = "b2b9c6";
|
|
||||||
base07 = "ffffff";
|
|
||||||
|
|
||||||
base08 = "ee6d85";
|
|
||||||
base09 = "f3627a";
|
|
||||||
base0A = "dfae67";
|
|
||||||
base0B = "95c561";
|
|
||||||
base0C = "a485dd"; # no cyan in your palette, so purple works
|
|
||||||
base0D = "7199ee";
|
|
||||||
base0E = "a485dd";
|
|
||||||
base0F = "f3627a";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
extraPlugins = [ pkgs.vimPlugins.boole-nvim ];
|
|
||||||
extraConfigLua = ''
|
extraConfigLua = ''
|
||||||
require('boole').setup({
|
require('boole').setup({
|
||||||
mappings = {
|
mappings = {
|
||||||
@@ -81,6 +49,21 @@
|
|||||||
{'true', 'false'}
|
{'true', 'false'}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
require('tokyodark').setup({
|
||||||
|
gamma = 0.9,
|
||||||
|
transparent_background = true,
|
||||||
|
terminal_colors = false,
|
||||||
|
custom_highlights = function(_, palette)
|
||||||
|
return {
|
||||||
|
["@variable"] = {
|
||||||
|
fg = "#A0A8CD",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.cmd.colorscheme("tokyodark")
|
||||||
'';
|
'';
|
||||||
|
|
||||||
plugins = {
|
plugins = {
|
||||||
@@ -91,7 +74,19 @@
|
|||||||
options = {
|
options = {
|
||||||
show_buffer_close_icons = false;
|
show_buffer_close_icons = false;
|
||||||
show_close_icon = false;
|
show_close_icon = false;
|
||||||
|
themable = true;
|
||||||
|
separator_style = "thin";
|
||||||
|
indicator.style = "none";
|
||||||
|
always_show_bufferline = false;
|
||||||
|
color_icons = true;
|
||||||
|
show_buffer_icons = true;
|
||||||
};
|
};
|
||||||
|
# highlights = {
|
||||||
|
# fill.bg = "NONE";
|
||||||
|
# separator.fg = "NONE";
|
||||||
|
# separator_selected.fg = "NONE";
|
||||||
|
# separator_visible.fg = "NONE";
|
||||||
|
# };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
yazi.enable = true;
|
yazi.enable = true;
|
||||||
@@ -128,38 +123,12 @@
|
|||||||
};
|
};
|
||||||
persisted.enable = true;
|
persisted.enable = true;
|
||||||
render-markdown.enable = true;
|
render-markdown.enable = true;
|
||||||
transparent = {
|
oil = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoLoad = true;
|
|
||||||
settings = {
|
settings = {
|
||||||
groups = [
|
view_options = {
|
||||||
"Normal"
|
show_hidden = true;
|
||||||
"NormalNC"
|
};
|
||||||
"Comment"
|
|
||||||
"Constant"
|
|
||||||
"Special"
|
|
||||||
"Identifier"
|
|
||||||
"Statement"
|
|
||||||
"PreProc"
|
|
||||||
"Type"
|
|
||||||
"Underlined"
|
|
||||||
"Todo"
|
|
||||||
"String"
|
|
||||||
"Function"
|
|
||||||
"Conditional"
|
|
||||||
"Repeat"
|
|
||||||
"Operator"
|
|
||||||
"Structure"
|
|
||||||
"LineNr"
|
|
||||||
"NonText"
|
|
||||||
"SignColumn"
|
|
||||||
"CursorLine"
|
|
||||||
"CursorLineNr"
|
|
||||||
"StatusLine"
|
|
||||||
"StatusLineNC"
|
|
||||||
"EndOfBuffer"
|
|
||||||
];
|
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user