chore: bump and reconfigure treefmt-nix, include just fmt
This commit is contained in:
parent
e658e27576
commit
c0daa9e6e9
13 changed files with 419 additions and 407 deletions
7
.vscode/settings.json
vendored
7
.vscode/settings.json
vendored
|
@ -11,11 +11,10 @@
|
||||||
"ignored": ["unused_binding", "unused_with"]
|
"ignored": ["unused_binding", "unused_with"]
|
||||||
},
|
},
|
||||||
"formatting": {
|
"formatting": {
|
||||||
"command": ["treefmt-nix", "--stdin", ".nil.nix"]
|
"command": ["treefmt", "--stdin", ".nil.nix"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"[nix]": {
|
"treefmt.command": "treefmt",
|
||||||
"editor.defaultFormatter": "jnoortheen.nix-ide"
|
"treefmt.config": ""
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
2
Justfile
2
Justfile
|
@ -127,6 +127,7 @@ disk-relabel dir previous:
|
||||||
# Mount the target disk specified by device configuration directory. The 'dir' argument points to a device configuration, e.g. 'nix/os/devices/steveej-live-mmc-SL32G_0x259093f6'
|
# Mount the target disk specified by device configuration directory. The 'dir' argument points to a device configuration, e.g. 'nix/os/devices/steveej-live-mmc-SL32G_0x259093f6'
|
||||||
disk-mount dir:
|
disk-mount dir:
|
||||||
just -v _device diskMount {{ dir }}
|
just -v _device diskMount {{ dir }}
|
||||||
|
|
||||||
# Unmount target disk, specified by device configuration directory
|
# Unmount target disk, specified by device configuration directory
|
||||||
disk-umount dir:
|
disk-umount dir:
|
||||||
just -v _device diskUmount {{ dir }}
|
just -v _device diskUmount {{ dir }}
|
||||||
|
@ -135,7 +136,6 @@ disk-umount dir:
|
||||||
disk-install dir: _render_templates
|
disk-install dir: _render_templates
|
||||||
just -v _device diskInstall {{ dir }}
|
just -v _device diskInstall {{ dir }}
|
||||||
|
|
||||||
|
|
||||||
verify-n-unlock sshserver attempts="10":
|
verify-n-unlock sshserver attempts="10":
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
13
flake.nix
13
flake.nix
|
@ -278,7 +278,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
local-xwayland = pkgs.writeShellScriptBin "local-xwayland" ''
|
local-xwayland = pkgs.writeShellScriptBin "local-xwayland" ''
|
||||||
set -x
|
set -x
|
||||||
${pkgs.wayland-proxy-virtwl}/bin/wayland-proxy-virtwl \
|
${pkgs.wayland-proxy-virtwl}/bin/wayland-proxy-virtwl \
|
||||||
|
@ -355,6 +354,13 @@
|
||||||
shellcheck.enable = true;
|
shellcheck.enable = true;
|
||||||
|
|
||||||
prettier.enable = true;
|
prettier.enable = true;
|
||||||
|
just = {
|
||||||
|
enable = true;
|
||||||
|
includes = [
|
||||||
|
"*/Justfile"
|
||||||
|
"Justfile"
|
||||||
|
];
|
||||||
|
};
|
||||||
} // pkgs.lib.optionalAttrs (pkgs.system != "riscv64-linux") { shellcheck.enable = true; };
|
} // pkgs.lib.optionalAttrs (pkgs.system != "riscv64-linux") { shellcheck.enable = true; };
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -410,7 +416,10 @@
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
all // { default = all.develop; };
|
all
|
||||||
|
// {
|
||||||
|
default = all.develop;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -93,11 +93,11 @@
|
||||||
self.nixosConfigurations.sj-srv1.config.containers.webserver.config.services.kanidm.serverSettings.origin;
|
self.nixosConfigurations.sj-srv1.config.containers.webserver.config.services.kanidm.serverSettings.origin;
|
||||||
|
|
||||||
shellHook = builtins.concatStringsSep "\n" [
|
shellHook = builtins.concatStringsSep "\n" [
|
||||||
(self.inputs.nixago.lib.${pkgs.system}.make {
|
# (self.inputs.nixago.lib.${pkgs.system}.make {
|
||||||
data = self'.formatter.settings;
|
# data = self'.formatter.settings;
|
||||||
output = "treefmt.toml";
|
# output = "treefmt.toml";
|
||||||
format = "toml";
|
# format = "toml";
|
||||||
}).shellHook
|
# }).shellHook
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -162,7 +162,10 @@ let
|
||||||
"devtools.debugger.remote-enabled" = true;
|
"devtools.debugger.remote-enabled" = true;
|
||||||
|
|
||||||
# disable translations for some languages
|
# disable translations for some languages
|
||||||
"browser.translations.neverTranslateLanguages" = ["en" "de"];
|
"browser.translations.neverTranslateLanguages" = [
|
||||||
|
"en"
|
||||||
|
"de"
|
||||||
|
];
|
||||||
"browser.translations.automaticallyPopup" = false;
|
"browser.translations.automaticallyPopup" = false;
|
||||||
|
|
||||||
# enable pipewire (and libcamera) sources
|
# enable pipewire (and libcamera) sources
|
||||||
|
@ -303,7 +306,9 @@ in
|
||||||
repoFlake.inputs.nur.overlay
|
repoFlake.inputs.nur.overlay
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
nixpkgs.config.allowUnfreePredicate =
|
||||||
|
pkg:
|
||||||
|
builtins.elem (lib.getName pkg) [
|
||||||
"youtube-recommended-videos"
|
"youtube-recommended-videos"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
srvos.url = "github:numtide/srvos";
|
srvos.url = "github:numtide/srvos";
|
||||||
srvos.inputs.nixpkgs.follows = "nixpkgs";
|
srvos.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
nixos-sbc.url =
|
nixos-sbc.url = "github:nakato/nixos-sbc"
|
||||||
"github:nakato/nixos-sbc"
|
|
||||||
# "github:steveej-forks/nakato_nixos-sbc//bpi-r3_kernel-6.12"
|
# "github:steveej-forks/nakato_nixos-sbc//bpi-r3_kernel-6.12"
|
||||||
# "github:steveej-forks/nakato_nixos-sbc//bpi-r3_kernel-6.13"
|
# "github:steveej-forks/nakato_nixos-sbc//bpi-r3_kernel-6.13"
|
||||||
# "github:steveej-forks/nakato_nixos-sbc/kernel-6.9_and_cross-compile"
|
# "github:steveej-forks/nakato_nixos-sbc/kernel-6.9_and_cross-compile"
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
config,
|
config,
|
||||||
nodeName,
|
nodeName,
|
||||||
system,
|
system,
|
||||||
packages',
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,8 +15,7 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
nixos-x13s.url =
|
nixos-x13s.url = "git+https://forgejo.www.stefanjunker.de/steveej/nixos-x13s.git?ref=bump"
|
||||||
"git+https://forgejo.www.stefanjunker.de/steveej/nixos-x13s.git?ref=bump"
|
|
||||||
# 6.13-rc2
|
# 6.13-rc2
|
||||||
# "git+https://forgejo.www.stefanjunker.de/steveej/nixos-x13s.git?ref=bump&rev=c95058f8aa1b361df3874429c5dc0f694f9cba78"
|
# "git+https://forgejo.www.stefanjunker.de/steveej/nixos-x13s.git?ref=bump&rev=c95058f8aa1b361df3874429c5dc0f694f9cba78"
|
||||||
# 6.11.0
|
# 6.11.0
|
||||||
|
@ -89,7 +88,9 @@
|
||||||
inherit mkNixosConfiguration;
|
inherit mkNixosConfiguration;
|
||||||
};
|
};
|
||||||
|
|
||||||
overlays.default = _final: _previous: {
|
overlays.default =
|
||||||
|
_final: _previous:
|
||||||
|
{
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue