Comments (3)
Please paste the code here, for example
{
# your nix code
}
from nixd.
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.
I think the code should not exit early here:
from nixd.
Related Issues (20)
- Autocomplete breaks in NixOS module with explicit config section HOT 1
- No completion available in flakes HOT 6
- suggestion to use `inherit` HOT 10
- Regression testing `nixpkgs-fmt`. Instead, a script that outputs specific content should replace it, simply verifying that nixd passed the correct arguments to nixpkgs-fmt.
- dedicated vscode extension
- Syntax highlighting for multi-line strings HOT 2
- rework semantic tokens
- remove dead libnixt entries
- unicode
- disable `sema-escaping-with`
- Giving libnixf the `nativeCheckInputs` that should be used for nixd, which are not actually needed for libnixf.
- Crash on NeoVim, code 0, signal 6 HOT 9
- complete `builtins` HOT 1
- Implementing LSP Features for devenv.sh HOT 1
- Command ~/.flox/run/aarch64-darwin.default/bin/nixd not found in $PATH (but it's there) HOT 1
- False positive of sema-unused-def-lambda-noarg-formal HOT 2
- Add support for completing nixosModules.default.options
- nixd crashes repeatedly with SIGPIPE HOT 1
- config sample needs markdown support for nvim-treesitter
- A flake example for a nix-on-droid configuration should be added
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixd.