Hello!

I’m getting back into NixOS again and i want to refactor my config heavily. Does anyone have any tips, advice or criticism on it? TIA.

https://codeberg.org/fxomt/nixos

  • @rutrum@programming.dev
    link
    fedilink
    English
    7
    edit-2
    1 month ago

    Very exciting! You’re layout looks fine as is. As it grows it might change, but for what you have now its a great schema.

    On themes: catppuccin has a dedicated flake for applying the catppuccin style to a lot of different terminal apps and gnome/kde I think. I prefer this over stylix, a general purpose themer, because I want explicit control over which color scheme is enabled on each app. Stylix is cool, but doesnt make it easy (or possible?) to apply different themes to different apps.

    Declarative flatpak by germanbread in-a-dil-emma is a nice flake. Occassionally theres a flatpak I need that isnt already packaged. This takes care of that. https://github.com/in-a-dil-emma/declarative-flatpak

    If you want to work with secrets, look into sops-nix. Vimjoyer on youtube has a great video on how to get it setup.

    • fxomtOP
      link
      fedilink
      English
      11 month ago

      :) feel free to, though keep in mind it’s a WIP and might not have best practices.

    • fxomtOP
      link
      fedilink
      English
      71 month ago

      Thanks :)

      From your config:

          # proton GE needs to be installed imperatively using protonup
      
          environment.sessionVariables = {
            STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/${config.globalConfig.user}/.steam/root/compatibilitytools.d";
          };
      

      This is not the case anymore, there’s now a proton-ge package. Mine is:

        programs.steam = {
          inherit (cfg) enable;
      
          extraCompatPackages = with pkgs; [proton-ge-bin];
      
          remotePlay.openFirewall = true;
          dedicatedServer.openFirewall = true;
        };
      
      

      I’ll take a deeper look into your config later, it seems quite nice, i could learn something from it.

    • fxomtOP
      link
      fedilink
      English
      11 month ago

      Thanks for the recommendation and config :)