chore: Run nix fmt

Also removed an unnecessary variable and added syntax highlighting.
This commit is contained in:
Donovan Glover 2024-04-17 13:54:28 -04:00
parent 1e6188cc45
commit 7f60479a90
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
3 changed files with 17 additions and 14 deletions

View File

@ -53,20 +53,24 @@
then callPackage ./${directory}/${file} { } then callPackage ./${directory}/${file} { }
else else
if directory == "tests" if directory == "tests"
then import ./${directory}/${file} { then
inherit self; import ./${directory}/${file}
pkgs = nixpkgs.legacyPackages.x86_64-linux; {
} inherit self;
pkgs = nixpkgs.legacyPackages.x86_64-linux;
}
else else
if directory == "hardware" if directory == "hardware"
then nixosSystem { then
system = "x86_64-linux"; nixosSystem
specialArgs = attrs // { nix-config = self; }; {
modules = [ system = "x86_64-linux";
./. specialArgs = attrs // { nix-config = self; };
./${directory}/${file} modules = [
]; ./.
} ./${directory}/${file}
];
}
else import ./${directory}/${file}; else import ./${directory}/${file};
}) })
(attrNames (readDir ./${directory})))); (attrNames (readDir ./${directory}))));

View File

@ -4,7 +4,6 @@ let
inherit (pkgs) fetchFromGitHub vimPlugins; inherit (pkgs) fetchFromGitHub vimPlugins;
inherit (pkgs.vimUtils) buildVimPlugin; inherit (pkgs.vimUtils) buildVimPlugin;
inherit (config.lib.stylix.scheme) slug; inherit (config.lib.stylix.scheme) slug;
inherit (config.xdg.userDirs) documents;
vim-nix-rummik = buildVimPlugin { vim-nix-rummik = buildVimPlugin {
pname = "vim-nix-rummik"; pname = "vim-nix-rummik";

View File

@ -1,5 +1,5 @@
{ {
xdg.configFile."xfce4/helpers.rc".text = '' xdg.configFile."xfce4/helpers.rc".text = /* ini */ ''
TerminalEmulator=kitty TerminalEmulator=kitty
TerminalEmulatorDismissed=true TerminalEmulatorDismissed=true
''; '';