Make a hosts folder for system and home, remove legacy.nix cause I never used it, change some comments

This commit is contained in:
Jimbo 2024-10-02 21:35:29 -04:00
parent 1a096662e1
commit d9469fc321
36 changed files with 380 additions and 402 deletions

View file

@ -0,0 +1,7 @@
{
# For ARM machines
boot.loader = {
generic-extlinux-compatible.enable = true;
grub.enable = false;
};
}

View file

@ -0,0 +1,6 @@
{lib, ...}: {
boot.supportedFilesystems = {
ntfs = true;
zfs = lib.mkForce false;
};
}

View file

@ -1,14 +0,0 @@
{config, inputs, lib, ...}: {
# This will add each flake input as a registry to make nix commands consistent with your flake
nix.registry = (lib.mapAttrs (_: flake: {inherit flake;})) ((lib.filterAttrs (_: lib.isType "flake")) inputs);
# This will add your inputs to the system's legacy channels making legacy nix commands consistent
nix.nixPath = ["/etc/nix/path"];
environment.etc =
lib.mapAttrs'
(name: value: {
name = "nix/path/${name}";
value.source = value.flake;
})
config.nix.registry;
}

View file

@ -0,0 +1,4 @@
{pkgs, ...}: {
# Enable video drivers
services.xserver.videoDrivers = ["nouveau"];
}

10
system/modules/nvidia.nix Normal file
View file

@ -0,0 +1,10 @@
{pkgs, config, ...}: {
# Enable video drivers
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
modesetting.enable = true;
nvidiaSettings = false;
package = config.boot.kernelPackages.nvidiaPackages.beta;
open = false;
};
}

12
system/modules/opengl.nix Normal file
View file

@ -0,0 +1,12 @@
{pkgs, ...}: {
# Enable OpenGL
hardware.opengl = {
enable = true;
driSupport32Bit = true;
extraPackages = with pkgs; [
vulkan-loader
vulkan-validation-layers
vulkan-extension-layer
];
};
}

View file

@ -5,8 +5,7 @@
doas = {
enable = true;
extraRules = [
# Give wheel root access, allow persistant session
{
{ # Give wheel root access
groups = ["wheel"];
keepEnv = true;
persist = true;

View file

@ -0,0 +1,7 @@
{
# For UEFI machines
boot.loader.systemd-boot = {
enable = true;
netbootxyz.enable = true;
};
}

View file

@ -0,0 +1,7 @@
{
# Enable wireless networkmanager
networking = {
networkmanager.enable = true;
enableB43Firmware = true;
};
}