task | formating

This commit is contained in:
Don Harper 2024-09-21 14:03:24 -05:00
parent 427ee38d7a
commit 651852986d
6 changed files with 64 additions and 45 deletions

View file

@ -1,4 +1,10 @@
{ modulesPath, config, lib, pkgs, ... }: {
{
modulesPath,
config,
lib,
pkgs,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix")
@ -6,12 +12,14 @@
];
boot = {
kernelPackages = pkgs.linuxPackages_latest;
kernelParams = [ "consoleblank=60" ];
kernelParams = ["consoleblank=60"];
loader = {
timeout = 10;
/* systemd-boot = {
/*
systemd-boot = {
enable = true;
}; */
};
*/
grub = {
device = "nodev";
efiSupport = true;
@ -28,7 +36,7 @@
theme = "breeze";
};
kernel = {
sysctl = { "vm.swappiness" = 10;};
sysctl = {"vm.swappiness" = 10;};
};
};
services.openssh.enable = true;

View file

@ -1,4 +1,10 @@
{ modulesPath, config, lib, pkgs, ... }: {
{
modulesPath,
config,
lib,
pkgs,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix")

View file

@ -1,6 +1,5 @@
# Example to create a bios compatible gpt partition
{ lib, ... }:
{
{lib, ...}: {
disko.devices = {
disk.disk1 = {
device = lib.mkDefault "/dev/vda";

View file

@ -1,6 +1,5 @@
# Example to create a bios compatible gpt partition
{ lib, ... }:
{
{lib, ...}: {
disko.devices = {
disk.disk1 = {
device = lib.mkDefault "/dev/sda";

View file

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