nix: compact audio.nix, applications.nix and login.nix into a singular file

if you are gonna use a system with a desktop you would probably enable
all of them in the first place
This commit is contained in:
Nico 2025-05-03 16:15:59 +10:00
parent 9349a61dd2
commit f188ff6723
5 changed files with 38 additions and 44 deletions

View file

@ -23,10 +23,8 @@
./modules/nix.nix
./modules/shell.nix
./modules/linux/applications.nix
./modules/linux/audio.nix
./modules/linux/desktop.nix
./modules/linux/hyprland.nix
./modules/linux/login.nix
./modules/linux/stow.nix
./modules/linux/users.nix
./modules/linux/secureboot.nix

View file

@ -1,12 +0,0 @@
{ config, lib, pkgs, ... }:
{
programs.steam = {
extraPackages = [ pkgs.gamescope ];
gamescopeSession.enable = true;
extest.enable = true;
};
services.flatpak.enable = true;
}

View file

@ -1,13 +0,0 @@
{ config, lib, pkgs, ... }:
{
# Enable sound.
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
}

37
modules/linux/desktop.nix Normal file
View file

@ -0,0 +1,37 @@
{ config, lib, pkgs, ... }:
{
# Enable sound.
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
# Enable display manager w/autologin
services.greetd = {
enable = true;
settings = {
initial_session = {
command = "${pkgs.hyprland}/bin/Hyprland";
user = "nico";
};
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --asterisks --time --greeting 'nyaaa~~'";
};
};
};
# Applications
programs.steam = {
# doesn't do anything if steam isn't enabled so safe here
extraPackages = [ pkgs.gamescope ];
gamescopeSession.enable = true;
extest.enable = true;
};
services.flatpak.enable = true;
}

View file

@ -1,16 +0,0 @@
{ config, lib, pkgs, ... }:
{
services.greetd = {
enable = true;
settings = {
initial_session = {
command = "${pkgs.hyprland}/bin/Hyprland";
user = "nico";
};
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --asterisks --time --greeting 'nyaaa~~'";
};
};
};
}