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:
7
system/programs/browser/vivaldi.nix
Normal file
7
system/programs/browser/vivaldi.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
vivaldi
|
||||
];
|
||||
}
|
7
system/programs/development/default.nix
Normal file
7
system/programs/development/default.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./vscode.nix
|
||||
];
|
||||
}
|
7
system/programs/development/vscode.nix
Normal file
7
system/programs/development/vscode.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
vscode
|
||||
];
|
||||
}
|
8
system/programs/gaming/compatibility.nix
Normal file
8
system/programs/gaming/compatibility.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
wine
|
||||
protonup-qt
|
||||
];
|
||||
}
|
9
system/programs/gaming/default.nix
Normal file
9
system/programs/gaming/default.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./utilities.nix
|
||||
./launchers.nix
|
||||
./compatibility.nix
|
||||
];
|
||||
}
|
16
system/programs/gaming/launchers.nix
Normal file
16
system/programs/gaming/launchers.nix
Normal 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
|
||||
];
|
||||
}
|
15
system/programs/gaming/utilities.nix
Normal file
15
system/programs/gaming/utilities.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.gamemode = {
|
||||
enable = true;
|
||||
# settings = {};
|
||||
# enableRenice = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
mangohud
|
||||
goverlay
|
||||
vkbasalt
|
||||
];
|
||||
}
|
8
system/programs/launcher/default.nix
Normal file
8
system/programs/launcher/default.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./dmenu.nix
|
||||
./rofi.nix
|
||||
];
|
||||
}
|
7
system/programs/launcher/dmenu.nix
Normal file
7
system/programs/launcher/dmenu.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
dmenu
|
||||
];
|
||||
}
|
7
system/programs/launcher/rofi.nix
Normal file
7
system/programs/launcher/rofi.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
rofi
|
||||
];
|
||||
}
|
8
system/programs/media/creation.nix
Normal file
8
system/programs/media/creation.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
blender
|
||||
obs-studio
|
||||
];
|
||||
}
|
9
system/programs/media/default.nix
Normal file
9
system/programs/media/default.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./players.nix
|
||||
./editors.nix
|
||||
./creation.nix
|
||||
];
|
||||
}
|
9
system/programs/media/editors.nix
Normal file
9
system/programs/media/editors.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
gimp
|
||||
libsForQt5.kdenlive
|
||||
ffmpeg
|
||||
];
|
||||
}
|
12
system/programs/media/players.nix
Normal file
12
system/programs/media/players.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
gnome.eog
|
||||
mpv
|
||||
trackma-gtk
|
||||
pocket-casts
|
||||
spotify
|
||||
spicetify-cli
|
||||
];
|
||||
}
|
10
system/programs/productivity/communication.nix
Normal file
10
system/programs/productivity/communication.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
beeper
|
||||
discord
|
||||
signal-desktop
|
||||
zoom-us
|
||||
];
|
||||
}
|
10
system/programs/productivity/default.nix
Normal file
10
system/programs/productivity/default.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./office.nix
|
||||
./finance.nix
|
||||
./notes.nix
|
||||
./communication.nix
|
||||
];
|
||||
}
|
7
system/programs/productivity/finance.nix
Normal file
7
system/programs/productivity/finance.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
gnucash
|
||||
];
|
||||
}
|
8
system/programs/productivity/notes.nix
Normal file
8
system/programs/productivity/notes.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
anytype
|
||||
logseq
|
||||
];
|
||||
}
|
10
system/programs/productivity/office.nix
Normal file
10
system/programs/productivity/office.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
onlyoffice-bin
|
||||
xournalpp
|
||||
zathura
|
||||
libsForQt5.okular
|
||||
];
|
||||
}
|
7
system/programs/terminal/kitty.nix
Normal file
7
system/programs/terminal/kitty.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
kitty
|
||||
];
|
||||
}
|
7
system/programs/utilities/3d-printing.nix
Normal file
7
system/programs/utilities/3d-printing.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
prusa-slicer
|
||||
];
|
||||
}
|
7
system/programs/utilities/bootable-media.nix
Normal file
7
system/programs/utilities/bootable-media.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
ventoy
|
||||
];
|
||||
}
|
11
system/programs/utilities/default.nix
Normal file
11
system/programs/utilities/default.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./3d-printing.nix
|
||||
./bootable-media.nix
|
||||
./file-syncing.nix
|
||||
./keyboard-configuration.nix
|
||||
./passwords.nix
|
||||
];
|
||||
}
|
5
system/programs/utilities/file-syncing.nix
Normal file
5
system/programs/utilities/file-syncing.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.syncthing.enable = true;
|
||||
}
|
7
system/programs/utilities/keyboard-configuration.nix
Normal file
7
system/programs/utilities/keyboard-configuration.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
via
|
||||
];
|
||||
}
|
7
system/programs/utilities/passwords.nix
Normal file
7
system/programs/utilities/passwords.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
bitwarden
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user