Add alejandra

This commit is contained in:
Dave Gallant
2022-05-28 10:30:29 -04:00
parent 80e7729ab4
commit d2aaa3920f
31 changed files with 334 additions and 323 deletions

View File

@@ -1,11 +1,9 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
nixpkgs.config.allowUnfree = true;
environment = { variables = { LANG = "en_US.UTF-8"; }; };
environment = {variables = {LANG = "en_US.UTF-8";};};
networking = { hostName = "demeter"; };
networking = {hostName = "demeter";};
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;

View File

@@ -1,7 +1,9 @@
{ config, pkgs, ... }:
{
imports = [ ./hardware.nix ];
config,
pkgs,
...
}: {
imports = [./hardware.nix];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
@@ -14,12 +16,24 @@
hostName = "hephaestus";
interfaces.enp34s0 = {
useDHCP = true;
/* ipv4.addresses = [ */
/* { */
/* address = "192.168.1.69"; */
/* prefixLength = 24; */
/* } */
/* ]; */
/*
ipv4.addresses = [
*/
/*
{
*/
/*
address = "192.168.1.69";
*/
/*
prefixLength = 24;
*/
/*
}
*/
/*
];
*/
};
defaultGateway = {
address = "192.168.1.2";
@@ -36,9 +50,9 @@
};
services.sshd.enable = true;
services.tailscale = { enable = true; };
services.tailscale = {enable = true;};
services.xserver = {
videoDrivers = [ "nvidia" ];
videoDrivers = ["nvidia"];
deviceSection = ''
Option "Coolbits" "4"
'';
@@ -48,6 +62,4 @@
services.udev.extraRules = ''
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0666"
'';
}

View File

@@ -1,13 +1,16 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
boot.initrd.availableKernelModules =
[ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback.out ];
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [config.boot.kernelPackages.v4l2loopback.out];
powerManagement.cpuFreqGovernor = "balanced";
@@ -35,13 +38,11 @@
fsType = "vfat";
};
swapDevices =
[{ device = "/dev/disk/by-uuid/aca92a73-2941-40ca-88c4-0dd8607d232a"; }];
swapDevices = [{device = "/dev/disk/by-uuid/aca92a73-2941-40ca-88c4-0dd8607d232a";}];
fileSystems."/mnt/storage" = {
device = "/dev/disk/by-uuid/0f592fca-1d4e-43f7-9bf4-f1c3e19e841f";
fsType = "ext4";
};
hardware.video.hidpi.enable = lib.mkDefault true;
}