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"
|
|
||||||
21
.github/workflows/flake-check-action.yaml
vendored
21
.github/workflows/flake-check-action.yaml
vendored
|
|
@ -5,19 +5,22 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened,edited,synchronize,reopened]
|
types: [
|
||||||
|
opened,
|
||||||
|
edited,
|
||||||
|
synchronize,
|
||||||
|
reopened
|
||||||
|
]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
checker:
|
checker:
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
steps:
|
steps:
|
||||||
- name: "repo checkout"
|
- name: "Repo checkout"
|
||||||
uses: "actions/checkout@v4"
|
uses: "actions/checkout"
|
||||||
- name: "nix install"
|
- name: "Nix Package Manager install"
|
||||||
uses: "DeterminateSystems/nix-installer-action@v16"
|
uses: "DeterminateSystems/nix-installer-action@v16"
|
||||||
- name: "flake check"
|
- name: "Flake.lock checking"
|
||||||
uses: "DeterminateSystems/flake-checker-action@v5"
|
uses: "DeterminateSystems/flake-checker-action@v5"
|
||||||
- name: "Deadnix check"
|
- name: "Formatter run"
|
||||||
run: "nix run flake:nixpkgs#deadnix -- ."
|
run: "nix fmt"
|
||||||
- name: "Alejandra check"
|
|
||||||
run: "nix run flake:nixpkgs#alejandra -- --check --experimental-config .github/workflows/alejandra.toml ."
|
|
||||||
|
|
|
||||||
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -13,3 +13,6 @@ s0men0de-nix/
|
||||||
.obsidian/
|
.obsidian/
|
||||||
.trash/
|
.trash/
|
||||||
.zed/
|
.zed/
|
||||||
|
|
||||||
|
# for local purposes
|
||||||
|
.fmtconf/
|
||||||
51
flake.nix
51
flake.nix
|
|
@ -223,11 +223,45 @@
|
||||||
home-manager,
|
home-manager,
|
||||||
...
|
...
|
||||||
} @ inputs: {
|
} @ 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 = {
|
homeConfigurations = {
|
||||||
hand7s = home-manager.lib.homeManagerConfiguration {
|
hand7s = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit inputs self;
|
inherit
|
||||||
|
inputs
|
||||||
|
self
|
||||||
|
;
|
||||||
};
|
};
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
|
|
@ -245,7 +279,10 @@
|
||||||
s0mePC-nix = nixpkgs.lib.nixosSystem {
|
s0mePC-nix = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs self;
|
inherit
|
||||||
|
inputs
|
||||||
|
self
|
||||||
|
;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
"${self}/s0mePC-nix/default.nix"
|
"${self}/s0mePC-nix/default.nix"
|
||||||
|
|
@ -262,7 +299,10 @@
|
||||||
s0meMiniPC-nix = nixpkgs.lib.nixosSystem {
|
s0meMiniPC-nix = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs self;
|
inherit
|
||||||
|
inputs
|
||||||
|
self
|
||||||
|
;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
"${self}/s0meMiniPC-nix/default.nix"
|
"${self}/s0meMiniPC-nix/default.nix"
|
||||||
|
|
@ -294,7 +334,10 @@
|
||||||
s0melapt0p-nix = nixpkgs.lib.nixosSystem {
|
s0melapt0p-nix = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs self;
|
inherit
|
||||||
|
inputs
|
||||||
|
self
|
||||||
|
;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
"${self}/s0melapt0p-nix/default.nix"
|
"${self}/s0melapt0p-nix/default.nix"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue