nix-starter-configs icon indicating copy to clipboard operation
nix-starter-configs copied to clipboard

[Suggestion] Example / Project Showcase

Open FMGordillo opened this issue 11 months ago • 3 comments

I think would be awesome to know how people extend their configuration to their own

PS.: If someone has experience with neovim and has its configuration there, feel free to share it as well :pleading_face:

FMGordillo avatar Mar 02 '24 14:03 FMGordillo

PS.: If someone has experience with neovim and has its configuration there, feel free to share it as well 🥺

Perhaps you can try ayamir/nvimdots

Cyberczy avatar Apr 02 '24 02:04 Cyberczy

For Neovim i've been using this flake for months now: https://github.com/mrcjkb/kickstart-nix.nvim

If you use kickstart.nvim you'll find yourself at home right away.

juangiordana avatar Apr 02 '24 12:04 juangiordana

I started using the minimal nix-starter-config version for a few weeks until I kind of "get it" and then switched to the standard version. Then my configurations grow from that point forward.

I'd recommend not using a repository initially, as editing your .nix files wont take effect unless they're staged or committed.

My setup/flake consists basically from the nix-stater-config standard version + kickstart-nix.nvim

{
  description = "NixOS configurations";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11";

    hardware.url = "github:NixOS/nixos-hardware";

    home-manager.url = "github:nix-community/home-manager";
    home-manager.inputs.nixpkgs.follows = "nixpkgs";

    # Customo Neovim setup in a flake.
    neovim-flake.url = "path:/home/user/Projects/kickstart-nix.nvim";
    neovim-flake.inputs.nixpkgs.follows = "nixpkgs";
  };
  # ...
}

The timeline goes like this:

  • Install NixOs
  • Move generated config into the minimal/standard nix-starter-config setup.
  • Add kickstart-nix.nvim flake.
  • Update configs when necessary and then:
nix flake update
sudo nixos-rebuild --flake .# switch
home-manager --flake .#me@home switch

Hope this help :)

juangiordana avatar Apr 02 '24 13:04 juangiordana

Thank you both so much! I will improve slowly but steady with this I can give my two cents with my current configuration: https://gitlab.com/FMGordillo/nix-config/-/blob/main/home-manager/nixvim.nix?ref_type=heads

FMGordillo avatar Apr 13 '24 22:04 FMGordillo