Update Zed configuration for nix LSP and formatter.
This commit is contained in:
70
flake.nix
70
flake.nix
@@ -51,43 +51,39 @@
|
||||
nix-flatpak.url = "github:gmodena/nix-flatpak?ref=latest";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
nixpkgs,
|
||||
nix-flatpak,
|
||||
auto-cpufreq,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
hostDirs = builtins.attrNames (builtins.readDir ./hosts);
|
||||
outputs = {
|
||||
nixpkgs,
|
||||
nix-flatpak,
|
||||
auto-cpufreq,
|
||||
...
|
||||
} @ inputs: let
|
||||
hostDirs = builtins.attrNames (builtins.readDir ./hosts);
|
||||
|
||||
mkHost =
|
||||
hostName:
|
||||
let
|
||||
inherit (import ./hosts/${hostName}/variables.nix)
|
||||
host
|
||||
username
|
||||
profile
|
||||
system
|
||||
;
|
||||
in
|
||||
nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
inherit username;
|
||||
inherit host;
|
||||
inherit profile;
|
||||
inherit system;
|
||||
};
|
||||
modules = [
|
||||
./profiles/${profile}
|
||||
nix-flatpak.nixosModules.nix-flatpak
|
||||
auto-cpufreq.nixosModules.default
|
||||
];
|
||||
};
|
||||
mkHost = hostName: let
|
||||
inherit
|
||||
(import ./hosts/${hostName}/variables.nix)
|
||||
host
|
||||
username
|
||||
profile
|
||||
system
|
||||
;
|
||||
in
|
||||
{
|
||||
nixosConfigurations = nixpkgs.lib.genAttrs hostDirs mkHost;
|
||||
};
|
||||
nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
inherit username;
|
||||
inherit host;
|
||||
inherit profile;
|
||||
inherit system;
|
||||
};
|
||||
modules = [
|
||||
./profiles/${profile}
|
||||
nix-flatpak.nixosModules.nix-flatpak
|
||||
auto-cpufreq.nixosModules.default
|
||||
];
|
||||
};
|
||||
in {
|
||||
nixosConfigurations = nixpkgs.lib.genAttrs hostDirs mkHost;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user