Files
dotfiles/flake.nix
Kyren223 bdbde54648 Added nix LSP (nil_ls)
I love it, it just works out of the box, unlike nixd which was so broken
I couldn't get it to work, and it's so much more featureful, it has
insane autocompletion for keywords and vars and I can go to
definition/go to references on files/vars etc and it has diagnostics and
shows when there is an error, it's so much better, and it has completion
for nix options
2025-04-23 18:34:02 +03:00

30 lines
634 B
Nix

{
description = "Nixos config flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, ... }@inputs: {
nixosConfigurations = {
laptop = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
./hosts/laptop.nix
];
};
lapsktop = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
./hosts/lapsktop.nix
];
};
};
};
}