Add bunch more programs / services modularly
This commit is contained in:
@@ -8,6 +8,17 @@
|
||||
imports = [
|
||||
../../system/hardware-configuration.nix
|
||||
../../disko/${systemSettings.diskoConfig}.nix
|
||||
../../system/hardware/kernel.nix
|
||||
../../system/hardware/bluetooth.nix
|
||||
../../system/hardware/opengl.nix
|
||||
../../system/hardware/openrgb.nix
|
||||
../../system/hardware/printing.nix
|
||||
../../system/hardware/automount.nix
|
||||
../../system/security/firewall.nix
|
||||
../../system/app/gaming/steam.nix
|
||||
../../system/app/gaming/gamemode.nix
|
||||
../../system/hardware/audio.nix
|
||||
../../system/gui/dwm.nix
|
||||
];
|
||||
|
||||
nix = {
|
||||
|
6
system/app/gaming/gamemode.nix
Normal file
6
system/app/gaming/gamemode.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [ pkgs.gamemode ];
|
||||
programs.gamemode.enable = true;
|
||||
}
|
10
system/app/gaming/steam.nix
Normal file
10
system/app/gaming/steam.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [ pkgs.steam ];
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
gamescopeSession.enable = true;
|
||||
};
|
||||
}
|
5
system/app/launcher/dmenu.nix
Normal file
5
system/app/launcher/dmenu.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [ pkgs.dmenu ];
|
||||
}
|
5
system/app/launcher/rofi.nix
Normal file
5
system/app/launcher/rofi.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [ pkgs.rofi ];
|
||||
}
|
5
system/app/terminal/kitty.nix
Normal file
5
system/app/terminal/kitty.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [ pkgs.kitty ];
|
||||
}
|
15
system/gui/dwm.nix
Normal file
15
system/gui/dwm.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./x11.nix
|
||||
./lightdm.nix
|
||||
../app/terminal/kitty.nix
|
||||
../app/launcher/dmenu.nix
|
||||
../app/launcher/rofi.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = [ pkgs.dwm ];
|
||||
services.xserver.windowManager.dwm.enable = true;
|
||||
services.xserver.displayManager.defaultSession = "dwm";
|
||||
}
|
10
system/gui/fonts.nix
Normal file
10
system/gui/fonts.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
fonts.packages = with pkgs; [
|
||||
nerdfonts
|
||||
powerline
|
||||
font-awesome
|
||||
ubuntu_font_family
|
||||
];
|
||||
}
|
8
system/gui/lightdm.nix
Normal file
8
system/gui/lightdm.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [ pkgs.lightdm ];
|
||||
services.xserver.displayManager = {
|
||||
lightdm.enable = true;
|
||||
};
|
||||
}
|
16
system/gui/x11.nix
Normal file
16
system/gui/x11.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../util/dbus.nix
|
||||
../util/gnome-keyring.nix
|
||||
./fonts.nix
|
||||
];
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
layout = "us";
|
||||
xkbVariant = "";
|
||||
xkbOptions = "";
|
||||
};
|
||||
}
|
13
system/hardware/audio.nix
Normal file
13
system/hardware/audio.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [ pkgs.pipewire ];
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
}
|
12
system/hardware/automount.nix
Normal file
12
system/hardware/automount.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [
|
||||
pkgs.gvfs
|
||||
pkgs.udisks
|
||||
pkgs.udiskie
|
||||
];
|
||||
services.devmon.enable = true;
|
||||
services.gvfs.enable = true;
|
||||
services.udisks2.enable = true;
|
||||
}
|
7
system/hardware/bluetooth.nix
Normal file
7
system/hardware/bluetooth.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [ pkgs.blueman ];
|
||||
hardware.bluetooth.enable = true;
|
||||
services.blueman.enable = true;
|
||||
}
|
6
system/hardware/kernel.nix
Normal file
6
system/hardware/kernel.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
boot.kernelPackages = pkgs.linuxPackages_zen;
|
||||
boot.consoleLogLevel = 0;
|
||||
}
|
5
system/hardware/opengl.nix
Normal file
5
system/hardware/opengl.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
hardware.opengl.enable = true;
|
||||
}
|
8
system/hardware/openrgb.nix
Normal file
8
system/hardware/openrgb.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [ pkgs.openrgb-with-all-plugins ];
|
||||
services.hardware.openrgb = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
13
system/hardware/printing.nix
Normal file
13
system/hardware/printing.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [
|
||||
pkgs.cups
|
||||
pkgs.cups-filters
|
||||
pkgs.avahi
|
||||
];
|
||||
services.printing.enable = true;
|
||||
services.avahi.enable = true;
|
||||
services.avahi.nssmdns4 = true;
|
||||
services.avahi.openFirewall = true;
|
||||
}
|
9
system/security/firewall.nix
Normal file
9
system/security/firewall.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [
|
||||
pkgs.firewalld
|
||||
pkgs.firewalld-gui
|
||||
];
|
||||
networking.firewall.enable = true;
|
||||
}
|
8
system/security/gpg.nix
Normal file
8
system/security/gpg.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
}
|
12
system/util/dbus.nix
Normal file
12
system/util/dbus.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.dbus = {
|
||||
enable = true;
|
||||
packages = [ pkgs.dconf ];
|
||||
};
|
||||
|
||||
programs.dconf = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
7
system/util/gnome-keyring.nix
Normal file
7
system/util/gnome-keyring.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.gnome = {
|
||||
gnome-keyring.enable = true;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user