mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-19 17:28:49 +02:00
chore: revert function spacing
It turns out that no extra line is used when the function definition isn't at the beginning of the file.
This commit is contained in:
parent
63391b634a
commit
8abd8444f0
@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
{ nix-config, ... }@attrs:
|
{ nix-config, ... }@attrs:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (nix-config.inputs) nixpkgs;
|
inherit (nix-config.inputs) nixpkgs;
|
||||||
inherit (nixpkgs.lib) nixosSystem optional;
|
inherit (nixpkgs.lib) nixosSystem optional;
|
||||||
|
@ -24,14 +24,12 @@
|
|||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
{ self, nixpkgs, ... }:
|
{ self, nixpkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (nixpkgs.lib) nixosSystem genAttrs replaceStrings;
|
inherit (nixpkgs.lib) nixosSystem genAttrs replaceStrings;
|
||||||
inherit (nixpkgs.lib.filesystem) packagesFromDirectoryRecursive listFilesRecursive;
|
inherit (nixpkgs.lib.filesystem) packagesFromDirectoryRecursive listFilesRecursive;
|
||||||
|
|
||||||
forAllSystems =
|
forAllSystems =
|
||||||
function:
|
function:
|
||||||
|
|
||||||
genAttrs [
|
genAttrs [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
@ -42,7 +40,6 @@
|
|||||||
{
|
{
|
||||||
packages = forAllSystems (
|
packages = forAllSystems (
|
||||||
pkgs:
|
pkgs:
|
||||||
|
|
||||||
packagesFromDirectoryRecursive {
|
packagesFromDirectoryRecursive {
|
||||||
inherit (pkgs) callPackage;
|
inherit (pkgs) callPackage;
|
||||||
|
|
||||||
@ -62,10 +59,8 @@
|
|||||||
|
|
||||||
checks = forAllSystems (
|
checks = forAllSystems (
|
||||||
pkgs:
|
pkgs:
|
||||||
|
|
||||||
genAttrs (map nameOf (listFilesRecursive ./tests)) (
|
genAttrs (map nameOf (listFilesRecursive ./tests)) (
|
||||||
name:
|
name:
|
||||||
|
|
||||||
import ./tests/${name}.nix {
|
import ./tests/${name}.nix {
|
||||||
inherit self pkgs;
|
inherit self pkgs;
|
||||||
}
|
}
|
||||||
|
@ -58,7 +58,6 @@ in
|
|||||||
wine = template // {
|
wine = template // {
|
||||||
config =
|
config =
|
||||||
{ nix-config, pkgs, ... }:
|
{ nix-config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
with nix-config.nixosModules;
|
with nix-config.nixosModules;
|
||||||
|
@ -7,7 +7,6 @@ self.inputs.nixpkgs.lib.nixos.runTest {
|
|||||||
|
|
||||||
nodes.machine =
|
nodes.machine =
|
||||||
{ nix-config, config, ... }:
|
{ nix-config, config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = with nix-config.nixosModules; [
|
imports = with nix-config.nixosModules; [
|
||||||
shell
|
shell
|
||||||
|
Loading…
x
Reference in New Issue
Block a user