1
0
forked from extern/zaneyos

Move to using cleaner import structure and split services into its own file

This commit is contained in:
Tyler Kelley 2024-01-20 16:03:08 -06:00
parent f5427a8819
commit 7887a984a1
4 changed files with 43 additions and 34 deletions

10
config/system/default.nix Normal file
View File

@ -0,0 +1,10 @@
{
import = [
./amd-opengl.nix
./autorun.nix
./boot.nix
./intel-opengl.nix
./polkit.nix
./services.nix
];
}

View File

@ -0,0 +1,31 @@
{ pkgs, config, ... }:
{
# List services that you want to enable:
services.openssh.enable = true;
services.fstrim.enable = true;
services.xserver = {
enable = true;
layout = "us";
xkbVariant = "";
libinput.enable = true;
videoDrivers = [ "amdgpu" ];
displayManager.gdm = {
enable = true;
wayland = true;
};
};
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
hardware.pulseaudio.enable = false;
sound.enable = true;
security.rtkit.enable = true;
programs.thunar.enable = true;
services.gvfs.enable = true;
services.tumbler.enable = true;
}

View File

@ -20,7 +20,7 @@
gitEmail = "tylerzanekelley@gmail.com";
theLocale = "en_US.UTF-8";
theTimezone = "America/Chicago";
theme = "catppuccin-mocha";
theme = "gruvbox-dark-medium";
browser = "firefox";
wallpaperGit = "https://gitlab.com/Zaney/my-wallpapers.git";
wallpaperDir = "/home/${username}/Pictures/Wallpapers";

View File

@ -6,11 +6,7 @@
imports =
[
./hardware.nix
./config/system/amd-opengl.nix
./config/system/autorun.nix
./config/system/boot.nix
./config/system/intel-opengl.nix
./config/system/polkit.nix
./config/system
];
# Enable networking
@ -79,34 +75,6 @@
POLKIT_BIN = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
};
# List services that you want to enable:
services.openssh.enable = true;
services.fstrim.enable = true;
services.xserver = {
enable = true;
layout = "us";
xkbVariant = "";
libinput.enable = true;
videoDrivers = [ "amdgpu" ];
displayManager.gdm = {
enable = true;
wayland = true;
};
};
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
hardware.pulseaudio.enable = false;
sound.enable = true;
security.rtkit.enable = true;
programs.thunar.enable = true;
services.gvfs.enable = true;
services.tumbler.enable = true;
# Optimization settings and garbage collection automation
nix = {
settings.auto-optimise-store = true;