This commit is contained in:
4DBug
2025-03-22 14:17:10 -05:00
parent c9770a65bb
commit 2791c62305
17 changed files with 358 additions and 282 deletions

16
core/audio.nix Normal file
View File

@@ -0,0 +1,16 @@
{ config, ... }:
{
hardware.pulseaudio.enable = false;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
}

10
core/boot.nix Normal file
View File

@@ -0,0 +1,10 @@
{ config, ... }:
{
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
}

14
core/core.nix Normal file
View File

@@ -0,0 +1,14 @@
{ config, ... }:
{
imports = [
./user.nix
./audio.nix
./graphics.nix
./locale.nix
./network.nix
./boot.nix
./security.nix
];
}

20
core/graphics.nix Normal file
View File

@@ -0,0 +1,20 @@
{ config, ... }:
{
services.xserver.videoDrivers = ["nvidia"];
hardware = {
graphics = {
enable = true;
};
nvidia = {
modesetting.enable = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.beta;
};
};
}

20
core/locale.nix Normal file
View File

@@ -0,0 +1,20 @@
{ config, ... }:
{
time.timeZone = "America/Chicago";
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
};
}

10
core/network.nix Normal file
View File

@@ -0,0 +1,10 @@
{ config, ... }:
{
networking = {
hostName = "nix";
networkmanager.enable = true;
};
}

12
core/security.nix Normal file
View File

@@ -0,0 +1,12 @@
{ config, ... }:
{
security = {
rtkit.enable = true;
sudo = {
enable = true;
wheelNeedsPassword = false;
};
};
}

9
core/user.nix Normal file
View File

@@ -0,0 +1,9 @@
{ config, ... }:
{
users.users.bug = {
isNormalUser = true;
description = "Bug";
extraGroups = [ "networkmanager" "wheel" ];
};
}