Switched To A New/Modified Structure

Based heavily on https://github.com/nmasur/dotfiles
This commit is contained in:
Annika Merris 2024-05-17 08:04:19 -04:00
parent 634a129840
commit 99a16590b3
25 changed files with 495 additions and 703 deletions

View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
./hardware
];
}

View file

@ -0,0 +1,28 @@
{ config, pkgs, lib, ... }:
{
boot.loader = lib.mkIf (config.physical) {
grub = {
enable = true;
efiSupport = true;
useOSProber = true;
gfxmodeEfi = "1920x1080";
configurationLimit = 25;
device = "nodev";
# Display menu indefinitely if holding shift key
extraConfig = ''
if keystatus --shift; then
set timeout=-1
else
set timeout=3
fi
'';
};
efi.canTouchEfiVariables = true;
};
boot.supportedFilesystems = lib.mkIf config.physical [ "ntfs" ];
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
}

View file

@ -0,0 +1,11 @@
{ lib, ... }:
{
imports = [
./boot.nix
];
options = {
physical = lib.mkEnableOption "Whether this machine is a physical device.";
server = lib.mkEnableOption "Whether this machine is a server.";
};
}