Re-organize Nix Modules

- Move all programs into system folder
- Create `default.nix` for each folder to reduce number of imports
  in configuration.nix
- Rename some modules to be more generic and less package
  specific to allow for easy swapping of programs in the future
- Update flake.lock
This commit is contained in:
Sravan Balaji
2024-03-27 16:12:10 -04:00
parent ee2aff1f08
commit 59f88dad0f
41 changed files with 277 additions and 92 deletions

View File

@@ -1,5 +0,0 @@
{ config, lib, pkgs, ... }:
{
programs.gamemode.enable = true;
}

8
system/gui/default.nix Normal file
View File

@@ -0,0 +1,8 @@
{ config, lib, pkgs, ... }:
{
imports = [
./x11.nix
./fonts.nix
];
}

View File

@@ -2,11 +2,8 @@
{
imports = [
./x11.nix
./default.nix
./lightdm.nix
../app/terminal/kitty.nix
../app/launcher/dmenu.nix
../app/launcher/rofi.nix
];
services.xserver.windowManager.dwm.enable = true;

View File

@@ -2,6 +2,7 @@
{
fonts.packages = with pkgs; [
corefonts
powerline
font-awesome
ubuntu_font_family

View File

@@ -2,7 +2,7 @@
{
imports = [
./x11.nix
./default.nix
];
services.xserver.displayManager.gdm.enable = true;

View File

@@ -1,12 +1,6 @@
{ config, lib, pkgs, ... }:
{
imports = [
../util/dbus.nix
../util/gnome-keyring.nix
./fonts.nix
];
services.xserver = {
enable = true;
xkb = {

View File

@@ -0,0 +1,13 @@
{ config, lib, pkgs, ... }:
{
imports = [
./audio.nix
./automount.nix
./bluetooth.nix
./kernel.nix
./opengl.nix
./openrgb.nix
./printing.nix
];
}

View File

@@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
vivaldi
];
}

View File

@@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
imports = [
./vscode.nix
];
}

View File

@@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
vscode
];
}

View File

@@ -0,0 +1,8 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
wine
protonup-qt
];
}

View File

@@ -0,0 +1,9 @@
{ config, lib, pkgs, ... }:
{
imports = [
./utilities.nix
./launchers.nix
./compatibility.nix
];
}

View File

@@ -6,4 +6,11 @@
remotePlay.openFirewall = true;
gamescopeSession.enable = true;
};
environment.systemPackages = with pkgs; [
bottles
lutris
heroic
prismlauncher
];
}

View File

@@ -0,0 +1,15 @@
{ config, lib, pkgs, ... }:
{
programs.gamemode = {
enable = true;
# settings = {};
# enableRenice = true;
};
environment.systemPackages = with pkgs; [
mangohud
goverlay
vkbasalt
];
}

View File

@@ -0,0 +1,8 @@
{ config, lib, pkgs, ... }:
{
imports = [
./dmenu.nix
./rofi.nix
];
}

View File

@@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
dmenu
];
}

View File

@@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
rofi
];
}

View File

@@ -0,0 +1,8 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
blender
obs-studio
];
}

View File

@@ -0,0 +1,9 @@
{ config, lib, pkgs, ... }:
{
imports = [
./players.nix
./editors.nix
./creation.nix
];
}

View File

@@ -0,0 +1,9 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
gimp
libsForQt5.kdenlive
ffmpeg
];
}

View File

@@ -0,0 +1,12 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
gnome.eog
mpv
trackma-gtk
pocket-casts
spotify
spicetify-cli
];
}

View File

@@ -0,0 +1,10 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
beeper
discord
signal-desktop
zoom-us
];
}

View File

@@ -0,0 +1,10 @@
{ config, lib, pkgs, ... }:
{
imports = [
./office.nix
./finance.nix
./notes.nix
./communication.nix
];
}

View File

@@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
gnucash
];
}

View File

@@ -0,0 +1,8 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
anytype
logseq
];
}

View File

@@ -0,0 +1,10 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
onlyoffice-bin
xournalpp
zathura
libsForQt5.okular
];
}

View File

@@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
kitty
];
}

View File

@@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
prusa-slicer
];
}

View File

@@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
ventoy
];
}

View File

@@ -0,0 +1,11 @@
{ config, lib, pkgs, ... }:
{
imports = [
./3d-printing.nix
./bootable-media.nix
./file-syncing.nix
./keyboard-configuration.nix
./passwords.nix
];
}

View File

@@ -0,0 +1,5 @@
{ config, lib, pkgs, ... }:
{
services.syncthing.enable = true;
}

View File

@@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
via
];
}

View File

@@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
bitwarden
];
}

View File

@@ -0,0 +1,8 @@
{ config, lib, pkgs, ... }:
{
imports = [
./firewall.nix
./gpg.nix
];
}

8
system/util/default.nix Normal file
View File

@@ -0,0 +1,8 @@
{ config, lib, pkgs, ... }:
{
imports = [
./dbus.nix
./gnome-keyring.nix
];
}