chore: statix fix
This commit is contained in:
parent
8ec7cb7794
commit
6d0186eadb
35 changed files with 39 additions and 46 deletions
|
|
@ -5,7 +5,7 @@
|
|||
metacfg = {
|
||||
user = {
|
||||
enable = true;
|
||||
name = config.snowfallorg.user.name;
|
||||
inherit (config.snowfallorg.user) name;
|
||||
};
|
||||
cli-apps = {
|
||||
bash.enable = true;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
metacfg = {
|
||||
user = {
|
||||
enable = true;
|
||||
name = config.snowfallorg.user.name;
|
||||
inherit (config.snowfallorg.user) name;
|
||||
};
|
||||
cli-apps = {
|
||||
bash.enable = true;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
metacfg = {
|
||||
user = {
|
||||
enable = true;
|
||||
name = config.snowfallorg.user.name;
|
||||
inherit (config.snowfallorg.user) name;
|
||||
};
|
||||
cli-apps = {
|
||||
bash.enable = true;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
metacfg = {
|
||||
user = {
|
||||
enable = true;
|
||||
name = config.snowfallorg.user.name;
|
||||
inherit (config.snowfallorg.user) name;
|
||||
};
|
||||
cli-apps = {
|
||||
bash.enable = true;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
metacfg = {
|
||||
user = {
|
||||
enable = true;
|
||||
name = config.snowfallorg.user.name;
|
||||
inherit (config.snowfallorg.user) name;
|
||||
};
|
||||
cli-apps = {
|
||||
bash.enable = true;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
metacfg = {
|
||||
user = {
|
||||
enable = true;
|
||||
name = config.snowfallorg.user.name;
|
||||
inherit (config.snowfallorg.user) name;
|
||||
};
|
||||
cli-apps = {
|
||||
bash.enable = true;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
metacfg = {
|
||||
user = {
|
||||
enable = true;
|
||||
name = config.snowfallorg.user.name;
|
||||
inherit (config.snowfallorg.user) name;
|
||||
};
|
||||
cli-apps = {
|
||||
bash.enable = true;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
metacfg = {
|
||||
user = {
|
||||
enable = true;
|
||||
name = config.snowfallorg.user.name;
|
||||
inherit (config.snowfallorg.user) name;
|
||||
};
|
||||
cli-apps = {
|
||||
bash.enable = true;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
metacfg = {
|
||||
user = {
|
||||
enable = true;
|
||||
name = config.snowfallorg.user.name;
|
||||
inherit (config.snowfallorg.user) name;
|
||||
};
|
||||
cli-apps = {
|
||||
bash.enable = true;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
metacfg = {
|
||||
user = {
|
||||
enable = true;
|
||||
name = config.snowfallorg.user.name;
|
||||
inherit (config.snowfallorg.user) name;
|
||||
};
|
||||
cli-apps = {
|
||||
bash.enable = true;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ rec {
|
|||
let
|
||||
host = hosts.${name};
|
||||
user = host.config.metacfg.user.name or null;
|
||||
system = host.pkgs.stdenv.hostPlatform.system;
|
||||
inherit (host.pkgs.stdenv.hostPlatform) system;
|
||||
in
|
||||
result
|
||||
// {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
{
|
||||
...
|
||||
}:
|
||||
_:
|
||||
{
|
||||
defaultSSHKeys = [
|
||||
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIDsb/Tr69YN5MQLweWPuJaRGm+h2kOyxfD6sqKEDTIwoAAAABHNzaDo= harald@fedora.fritz.box"
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ in
|
|||
];
|
||||
in
|
||||
{
|
||||
package = cfg.package;
|
||||
inherit (cfg) package;
|
||||
|
||||
settings = {
|
||||
experimental-features = "nix-command flakes";
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ let
|
|||
inherit (lib.metacfg) mkOpt enabled;
|
||||
|
||||
cfg = config.metacfg.tools.git;
|
||||
user = config.metacfg.user;
|
||||
inherit (config.metacfg) user;
|
||||
in
|
||||
{
|
||||
options.metacfg.tools.git = {
|
||||
|
|
|
|||
|
|
@ -54,10 +54,10 @@ in
|
|||
config.metacfg.user.name
|
||||
]
|
||||
++ optional config.services.hydra.enable "hydra";
|
||||
extra-substituters = cfg.extra-substituters;
|
||||
inherit (cfg) extra-substituters;
|
||||
in
|
||||
{
|
||||
package = cfg.package;
|
||||
inherit (cfg) package;
|
||||
|
||||
settings = {
|
||||
experimental-features = "nix-command flakes";
|
||||
|
|
|
|||
|
|
@ -32,8 +32,8 @@ in
|
|||
security.acme = {
|
||||
acceptTerms = true;
|
||||
defaults = {
|
||||
email = cfg.email;
|
||||
dnsProvider = cfg.dnsProvider;
|
||||
inherit (cfg) email;
|
||||
inherit (cfg) dnsProvider;
|
||||
credentialsFile = mkIf (cfg.credentialsFile != null) cfg.credentialsFile;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -71,8 +71,7 @@ in
|
|||
enable = true;
|
||||
|
||||
extraPackages =
|
||||
[ ]
|
||||
++ lib.optionals pkgs.stdenv.targetPlatform.isx86_64 (
|
||||
lib.optionals pkgs.stdenv.targetPlatform.isx86_64 (
|
||||
with pkgs;
|
||||
[
|
||||
vpl-gpu-rt
|
||||
|
|
@ -90,8 +89,7 @@ in
|
|||
rocmEnv = pkgs.symlinkJoin {
|
||||
name = "rocm-combined";
|
||||
paths =
|
||||
[ ]
|
||||
++ lib.optionals pkgs.stdenv.targetPlatform.isx86_64 (
|
||||
lib.optionals pkgs.stdenv.targetPlatform.isx86_64 (
|
||||
with pkgs.rocmPackages;
|
||||
[
|
||||
rocblas
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ in
|
|||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
clientMaxBodySize = cfg.clientMaxBodySize;
|
||||
inherit (cfg) clientMaxBodySize;
|
||||
recommendedGzipSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedProxySettings = true;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ in
|
|||
|
||||
config = {
|
||||
services.xremap = {
|
||||
enable = cfg.enable;
|
||||
inherit (cfg) enable;
|
||||
userName = mkIf cfg.enable cfg.userName;
|
||||
serviceMode = mkIf cfg.enable "user";
|
||||
withGnome = mkIf cfg.enable cfg.withGnome;
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@ with lib;
|
|||
with lib.metacfg;
|
||||
let
|
||||
cfg = config.metacfg.tools.git;
|
||||
gpg = config.metacfg.security.gpg;
|
||||
user = config.metacfg.user;
|
||||
inherit (config.metacfg.security) gpg;
|
||||
inherit (config.metacfg) user;
|
||||
in
|
||||
{
|
||||
options.metacfg.tools.git = with types; {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ let
|
|||
pkgs.runCommandNoCC "propagated-icon"
|
||||
{
|
||||
passthru = {
|
||||
fileName = cfg.icon.fileName;
|
||||
inherit (cfg.icon) fileName;
|
||||
};
|
||||
}
|
||||
''
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
_:
|
||||
final: prev: {
|
||||
inetutils = prev.inetutils.overrideAttrs (old: {
|
||||
# Fix gnulib variadic macro error on Darwin with newer Clang
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
_:
|
||||
final: prev: {
|
||||
gnome-console = prev.gnome-console.overrideAttrs (prevAttrs: {
|
||||
patches = (prevAttrs.patches or [ ]) ++ [
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
_:
|
||||
{
|
||||
nix.distributedBuilds = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
_:
|
||||
{
|
||||
services.pipewire.wireplumber.extraConfig."51-audio-priorities" = {
|
||||
"monitor.alsa.rules" = [
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
_:
|
||||
{
|
||||
metacfg.services.xremap = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -27,8 +27,7 @@ with lib.metacfg;
|
|||
enable = true;
|
||||
|
||||
extraPackages =
|
||||
[ ]
|
||||
++ lib.optionals pkgs.stdenv.targetPlatform.isx86_64 (
|
||||
lib.optionals pkgs.stdenv.targetPlatform.isx86_64 (
|
||||
with pkgs;
|
||||
[
|
||||
rocmPackages.clr.icd
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
_:
|
||||
{
|
||||
services.pipewire.wireplumber.extraConfig."51-audio-priorities" = {
|
||||
"monitor.alsa.rules" = [
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
_:
|
||||
{
|
||||
metacfg.services.xremap = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
_:
|
||||
{
|
||||
services.nginx.virtualHosts = {
|
||||
"00000" = {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
{
|
||||
...
|
||||
}:
|
||||
_:
|
||||
{
|
||||
systemd.services.netatalk.requires = [
|
||||
"mnt-backup.mount"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
_:
|
||||
{
|
||||
services.open-webui = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
_:
|
||||
{
|
||||
services.uptime-kuma = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
_:
|
||||
{
|
||||
services.wyoming = {
|
||||
faster-whisper.servers."main" = {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
_:
|
||||
{
|
||||
metacfg.services.xremap = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue