feat: introduce treefmt and fmt all
This commit is contained in:
parent
80250b0179
commit
27c6c4f9fa
237 changed files with 5440 additions and 5214 deletions
|
@ -5,25 +5,26 @@
|
|||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
nixos-init-script = ''
|
||||
#!${pkgs.stdenv.shell}
|
||||
|
||||
export HOME=/root
|
||||
export PATH=${
|
||||
pkgs.lib.makeBinPath [
|
||||
config.nix.package
|
||||
pkgs.systemd
|
||||
pkgs.gnugrep
|
||||
pkgs.gnused
|
||||
config.system.build.nixos-rebuild
|
||||
config.system.build.nixos-install
|
||||
pkgs.utillinux
|
||||
pkgs.e2fsprogs
|
||||
pkgs.coreutils
|
||||
pkgs.hdparm
|
||||
]
|
||||
}:$PATH
|
||||
pkgs.lib.makeBinPath [
|
||||
config.nix.package
|
||||
pkgs.systemd
|
||||
pkgs.gnugrep
|
||||
pkgs.gnused
|
||||
config.system.build.nixos-rebuild
|
||||
config.system.build.nixos-install
|
||||
pkgs.utillinux
|
||||
pkgs.e2fsprogs
|
||||
pkgs.coreutils
|
||||
pkgs.hdparm
|
||||
]
|
||||
}:$PATH
|
||||
export NIX_PATH=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
|
||||
|
||||
set -xe
|
||||
|
@ -61,7 +62,8 @@
|
|||
nixos-install
|
||||
reboot
|
||||
'';
|
||||
in {
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal-new-kernel.nix>
|
||||
|
||||
|
@ -70,13 +72,11 @@ in {
|
|||
# <nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
|
||||
];
|
||||
|
||||
isoImage.isoName =
|
||||
lib.mkForce
|
||||
"${config.isoImage.isoBaseName}-${pkgs.stdenv.hostPlatform.system}.iso";
|
||||
isoImage.isoName = lib.mkForce "${config.isoImage.isoBaseName}-${pkgs.stdenv.hostPlatform.system}.iso";
|
||||
boot.loader.timeout = lib.mkForce 0;
|
||||
boot.postBootCommands = "";
|
||||
|
||||
environment.systemPackages = [];
|
||||
environment.systemPackages = [ ];
|
||||
|
||||
users.users.root = {
|
||||
openssh.authorizedKeys.keys = [
|
||||
|
@ -85,18 +85,18 @@ in {
|
|||
};
|
||||
|
||||
services.gpm.enable = true;
|
||||
systemd.services.sshd.wantedBy = lib.mkForce ["multi-user.target"];
|
||||
systemd.services.sshd.wantedBy = lib.mkForce [ "multi-user.target" ];
|
||||
|
||||
systemd.services.nixos-init = {
|
||||
script = nixos-init-script;
|
||||
path = with pkgs; [];
|
||||
path = with pkgs; [ ];
|
||||
|
||||
description = "Initialize /dev/vda from configuration.nix found at /dev/vdb";
|
||||
enable = true;
|
||||
|
||||
wantedBy = ["multi-user.target"];
|
||||
after = ["multi-user.target"];
|
||||
requires = ["network-online.target"];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "multi-user.target" ];
|
||||
requires = [ "network-online.target" ];
|
||||
|
||||
restartIfChanged = false;
|
||||
unitConfig.X-StopOnRemoval = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue