mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-04-13 05:48:31 +02:00
chore: improve formatting
This commit is contained in:
parent
6009841203
commit
ec1e48b793
@ -7,6 +7,7 @@
|
||||
|
||||
outputs =
|
||||
{ nix-config, ... }@attrs:
|
||||
|
||||
let
|
||||
inherit (nix-config.inputs) nixpkgs;
|
||||
inherit (nixpkgs.lib) nixosSystem optional;
|
||||
@ -17,6 +18,7 @@
|
||||
hyprland = nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = attrs;
|
||||
|
||||
modules = [
|
||||
./configuration.nix
|
||||
] ++ optional (pathExists ./hardware-configuration.nix) ./hardware-configuration.nix;
|
||||
|
@ -29,12 +29,14 @@
|
||||
|
||||
outputs =
|
||||
{ self, nixpkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (nixpkgs.lib) nixosSystem genAttrs replaceStrings;
|
||||
inherit (nixpkgs.lib.filesystem) packagesFromDirectoryRecursive listFilesRecursive;
|
||||
|
||||
forAllSystems =
|
||||
function:
|
||||
|
||||
genAttrs [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
@ -45,6 +47,7 @@
|
||||
{
|
||||
packages = forAllSystems (
|
||||
pkgs:
|
||||
|
||||
packagesFromDirectoryRecursive {
|
||||
inherit (pkgs) callPackage;
|
||||
|
||||
@ -64,8 +67,10 @@
|
||||
|
||||
checks = forAllSystems (
|
||||
pkgs:
|
||||
|
||||
genAttrs (map nameOf (listFilesRecursive ./tests)) (
|
||||
name:
|
||||
|
||||
import ./tests/${name}.nix {
|
||||
inherit self pkgs;
|
||||
}
|
||||
|
@ -37,6 +37,7 @@ in
|
||||
static const int user_bh = 10;
|
||||
static const int showbar = 1;
|
||||
static const int topbar = 1;
|
||||
|
||||
static const char *fonts[] = {
|
||||
"Maple Mono:size=10",
|
||||
"Noto Sans Mono CJK JP:size=10",
|
||||
|
@ -61,6 +61,7 @@ in
|
||||
localAddress = "192.168.100.49";
|
||||
config =
|
||||
{ nix-config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
with nix-config.nixosModules;
|
||||
|
@ -7,6 +7,7 @@ self.inputs.nixpkgs.lib.nixos.runTest {
|
||||
|
||||
nodes.machine =
|
||||
{ nix-config, config, ... }:
|
||||
|
||||
{
|
||||
imports = with nix-config.nixosModules; [
|
||||
shell
|
||||
|
Loading…
Reference in New Issue
Block a user