Make a hosts folder for system and home, remove legacy.nix cause I never used it, change some comments
This commit is contained in:
parent
1a096662e1
commit
d9469fc321
36 changed files with 380 additions and 402 deletions
7
system/modules/extlinux.nix
Normal file
7
system/modules/extlinux.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
# For ARM machines
|
||||
boot.loader = {
|
||||
generic-extlinux-compatible.enable = true;
|
||||
grub.enable = false;
|
||||
};
|
||||
}
|
6
system/modules/filesystems.nix
Normal file
6
system/modules/filesystems.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{lib, ...}: {
|
||||
boot.supportedFilesystems = {
|
||||
ntfs = true;
|
||||
zfs = lib.mkForce false;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
}
|
4
system/modules/nouveau.nix
Normal file
4
system/modules/nouveau.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{pkgs, ...}: {
|
||||
# Enable video drivers
|
||||
services.xserver.videoDrivers = ["nouveau"];
|
||||
}
|
10
system/modules/nvidia.nix
Normal file
10
system/modules/nvidia.nix
Normal 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
12
system/modules/opengl.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
|
|
7
system/modules/systemdboot.nix
Normal file
7
system/modules/systemdboot.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
# For UEFI machines
|
||||
boot.loader.systemd-boot = {
|
||||
enable = true;
|
||||
netbootxyz.enable = true;
|
||||
};
|
||||
}
|
7
system/modules/wireless.nix
Normal file
7
system/modules/wireless.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
# Enable wireless networkmanager
|
||||
networking = {
|
||||
networkmanager.enable = true;
|
||||
enableB43Firmware = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue