Compare commits

...

7 commits

Author SHA1 Message Date
s0me1newithhand7s
b1e010ca53
nix fmt: gone full nix
Signed-off-by: s0me1newithhand7s <117505144+s0me1newithhand7s@users.noreply.github.com>
2025-10-15 12:26:33 +03:00
s0me1newithhand7s
b2c68d3e76
.gitignore: added fmtconf/ dir
Signed-off-by: s0me1newithhand7s <117505144+s0me1newithhand7s@users.noreply.github.com>
2025-10-15 12:24:34 +03:00
s0me1newithhand7s
1726d090c8
[URGENT]: treefmt / treefmt-nix dithced
Signed-off-by: s0me1newithhand7s <117505144+s0me1newithhand7s@users.noreply.github.com>
2025-10-15 12:11:46 +03:00
s0me1newithhand7s
bb2f60ef95
flake-check-action.yaml: -> nix fmt
Signed-off-by: s0me1newithhand7s <117505144+s0me1newithhand7s@users.noreply.github.com>
2025-10-15 00:54:16 +03:00
s0me1newithhand7s
23ea92dc57
flake.nix: formatter init
Signed-off-by: s0me1newithhand7s <117505144+s0me1newithhand7s@users.noreply.github.com>
2025-10-15 00:47:34 +03:00
s0me1newithhand7s
5c5a372cfb
fmt: configs init
Signed-off-by: s0me1newithhand7s <117505144+s0me1newithhand7s@users.noreply.github.com>
2025-10-15 00:44:18 +03:00
s0me1newithhand7s
921677b37a
flake.nix: inherit formatting changed
Signed-off-by: s0me1newithhand7s <117505144+s0me1newithhand7s@users.noreply.github.com>
2025-10-15 00:40:32 +03:00
4 changed files with 64 additions and 16 deletions

View file

@ -1 +0,0 @@
indentation = "FourSpaces"

View file

@ -5,19 +5,22 @@ on:
workflow_dispatch:
push:
pull_request:
types: [opened,edited,synchronize,reopened]
types: [
opened,
edited,
synchronize,
reopened
]
jobs:
checker:
runs-on: "ubuntu-latest"
steps:
- name: "repo checkout"
uses: "actions/checkout@v4"
- name: "nix install"
- name: "Repo checkout"
uses: "actions/checkout"
- name: "Nix Package Manager install"
uses: "DeterminateSystems/nix-installer-action@v16"
- name: "flake check"
- name: "Flake.lock checking"
uses: "DeterminateSystems/flake-checker-action@v5"
- name: "Deadnix check"
run: "nix run flake:nixpkgs#deadnix -- ."
- name: "Alejandra check"
run: "nix run flake:nixpkgs#alejandra -- --check --experimental-config .github/workflows/alejandra.toml ."
- name: "Formatter run"
run: "nix fmt"

3
.gitignore vendored
View file

@ -13,3 +13,6 @@ s0men0de-nix/
.obsidian/
.trash/
.zed/
# for local purposes
.fmtconf/

View file

@ -223,11 +223,45 @@
home-manager,
...
} @ inputs: {
formatter = {
x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.writeShellApplication {
name = "hand7sfmt";
runtimeInputs = with nixpkgs.legacyPackages.x86_64-linux; [
alejandra
statix
deadnix
];
text = ''
${nixpkgs.lib.getExe nixpkgs.legacyPackages.x86_64-linux.alejandra} \
--experimental-config \
${nixpkgs.legacyPackages.x86_64-linux.writeText "alejandra.toml" ''
indentation = "FourSpaces"
''} \
--check \
${self} && ${nixpkgs.lib.getExe nixpkgs.legacyPackages.x86_64-linux.statix} \
check \
--config \
${nixpkgs.legacyPackages.x86_64-linux.writeText "statix.toml" ''
disabled = [
"empty_pattern"
]
''} \
${self} && ${nixpkgs.lib.getExe nixpkgs.legacyPackages.x86_64-linux.deadnix} \
--fail \
${self}
'';
};
};
homeConfigurations = {
hand7s = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = {
inherit inputs self;
inherit
inputs
self
;
};
modules = [
@ -245,7 +279,10 @@
s0mePC-nix = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs self;
inherit
inputs
self
;
};
modules = [
"${self}/s0mePC-nix/default.nix"
@ -262,7 +299,10 @@
s0meMiniPC-nix = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs self;
inherit
inputs
self
;
};
modules = [
"${self}/s0meMiniPC-nix/default.nix"
@ -294,7 +334,10 @@
s0melapt0p-nix = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs self;
inherit
inputs
self
;
};
modules = [
"${self}/s0melapt0p-nix/default.nix"