forked from extern/zaneyos
Move to using cleaner import structure and split services into its own file
This commit is contained in:
parent
f5427a8819
commit
7887a984a1
10
config/system/default.nix
Normal file
10
config/system/default.nix
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
import = [
|
||||
./amd-opengl.nix
|
||||
./autorun.nix
|
||||
./boot.nix
|
||||
./intel-opengl.nix
|
||||
./polkit.nix
|
||||
./services.nix
|
||||
];
|
||||
}
|
31
config/system/services.nix
Normal file
31
config/system/services.nix
Normal 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;
|
||||
}
|
@ -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";
|
||||
|
34
system.nix
34
system.nix
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user