forked from nico/dots
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:
parent
9349a61dd2
commit
f188ff6723
5 changed files with 38 additions and 44 deletions
|
|
@ -23,10 +23,8 @@
|
||||||
./modules/nix.nix
|
./modules/nix.nix
|
||||||
./modules/shell.nix
|
./modules/shell.nix
|
||||||
|
|
||||||
./modules/linux/applications.nix
|
./modules/linux/desktop.nix
|
||||||
./modules/linux/audio.nix
|
|
||||||
./modules/linux/hyprland.nix
|
./modules/linux/hyprland.nix
|
||||||
./modules/linux/login.nix
|
|
||||||
./modules/linux/stow.nix
|
./modules/linux/stow.nix
|
||||||
./modules/linux/users.nix
|
./modules/linux/users.nix
|
||||||
./modules/linux/secureboot.nix
|
./modules/linux/secureboot.nix
|
||||||
|
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
programs.steam = {
|
|
||||||
extraPackages = [ pkgs.gamescope ];
|
|
||||||
gamescopeSession.enable = true;
|
|
||||||
extest.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.flatpak.enable = true;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -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
37
modules/linux/desktop.nix
Normal 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;
|
||||||
|
}
|
||||||
|
|
@ -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~~'";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue