Compare commits
No commits in common. "b1e010ca5325a00271b4663cf593a4ca09eb785b" and "29c198a205700fe8fea111c8c2230a6e99942954" have entirely different histories.
b1e010ca53
...
29c198a205
4 changed files with 16 additions and 64 deletions
1
.github/workflows/alejandra.toml
vendored
Normal file
1
.github/workflows/alejandra.toml
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
indentation = "FourSpaces"
|
||||
23
.github/workflows/flake-check-action.yaml
vendored
23
.github/workflows/flake-check-action.yaml
vendored
|
|
@ -2,25 +2,22 @@
|
|||
name: "Flake Check Action"
|
||||
run-name: "nfc"
|
||||
on:
|
||||
workflow_dispatch:
|
||||
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"
|
||||
- name: "Nix Package Manager install"
|
||||
- name: "repo checkout"
|
||||
uses: "actions/checkout@v4"
|
||||
- name: "nix install"
|
||||
uses: "DeterminateSystems/nix-installer-action@v16"
|
||||
- name: "Flake.lock checking"
|
||||
- name: "flake check"
|
||||
uses: "DeterminateSystems/flake-checker-action@v5"
|
||||
- name: "Formatter run"
|
||||
run: "nix fmt"
|
||||
- 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 ."
|
||||
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -12,7 +12,4 @@ s0men0de-nix/
|
|||
.vscode/
|
||||
.obsidian/
|
||||
.trash/
|
||||
.zed/
|
||||
|
||||
# for local purposes
|
||||
.fmtconf/
|
||||
.zed/
|
||||
51
flake.nix
51
flake.nix
|
|
@ -223,45 +223,11 @@
|
|||
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 = [
|
||||
|
|
@ -279,10 +245,7 @@
|
|||
s0mePC-nix = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {
|
||||
inherit
|
||||
inputs
|
||||
self
|
||||
;
|
||||
inherit inputs self;
|
||||
};
|
||||
modules = [
|
||||
"${self}/s0mePC-nix/default.nix"
|
||||
|
|
@ -299,10 +262,7 @@
|
|||
s0meMiniPC-nix = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {
|
||||
inherit
|
||||
inputs
|
||||
self
|
||||
;
|
||||
inherit inputs self;
|
||||
};
|
||||
modules = [
|
||||
"${self}/s0meMiniPC-nix/default.nix"
|
||||
|
|
@ -334,10 +294,7 @@
|
|||
s0melapt0p-nix = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {
|
||||
inherit
|
||||
inputs
|
||||
self
|
||||
;
|
||||
inherit inputs self;
|
||||
};
|
||||
modules = [
|
||||
"${self}/s0melapt0p-nix/default.nix"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue