mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
funny
This commit is contained in:
parent
258253f5d5
commit
6e5b5f3173
2 changed files with 46 additions and 46 deletions
47
flake.nix
47
flake.nix
|
|
@ -45,50 +45,5 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs = i: import ./outputs.nix i;
|
||||||
inputs:
|
|
||||||
let
|
|
||||||
lib = import ./lib inputs;
|
|
||||||
in
|
|
||||||
lib.gerg-utils { allowUnfree = true; } (
|
|
||||||
{ pkgs, system, ... }:
|
|
||||||
{
|
|
||||||
inherit lib;
|
|
||||||
nixosConfigurations = lib.mkHosts "x86_64-linux" [
|
|
||||||
"gerg-desktop"
|
|
||||||
"game-desktop"
|
|
||||||
"media-laptop"
|
|
||||||
"iso"
|
|
||||||
];
|
|
||||||
|
|
||||||
nixosModules = lib.mkModules ./modules;
|
|
||||||
|
|
||||||
diskoConfigurations = lib.mkDisko [
|
|
||||||
"gerg-desktop"
|
|
||||||
"game-desktop"
|
|
||||||
"media-laptop"
|
|
||||||
];
|
|
||||||
formatter.${system} = pkgs.writeShellApplication {
|
|
||||||
name = "lint";
|
|
||||||
runtimeInputs = [
|
|
||||||
(pkgs.nixfmt.overrideAttrs {
|
|
||||||
version = "0.6.0-${inputs.nixfmt.shortRev}";
|
|
||||||
|
|
||||||
src = inputs.nixfmt;
|
|
||||||
})
|
|
||||||
pkgs.deadnix
|
|
||||||
pkgs.statix
|
|
||||||
pkgs.fd
|
|
||||||
];
|
|
||||||
text = ''
|
|
||||||
fd '.*\.nix' . -x statix fix -- {} \;
|
|
||||||
fd '.*\.nix' . -X deadnix -e -- {} \; -X nixfmt {} \;
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
devShells.${system}.default = pkgs.mkShell { packages = [ pkgs.sops ]; };
|
|
||||||
|
|
||||||
packages.${system} = lib.mkPackages ./packages pkgs;
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
45
outputs.nix
Normal file
45
outputs.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
inputs:
|
||||||
|
let
|
||||||
|
lib = import ./lib inputs;
|
||||||
|
in
|
||||||
|
lib.gerg-utils { allowUnfree = true; } (
|
||||||
|
{ pkgs, system, ... }:
|
||||||
|
{
|
||||||
|
inherit lib;
|
||||||
|
nixosConfigurations = lib.mkHosts "x86_64-linux" [
|
||||||
|
"gerg-desktop"
|
||||||
|
"game-desktop"
|
||||||
|
"media-laptop"
|
||||||
|
"iso"
|
||||||
|
];
|
||||||
|
|
||||||
|
nixosModules = lib.mkModules ./modules;
|
||||||
|
|
||||||
|
diskoConfigurations = lib.mkDisko [
|
||||||
|
"gerg-desktop"
|
||||||
|
"game-desktop"
|
||||||
|
"media-laptop"
|
||||||
|
];
|
||||||
|
formatter.${system} = pkgs.writeShellApplication {
|
||||||
|
name = "lint";
|
||||||
|
runtimeInputs = [
|
||||||
|
(pkgs.nixfmt.overrideAttrs {
|
||||||
|
version = "0.6.0-${inputs.nixfmt.shortRev}";
|
||||||
|
|
||||||
|
src = inputs.nixfmt;
|
||||||
|
})
|
||||||
|
pkgs.deadnix
|
||||||
|
pkgs.statix
|
||||||
|
pkgs.fd
|
||||||
|
];
|
||||||
|
text = ''
|
||||||
|
fd '.*\.nix' . -x statix fix -- {} \;
|
||||||
|
fd '.*\.nix' . -X deadnix -e -- {} \; -X nixfmt {} \;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
devShells.${system}.default = pkgs.mkShell { packages = [ pkgs.sops ]; };
|
||||||
|
|
||||||
|
packages.${system} = lib.mkPackages ./packages pkgs;
|
||||||
|
}
|
||||||
|
)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue