push
This commit is contained in:
16
core/audio.nix
Normal file
16
core/audio.nix
Normal 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
10
core/boot.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
}
|
||||
14
core/core.nix
Normal file
14
core/core.nix
Normal 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
20
core/graphics.nix
Normal 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
20
core/locale.nix
Normal 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
10
core/network.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
networking = {
|
||||
hostName = "nix";
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
}
|
||||
12
core/security.nix
Normal file
12
core/security.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
security = {
|
||||
rtkit.enable = true;
|
||||
|
||||
sudo = {
|
||||
enable = true;
|
||||
wheelNeedsPassword = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
9
core/user.nix
Normal file
9
core/user.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
users.users.bug = {
|
||||
isNormalUser = true;
|
||||
description = "Bug";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user