style: alejandra, deadnix, statix

This commit is contained in:
Kat Inskip 2024-08-03 16:10:47 -07:00
parent 2e7ee0e4ca
commit 17c69c99de
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
78 changed files with 1051 additions and 878 deletions

View file

@ -1,12 +1,9 @@
_: let
hostConfig = {
lib,
tree,
modulesPath,
...
}: let
inherit (lib.modules) mkDefault;
in {
}: {
imports =
[
(modulesPath + "/profiles/qemu-guest.nix")
@ -18,7 +15,7 @@ _: let
oracle_flex
])
++ (with tree.nixos.servers; [
]);
]);
system.stateVersion = "23.11";
};

View file

@ -1,8 +1,10 @@
{ inputs,
{
inputs,
tree,
lib,
std,
pkgs, }: let
pkgs,
}: let
# The purpose of this file is to set up the host module which allows assigning of the system, e.g. aarch64-linux and the builder used with less pain.
inherit (lib.modules) evalModules;
inherit (std) set;

View file

@ -1,20 +1,12 @@
_: let
hostConfig = {
lib,
tree,
modulesPath,
...
}: let
inherit (lib.modules) mkDefault;
in {
imports =
with tree.home.profiles; [
common
devops
graphical
neovim
shell
];
hostConfig = {tree, ...}: {
imports = with tree.home.profiles; [
common
devops
graphical
neovim
shell
];
};
in {
arch = "x86_64";

View file

@ -3,7 +3,6 @@ _: let
config,
lib,
tree,
pkgs,
...
}: let
inherit (lib.lists) singleton;

View file

@ -1,11 +1,5 @@
_: let
hostConfig = {
tree,
pkgs,
lib,
inputs,
...
}: {
hostConfig = {tree, ...}: {
imports =
(with tree.nixos.hardware; [
framework
@ -17,6 +11,7 @@ _: let
laptop
bcachefs
sdr
virtualisation
secureboot
])
++ (with tree.nixos.environments; [
@ -43,32 +38,34 @@ _: let
};
};
boot.extraModprobeConfig = "options snd_hda_intel power_save=0";
boot.extraModprobeConfig = "options snd_hda_intel power_save=0";
programs.ssh.extraConfig = ''
Host daiyousei-build
HostName 140.238.156.121
User root
IdentityAgent /run/user/1000/gnupg/S.gpg-agent.ssh
'';
programs.ssh.extraConfig = ''
Host daiyousei-build
HostName 140.238.156.121
User root
IdentityAgent /run/user/1000/gnupg/S.gpg-agent.ssh
'';
nix.buildMachines = [
{
hostName = "daiyousei-build";
system = "aarch64-linux";
protocol = "ssh-ng";
maxJobs = 100;
speedFactor = 1;
supportedFeatures = [ "benchmark" "big-parallel" "kvm" ];
mandatoryFeatures = [ ];
}
nix = {
buildMachines = [
{
hostName = "daiyousei-build";
system = "aarch64-linux";
protocol = "ssh-ng";
maxJobs = 100;
speedFactor = 1;
supportedFeatures = ["benchmark" "big-parallel" "kvm"];
mandatoryFeatures = [];
}
];
distributedBuilds = true;
extraOptions = ''
builders-use-substitutes = true
'';
};
nix.distributedBuilds = true;
# optional, useful when the builder has a faster internet connection than yours
nix.extraOptions = ''
builders-use-substitutes = true
'';
# optional, useful when the builder has a faster internet connection than yours
services.printing.enable = true;
services.hardware.bolt.enable = true;

View file

@ -1,12 +1,9 @@
_: let
hostConfig = {
lib,
tree,
modulesPath,
...
}: let
inherit (lib.modules) mkDefault;
in {
}: {
imports =
[
(modulesPath + "/profiles/qemu-guest.nix")
@ -18,7 +15,7 @@ _: let
oracle_micro
])
++ (with tree.nixos.servers; [
]);
]);
system.stateVersion = "23.11";
};

View file

@ -1,12 +1,9 @@
_: let
hostConfig = {
lib,
tree,
modulesPath,
...
}: let
inherit (lib.modules) mkDefault;
in {
}: {
imports =
[
(modulesPath + "/profiles/qemu-guest.nix")
@ -18,6 +15,7 @@ _: let
oracle_micro
])
++ (with tree.nixos.servers; [
rustdesk
]);
system.stateVersion = "23.11";