task | reformatted with nixfmt

This commit is contained in:
Don Harper 2024-12-13 11:50:29 -06:00
parent e3fea64660
commit c3a0a0847f
119 changed files with 1010 additions and 2135 deletions

View file

@ -1,10 +1,4 @@
{
modulesPath,
config,
lib,
pkgs,
...
}: {
{ modulesPath, config, lib, pkgs, ... }: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix")
@ -12,13 +6,12 @@
];
boot = {
kernelPackages = pkgs.linuxPackages_latest;
kernelParams = ["consoleblank=60"];
kernelParams = [ "consoleblank=60" ];
loader = {
timeout = 10;
/*
systemd-boot = {
enable = true;
};
/* systemd-boot = {
enable = true;
};
*/
grub = {
device = "nodev";
@ -35,17 +28,12 @@
enable = true;
theme = "breeze";
};
kernel = {
sysctl = {"vm.swappiness" = 10;};
};
kernel = { sysctl = { "vm.swappiness" = 10; }; };
};
services.openssh.enable = true;
environment.systemPackages = map lib.lowPrio [
pkgs.curl
pkgs.git
pkgs.git-crypt
];
environment.systemPackages =
map lib.lowPrio [ pkgs.curl pkgs.git pkgs.git-crypt ];
users.users.root = {
initialPassword = "changeme";

View file

@ -1,10 +1,4 @@
{
modulesPath,
config,
lib,
pkgs,
...
}: {
{ modulesPath, config, lib, pkgs, ... }: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix")
@ -12,13 +6,12 @@
];
boot = {
kernelPackages = pkgs.linuxPackages_latest;
kernelParams = ["consoleblank=60"];
kernelParams = [ "consoleblank=60" ];
loader = {
timeout = 10;
/*
systemd-boot = {
enable = true;
};
/* systemd-boot = {
enable = true;
};
*/
grub = {
device = "nodev";
@ -35,17 +28,12 @@
enable = true;
theme = "breeze";
};
kernel = {
sysctl = {"vm.swappiness" = 10;};
};
kernel = { sysctl = { "vm.swappiness" = 10; }; };
};
services.openssh.enable = true;
environment.systemPackages = map lib.lowPrio [
pkgs.curl
pkgs.git
pkgs.git-crypt
];
environment.systemPackages =
map lib.lowPrio [ pkgs.curl pkgs.git pkgs.git-crypt ];
users.users.root = {
initialPassword = "changeme";

View file

@ -1,10 +1,4 @@
{
modulesPath,
config,
lib,
pkgs,
...
}: {
{ modulesPath, config, lib, pkgs, ... }: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix")
@ -39,41 +33,27 @@
# };
boot = {
kernelPackages = pkgs.linuxPackages_latest;
kernelParams = ["consoleblank=60"];
kernelParams = [ "consoleblank=60" ];
# extraModulePackages = [config.boot.kernelPackages.ddcci-driver];
# kernelModules = ["i2c-dev" "ddcci_backlight"];
loader =
if (pkgs.hostPlatform != lib.mkDefault "aarch64-linux")
then {
systemd-boot = {
enable = true;
};
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
}
else {
grub.enable = false;
generic-extlinux-compatible.enable = true;
};
plymouth = {
enable = true;
};
kernel = {
sysctl = {
"vm.swappiness" = 10;
loader = if (pkgs.hostPlatform != lib.mkDefault "aarch64-linux") then {
systemd-boot = { enable = true; };
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
} else {
grub.enable = false;
generic-extlinux-compatible.enable = true;
};
plymouth = { enable = true; };
kernel = { sysctl = { "vm.swappiness" = 10; }; };
};
services.openssh.enable = true;
environment.systemPackages = map lib.lowPrio [
pkgs.curl
pkgs.git
pkgs.git-crypt
];
environment.systemPackages =
map lib.lowPrio [ pkgs.curl pkgs.git pkgs.git-crypt ];
users.users.root = {
initialPassword = "changeme";

View file

@ -1,5 +1,5 @@
# Example to create a bios compatible gpt partition
{lib, ...}: {
{ lib, ... }: {
disko.devices = {
disk.disk1 = {
device = lib.mkDefault "/dev/vda";
@ -43,9 +43,7 @@
type = "filesystem";
format = "ext4";
mountpoint = "/";
mountOptions = [
"defaults"
];
mountOptions = [ "defaults" ];
};
};
};

View file

@ -1,5 +1,5 @@
# Example to create a bios compatible gpt partition
{lib, ...}: {
{ lib, ... }: {
disko.devices = {
disk.disk1 = {
device = lib.mkDefault "/dev/sda";
@ -43,9 +43,7 @@
type = "filesystem";
format = "ext4";
mountpoint = "/";
mountOptions = [
"defaults"
];
mountOptions = [ "defaults" ];
};
};
};

View file

@ -1,5 +1,5 @@
# Example to create a bios compatible gpt partition
{lib, ...}: {
{ lib, ... }: {
disko.devices = {
disk.disk1 = {
device = lib.mkDefault "/dev/sda";
@ -43,9 +43,7 @@
type = "filesystem";
format = "ext4";
mountpoint = "/";
mountOptions = [
"defaults"
];
mountOptions = [ "defaults" ];
};
};
};

View file

@ -3,31 +3,18 @@
inputs.disko.url = "github:nix-community/disko";
inputs.disko.inputs.nixpkgs.follows = "nixpkgs";
outputs = {
nixpkgs,
disko,
...
}: {
outputs = { nixpkgs, disko, ... }: {
nixosConfigurations.smaug = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
disko.nixosModules.disko
./configuration.nix
];
modules = [ disko.nixosModules.disko ./configuration.nix ];
};
nixosConfigurations.vm = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
disko.nixosModules.disko
./configuration-vm.nix
];
modules = [ disko.nixosModules.disko ./configuration-vm.nix ];
};
nixosConfigurations.w2 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
disko.nixosModules.disko
./configuration-vps.nix
];
modules = [ disko.nixosModules.disko ./configuration-vps.nix ];
};
};
}