Format nix files with nix-fmt

This commit is contained in:
Marko Korhonen 2024-09-16 20:52:24 +03:00
parent 25a48b5694
commit 53c956d53e
10 changed files with 149 additions and 163 deletions

View file

@ -15,7 +15,8 @@
lib = nixpkgs.lib;
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in {
in
{
nixosConfigurations.Mirkwood = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [

View file

@ -1,21 +1,4 @@
{
"bash-language-server": "5.4.0",
"css-lsp": "4.10.0",
"docker-compose-language-service": "0.2.0",
"dockerfile-language-server": "0.13.0",
"eslint-lsp": "4.10.0",
"google-java-format": "v1.23.0",
"html-lsp": "4.10.0",
"java-debug-adapter": "0.58.0",
"jdtls": "v1.38.0",
"json-lsp": "4.10.0",
"lemminx": "0.27.1",
"lua-language-server": "3.10.5",
"prettier": "3.3.3",
"prettierd": "0.25.3",
"stylua": "v0.20.0",
"taplo": "0.9.3",
"tree-sitter-cli": "v0.22.6",
"typescript-language-server": "4.3.3",
"yaml-language-server": "1.15.0"
"nil": "2024-08-06",
"nixpkgs-fmt": "1.3.0"
}

View file

@ -5,7 +5,8 @@
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
[
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_usb_sdmmc" ];
@ -14,21 +15,22 @@
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/fcb4b991-0704-45c0-9d31-bd858e1476aa";
{
device = "/dev/disk/by-uuid/fcb4b991-0704-45c0-9d31-bd858e1476aa";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-2d20d058-3ea8-41cf-90fa-872f46960add".device = "/dev/disk/by-uuid/2d20d058-3ea8-41cf-90fa-872f46960add";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/8498-FFAF";
{
device = "/dev/disk/by-uuid/8498-FFAF";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/dba8a94b-d7b6-4ac1-a0bb-82d6538ff331"; }
];
[{ device = "/dev/disk/by-uuid/dba8a94b-d7b6-4ac1-a0bb-82d6538ff331"; }];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's