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

@@ -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

@@ -0,0 +1,16 @@
{ config, lib, pkgs, ... }:
{
programs.steam = {
enable = true;
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
];
}