Setup Docker, moved VMWare setup to virt.nix, added Yubico Authenticator and enabled pcscd service, added KDE Filelight, attempt to install and theme Bat and install and configure Yazi Fish function, and other things I don't remember regarding home/modules/misc.nix and home/modules/nvimPlugins/other.lua

This commit is contained in:
uzy lol 2024-12-20 15:23:09 -08:00
parent 75552fd1c0
commit 3d67b0862d
10 changed files with 2116 additions and 12 deletions

File diff suppressed because it is too large Load Diff

View File

@ -18,5 +18,7 @@
galaxy-buds-client galaxy-buds-client
fastfetch fastfetch
yubioath-flutter
]; ];
} }

View File

@ -12,7 +12,7 @@ vim.o.termguicolors = true
require("Comment").setup() require("Comment").setup()
local builtin = require('telescope.builtin') local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>ff', builtin.find_files, { desc = 'Telescope find files' }) vim.keymap.set('n', '<leader> ', builtin.find_files, { desc = 'Telescope find files' })
vim.keymap.set('n', '<leader>fg', builtin.live_grep, { desc = 'Telescope live grep' }) vim.keymap.set('n', '<leader>/', builtin.live_grep, { desc = 'Telescope live grep' })
vim.keymap.set('n', '<leader>fb', builtin.buffers, { desc = 'Telescope buffers' }) vim.keymap.set('n', '<leader>fb', builtin.buffers, { desc = 'Telescope buffers' })
vim.keymap.set('n', '<leader>fh', builtin.help_tags, { desc = 'Telescope help tags' }) vim.keymap.set('n', '<leader>fh', builtin.help_tags, { desc = 'Telescope help tags' })

View File

@ -12,6 +12,16 @@
functions = { functions = {
gitignore = "touch .gitignore && curl -sL https://www.gitignore.io/api/$argv >> .gitignore"; gitignore = "touch .gitignore && curl -sL https://www.gitignore.io/api/$argv >> .gitignore";
finit = "nix flake init --template \"https://flakehub.com/f/the-nix-way/dev-templates/*#$argv\""; finit = "nix flake init --template \"https://flakehub.com/f/the-nix-way/dev-templates/*#$argv\"";
y = ''
function y
set tmp (mktemp -t "yazi-cwd.XXXXXX")
yazi $argv --cwd-file="$tmp"
if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
builtin cd -- "$cwd"
end
rm -f -- "$tmp"
end
'';
}; };
generateCompletions = true; generateCompletions = true;
@ -72,6 +82,23 @@
nix-direnv.enable = true; nix-direnv.enable = true;
}; };
programs.yazi = {
enable = true;
enableFishIntegration = true;
};
programs.bat = {
enable = true;
enableFishIntegration = true;
themes = {
catppuccin = {
src = builtins.readFile ./batThemes/CatppuccinMocha.tmTheme;
file = "CatppuccinMocha.tmTheme";
};
};
};
# Enable powershell # Enable powershell
home.packages = with pkgs; [ home.packages = with pkgs; [
powershell powershell

View File

@ -17,9 +17,9 @@
./miscNixStuff.nix ./miscNixStuff.nix
./nerdFonts.nix ./nerdFonts.nix
./nixos-cli.nix ./nixos-cli.nix
./vmware.nix
./lanzaboote.nix ./lanzaboote.nix
./gaming.nix ./gaming.nix
./printing.nix ./printing.nix
./yubikey.nix
]; ];
} }

View File

@ -17,5 +17,6 @@
kdePackages.qtmultimedia kdePackages.qtmultimedia
plasmusic-toolbar plasmusic-toolbar
plasma-browser-integration plasma-browser-integration
kdePackages.filelight
]; ];
} }

View File

@ -2,6 +2,6 @@
users.users.uzair = { users.users.uzair = {
isNormalUser = true; isNormalUser = true;
description = "Uzair Mohammed"; description = "Uzair Mohammed";
extraGroups = ["networkmanager" "wheel"]; extraGroups = ["networkmanager" "wheel" "docker" ];
}; };
} }

View File

@ -5,4 +5,24 @@
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true; programs.virt-manager.enable = true;
# VMWare
environment.systemPackages = with pkgs; [
vmware-workstation
];
virtualisation.vmware.host.enable = true;
# Docker
virtualisation.docker = {
enable = true;
rootless = {
enable = true;
setSocketVariable = true;
};
daemon.settings = {
data-root = "/home/uzair/DockerData";
};
};
} }

View File

@ -1,8 +0,0 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
vmware-workstation
];
virtualisation.vmware.host.enable = true;
}

View File

@ -0,0 +1,3 @@
{
services.pcscd.enable = true;
}