Compare commits
7 commits
29c198a205
...
b1e010ca53
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b1e010ca53 | ||
|
|
b2c68d3e76 | ||
|
|
1726d090c8 | ||
|
|
bb2f60ef95 | ||
|
|
23ea92dc57 | ||
|
|
5c5a372cfb | ||
|
|
921677b37a |
4 changed files with 64 additions and 16 deletions
1
.github/workflows/alejandra.toml
vendored
1
.github/workflows/alejandra.toml
vendored
|
|
@ -1 +0,0 @@
|
|||
indentation = "FourSpaces"
|
||||
23
.github/workflows/flake-check-action.yaml
vendored
23
.github/workflows/flake-check-action.yaml
vendored
|
|
@ -2,22 +2,25 @@
|
|||
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@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"
|
||||
|
|
|
|||
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -12,4 +12,7 @@ s0men0de-nix/
|
|||
.vscode/
|
||||
.obsidian/
|
||||
.trash/
|
||||
.zed/
|
||||
.zed/
|
||||
|
||||
# for local purposes
|
||||
.fmtconf/
|
||||
51
flake.nix
51
flake.nix
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue