Compare commits

..

5 commits

Author SHA1 Message Date
7eac8ad443
Pan@Onizuka, enable catppuccin for neovim 2025-05-22 09:29:35 -07:00
f6e1ff3986
Neovim, <leader>d to peak diagnostics
this helps me see longer diagnostics, and also fixes a weird terminal
display error when proxy remoting to Onizuka
2025-05-22 09:29:35 -07:00
bec3d840cb
Neovim, remove default rust lint enforcement
I'm sorry to say but I use 2 spaces instead of 4, and I prefer a line
width of 80, not 100. For that reason I'm disabling rust linting if the
language is enabled.
2025-05-22 09:29:35 -07:00
2cde55691b
Fish, add nix-your-shell to fish 2025-05-22 09:29:35 -07:00
f5962d1d27
Niri, Hypr, Flake Bump, tuigreet, init niri
Sets up a config for Niri which involved both the host and user config
settings. It's a semi basic set up to be improved on further later.

This also needs to bump flake so that niri can be added to the flake
update. I don't know what the flake bump date was at this point, so I'll
have to bump it again soon.

This needs to break apart the "waylandcompositors" service to allow niri
and hypr to better fit the directory structure. Otherwise Hypr is
unchanged.

need to update the tuigreet default WM based on the currently selected
one. Currently prioritizes Hyprland > Niri because I didn't want to
write assert code...
2025-05-22 09:27:37 -07:00
6 changed files with 24 additions and 7 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, ... }: { config, lib, pkgs, ... }:
let let
functionModule = with lib.types; submodule { functionModule = with lib.types; submodule {
options = { options = {
@ -21,6 +21,9 @@ in {
config = lib.mkIf config.fish.enable { config = lib.mkIf config.fish.enable {
programs.fish = { programs.fish = {
enable = true; enable = true;
interactiveShellInit = ''
${pkgs.nix-your-shell}/bin/nix-your-shell fish | source
'';
functions = { functions = {
fish_greeting = ""; fish_greeting = "";
fish_prompt = '' fish_prompt = ''

View file

@ -105,9 +105,15 @@
]); ]);
rust-pkg = lopts cfgl.rust.enable (with pkgs.vimPlugins; [ rust-pkg = lopts cfgl.rust.enable (with pkgs.vimPlugins; [
rustaceanvim {
plugin = rustaceanvim;
type = "lua";
config = ''
vim.g.rust_recommended_style = 0
'';
}
]); ]);
go-pkg = lopts cfgl.go.enable (with pkgs.vimPlugins; [ go-pkg = lopts cfgl.go.enable (with pkgs.vimPlugins; [
go-nvim go-nvim
]); ]);

View file

@ -33,6 +33,9 @@ vim.opt.backup = false
vim.opt.undofile = true vim.opt.undofile = true
vim.opt.undodir = '/home/pan/.config/nvim/undodir' vim.opt.undodir = '/home/pan/.config/nvim/undodir'
-- Error viewing
vim.keymap.set('n', '<Leader>d', function() vim.diagnostic.open_float() end)
-- Easy copy and pasting to external programs -- Easy copy and pasting to external programs
-- map <C-y> "+yy -- map <C-y> "+yy
-- map <C-p> "+P -- map <C-p> "+P

View file

@ -15,7 +15,7 @@
sshd.enable = true; sshd.enable = true;
tuigreet.enable = true; tuigreet.enable = true;
hyprland.enable = true; niri.enable = true;
steam.enable = true; steam.enable = true;
steam.gamemode = true; steam.gamemode = true;

View file

@ -72,6 +72,7 @@
treesitter.enable = true; treesitter.enable = true;
wiki.enable = true; wiki.enable = true;
}; };
neovim.themes.catppuccin.enable = true;
lf.enable = true; lf.enable = true;
lf.hiddenfiles = [ lf.hiddenfiles = [

View file

@ -6,15 +6,19 @@
}; };
config = lib.mkIf config.tuigreet.enable { config = lib.mkIf config.tuigreet.enable {
services.greetd = { services.greetd = let
wm =
if config.hyprland.enable then "Hyprland"
else (if config.niri.enable then "niri" else null);
in {
enable = true; enable = true;
package = pkgs.greetd.tuigreet; package = pkgs.greetd.tuigreet;
settings = { settings = {
terminal = { terminal = {
vt = 2; vt = 2;
}; };
default_session = lib.mkIf config.hyprland.enable { default_session = lib.mkIf (wm != null) {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland"; command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd ${wm}";
user = "greeter"; user = "greeter";
}; };
}; };