Compare commits

...

2 commits

Author SHA1 Message Date
218d68e1c1
Statix fix 2024-07-27 14:46:16 -05:00
eb76b566f6
disable empty_pattern on statix 2024-07-27 14:45:59 -05:00
8 changed files with 20 additions and 14 deletions

View file

@ -56,7 +56,7 @@ in
# Enable vscode & addons # Enable vscode & addons
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
(vscode-with-extensions.override { (vscode-with-extensions.override {
vscode = unstable.vscode; inherit (unstable) vscode;
# Merge all the extension packages together. # Merge all the extension packages together.
vscodeExtensions = vscodeExtensions =
vscodeCommunityExtensionsPackages ++ nixpkgsExtensionsPackages ++ marketplaceExtensionsPackages; vscodeCommunityExtensionsPackages ++ nixpkgsExtensionsPackages ++ marketplaceExtensionsPackages;

View file

@ -26,7 +26,7 @@ in
services.bind = { services.bind = {
enable = true; enable = true;
inherit (cfg) package; inherit (cfg) package;
extraConfig = cfg.extraConfig; inherit (cfg) extraConfig;
}; };
# Clean up journal files # Clean up journal files

View file

@ -32,7 +32,7 @@ in
services.haproxy = { services.haproxy = {
enable = true; enable = true;
inherit (cfg) package; inherit (cfg) package;
config = cfg.config; inherit (cfg) config;
}; };
}; };
} }

View file

@ -27,9 +27,9 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
services.borgbackup.jobs."borgbackup" = { services.borgbackup.jobs."borgbackup" = {
paths = cfg.paths; inherit (cfg) paths;
exclude = cfg.exclude; inherit (cfg) exclude;
repo = cfg.repo; inherit (cfg) repo;
encryption = { encryption = {
mode = "repokey-blake2"; mode = "repokey-blake2";
passCommand = "cat ${cfg.repoKeyPath}"; passCommand = "cat ${cfg.repoKeyPath}";

View file

@ -2,7 +2,7 @@
let let
finalVersion = "1.22.5"; finalVersion = "1.22.5";
in in
(final: prev: { final: prev: {
go_1_22 = prev.go_1_22.overrideAttrs (oldAttrs: { go_1_22 = prev.go_1_22.overrideAttrs (oldAttrs: {
version = finalVersion; version = finalVersion;
src = prev.fetchurl { src = prev.fetchurl {
@ -10,4 +10,4 @@ in
hash = "sha256-rJxyPyJJaa7mJLw0/TTJ4T8qIS11xxyAfeZEu0bhEvY="; hash = "sha256-rJxyPyJJaa7mJLw0/TTJ4T8qIS11xxyAfeZEu0bhEvY=";
}; };
}); });
}) }

View file

@ -2,7 +2,7 @@
let let
finalVersion = "1.7.5"; finalVersion = "1.7.5";
in in
(final: prev: { final: prev: {
talosctl = prev.talosctl.overrideAttrs (oldAttrs: { talosctl = prev.talosctl.overrideAttrs (oldAttrs: {
version = finalVersion; version = finalVersion;
src = prev.fetchFromGitHub { src = prev.fetchFromGitHub {
@ -16,4 +16,4 @@ in
updateScript = ./update.sh; updateScript = ./update.sh;
}; };
}); });
}) }

View file

@ -2,12 +2,12 @@
let let
versions = lib.importJSON ./versions.json; versions = lib.importJSON ./versions.json;
in in
(final: prev: { final: prev: {
warp-terminal = prev.warp-terminal.overrideAttrs (oldAttrs: { warp-terminal = prev.warp-terminal.overrideAttrs (oldAttrs: {
version = versions.linux.version; inherit (versions.linux) version;
src = prev.fetchurl { src = prev.fetchurl {
url = "https://releases.warp.dev/stable/v${versions.linux.version}/warp-terminal-v${versions.linux.version}-1-x86_64.pkg.tar.zst"; url = "https://releases.warp.dev/stable/v${versions.linux.version}/warp-terminal-v${versions.linux.version}-1-x86_64.pkg.tar.zst";
hash = versions.linux.hash; inherit (versions.linux) hash;
}; };
}); });
}) }

6
statix.toml Normal file
View file

@ -0,0 +1,6 @@
disabled = [
"empty_pattern"
]
nix_version = '2.4'
ignore = ['.direnv']