Giter VIP home page Giter VIP logo

Comments (3)

inclyc avatar inclyc commented on September 22, 2024

Please paste the code here, for example

{
   # your nix code
}

from nixd.

inclyc avatar inclyc commented on September 22, 2024

I see, it is indeed a bug, you can workaround it by deleting the empty let ... in .. in your file. That is, fixup your code like this:

{ config, pkgs, inputs, userSettings, ... }:
- let
- in {
+ {
  # home-manager.users.coco = {
  imports = [ ./nixos/default.nix ];

  colorScheme = inputs.nix-colors.colorSchemes.catppuccin-mocha;
  catppuccin.flavour = "mocha";

  home = {
    username = userSettings.username;
    homeDirectory = "/home/" + userSettings.username;

    #The home.stateVersion option does not have a default and must be set
    stateVersion = "23.11";

    sessionVariables = {
      EDITOR = "nvim";
      GIO_EXTRA_MODULES = "${pkgs.gvfs}/lib/gio/modules";
    };

    #Here goes the rest of your home-manager config, e.g. home.packages = [ pkgs.foo ];
    packages = with pkgs; [
      distrobox
      # inputs.nixvim-config.packages.${system}.default
      black
      foot
      neovim
      superTuxKart
      swww
      swaynotificationcenter
      # news
      liferea
      newsflash
      yazi
      #image editing and etc...
      gimp
      waybar
      rofi-wayland
      vesktop
      wmenu
      cmatrix
      element-desktop
      pciutils
      libsForQt5.konversation
      gnome.gnome-system-monitor
      trash-cli
      tldr
      gnome-frog
      ttyper
      nomacs

      upower
      telegram-desktop

      bottles
      spotube

      vscode

      lazygit
      geoclue2

      tree
      freetube
    ];
  };

  xdg.configFile = {
    # you don't have to rebuild..., but have to give full path..
    "sway/config".source = config.lib.file.mkOutOfStoreSymlink
      "/home/coco/nixos-dotfiles/nixos/config/sway/config";
    "rofi/config.rasi".source = config.lib.file.mkOutOfStoreSymlink
      "/home/coco/nixos-dotfiles/nixos/config/rofi/config.rasi";
    "rofi/tokyonight.rasi".source = config.lib.file.mkOutOfStoreSymlink
      "/home/coco/nixos-dotfiles/nixos/config/rofi/tokyonight.rasi";
    #"foot/foot.ini".source = config.lib.file.mkOutOfStoreSymlink "/home/coco/nixos-dotfiles/nixos/foot/foot.ini";
    #"swaylock/config".source = config.lib.file.mkOutOfStoreSymlink "/home/coco/nixos-dotfiles/nixos/swaylock/config";
    "waybar/config.jsonc".source = config.lib.file.mkOutOfStoreSymlink
      "/home/coco/nixos-dotfiles/nixos/config/waybar/config.jsonc";
    "waybar/style.css".source = config.lib.file.mkOutOfStoreSymlink
      "/home/coco/nixos-dotfiles/nixos/config/waybar/style.css";
    #
    # u have to rebuild but don't need to give full path...
    "nixpkgs/config.nix".source = ./nixos/config/nixpkgs/config.nix;
  };

  # programs.home-manager.enable = true;
  # };

}

from nixd.

inclyc avatar inclyc commented on September 22, 2024

I think the code should not exit early here:

https://github.com/nix-community/nixd/blob/51adffb162b3fce43b92808599b1ef6891483108/libnixf/src/Sema/VariableLookup.cpp#L223C1-L224C12

from nixd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.