diff --git a/home-manager/home.nix b/home-manager/home.nix index b2b4889..b5dd656 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -9,8 +9,7 @@ home.stateVersion = "23.11"; # Imports - imports = - [ + imports = [ ./modules/gpg.nix ./modules/btop.nix ./modules/mpv.nix @@ -21,13 +20,13 @@ ./modules/shell.nix ./modules/nvim.nix ./modules/restic.nix -# ./modules/theming.nix Not needed when using plasma + # ./modules/theming.nix Not needed when using plasma ./modules/plasma.nix ./modules/alacritty.nix ./modules/newsboat.nix + ./modules/helix.nix ]; - # My packages home.packages = with pkgs; [ librewolf # Nice privacy browser @@ -56,11 +55,7 @@ heroic # Epic games/gog game launcher protonvpn-gui # Proton vpn gui app (nerdfonts.override { fonts = [ "CascadiaCode" ]; }) # Best font - (retroarch.override { - cores = with libretro; [ - snes9x - ]; - }) + (retroarch.override { cores = with libretro; [ snes9x ]; }) # # You can also create simple shell scripts directly inside your # # configuration. For example, this adds a command 'my-hello' to your @@ -99,8 +94,8 @@ # Home manager settings dconf.settings = { "org/virt-manager/virt-manager/connections" = { - autoconnect = ["qemu:///system"]; - uris = ["qemu:///system"]; + autoconnect = [ "qemu:///system" ]; + uris = [ "qemu:///system" ]; }; }; } diff --git a/home-manager/modules/helix.nix b/home-manager/modules/helix.nix new file mode 100644 index 0000000..beab748 --- /dev/null +++ b/home-manager/modules/helix.nix @@ -0,0 +1,42 @@ +{ inputs, pkgs, ... }: { + programs.helix = { + enable = true; + settings = { + theme = "catppuccin_frappe"; + editor = { + auto-pairs = false; + mouse = false; + line-number = "relative"; + lsp.display-messages = true; + color-modes = true; + cursor-shape = { + normal = "block"; + insert = "bar"; + select = "underline"; + }; + statusline = { + left = [ + "mode" + "file-modification-indicator" + "diagnostics" + "file-name" + "read-only-indicator" + ]; + center = [ "spinner" ]; + right = [ "file-type" "separator" "position" "total-line-numbers" ]; + mode = { + normal = "N"; + insert = "I"; + select = "V"; + }; + }; + }; + }; + languages.language = [{ + name = "nix"; + auto-format = true; + formatter.command = "${pkgs.nixfmt}/bin/nixfmt"; + }]; + extraPackages = [ pkgs.nil ]; + }; +}