works again, mostly done, now we can start with server
This commit is contained in:
parent
784f214fb7
commit
270e1a0be4
38 changed files with 623 additions and 381 deletions
|
|
@ -16,11 +16,26 @@
|
|||
};
|
||||
|
||||
config = {
|
||||
environment.systemPackages = with pkgs; [
|
||||
(lib.mkIf (apps.audio.base.enable) pavucontrol)
|
||||
(lib.mkIf (apps.audio.base.enable) playerctl)
|
||||
(lib.mkIf (apps.audio.editing.enable) tenacity)
|
||||
(lib.mkIf (apps.audio.editing.enable) flac)
|
||||
];
|
||||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[ ]
|
||||
++ (
|
||||
if (config.apps.audio.base.enable) then
|
||||
[
|
||||
pavucontrol
|
||||
playerctl
|
||||
]
|
||||
else
|
||||
[ ]
|
||||
)
|
||||
++ (
|
||||
if (config.apps.audio.editing.enable) then
|
||||
[
|
||||
tenacity
|
||||
flac
|
||||
]
|
||||
else
|
||||
[ ]
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
./misc
|
||||
./peripherals
|
||||
./video
|
||||
./sync
|
||||
./terminal
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
./git.nix
|
||||
./editor.nix
|
||||
./godot.nix
|
||||
./languages.nix
|
||||
|
|
|
|||
|
|
@ -11,44 +11,54 @@
|
|||
editor = {
|
||||
vscodium.enable = lib.mkEnableOption "enable vscodium";
|
||||
emacs.enable = lib.mkEnableOption "enable emacs";
|
||||
default = "vscodium";
|
||||
default = lib.mkOption {
|
||||
default = "vscodium";
|
||||
description = "default editor";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
environment.systemPackages = with pkgs; [
|
||||
(lib.mkIf config.development.editor.vscodium.enable vscodium)
|
||||
nixfmt
|
||||
];
|
||||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[
|
||||
nixfmt
|
||||
]
|
||||
++ (if config.development.editor.vscodium.enable then [ vscodium ] else [ ]);
|
||||
|
||||
programs = {
|
||||
vscode = lib.mkIf config.development.editor.vscodium.enable {
|
||||
enable = true;
|
||||
package = pkgs.vscodium;
|
||||
defaultEditor = lib.mkIf (config.development.editor.default == "vscodium") true;
|
||||
profiles.default.extensions = with pkgs.vscode-extensions; [
|
||||
catppuccin.catppuccin-vsc
|
||||
catppuccin.catppuccin-vsc-icons
|
||||
jnoortheen.nix-ide
|
||||
alefragnani.project-manager
|
||||
naumovs.color-highlight
|
||||
geequlim.godot-tools
|
||||
stylelint.vscode-stylelint
|
||||
ecmel.vscode-html-css
|
||||
esbenp.prettier-vscode
|
||||
];
|
||||
};
|
||||
vscode =
|
||||
if config.development.editor.vscodium.enable then
|
||||
{
|
||||
enable = true;
|
||||
package = pkgs.vscodium;
|
||||
defaultEditor = if (config.development.editor.default == "vscodium") then true else false;
|
||||
# profiles.default.extensions = with pkgs.vscode-extensions; [
|
||||
# catppuccin.catppuccin-vsc
|
||||
# catppuccin.catppuccin-vsc-icons
|
||||
# jnoortheen.nix-ide
|
||||
# alefragnani.project-manager
|
||||
# naumovs.color-highlight
|
||||
# geequlim.godot-tools
|
||||
# stylelint.vscode-stylelint
|
||||
# ecmel.vscode-html-css
|
||||
# esbenp.prettier-vscode
|
||||
# ];
|
||||
}
|
||||
else
|
||||
{ };
|
||||
};
|
||||
services = {
|
||||
emacs = lib.mkIf config.development.editor.emacs.enable {
|
||||
enable = true;
|
||||
install = true;
|
||||
defaultEditor = lib.mkIf (config.development.editor.default == "emacs") true;
|
||||
};
|
||||
};
|
||||
home.sessionVariables = {
|
||||
EDITOR = lib.mkDefault "codium";
|
||||
emacs =
|
||||
if config.development.editor.emacs.enable then
|
||||
{
|
||||
enable = true;
|
||||
install = true;
|
||||
defaultEditor = if (config.development.editor.default == "emacs") then true else false;
|
||||
}
|
||||
else
|
||||
{ };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,28 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
config = {
|
||||
programs = {
|
||||
git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
init = {
|
||||
defaultBranch = "main";
|
||||
};
|
||||
user = {
|
||||
email = "${config.user.email}";
|
||||
name = "${config.user.userName}";
|
||||
};
|
||||
push = {
|
||||
autoSetupRemote = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -12,9 +12,14 @@
|
|||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.apps.development.godot.enable {
|
||||
systemPackages = with pkgs; [
|
||||
godot
|
||||
];
|
||||
config = {
|
||||
environment.systemPackages =
|
||||
if config.apps.development.godot.enable then
|
||||
with pkgs;
|
||||
[
|
||||
godot
|
||||
]
|
||||
else
|
||||
[ ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,13 +8,15 @@
|
|||
{
|
||||
options = {
|
||||
apps.development.languages = {
|
||||
python = lib.mkEnableOption "enable python";
|
||||
python.enable = lib.mkEnableOption "enable python";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
environment.systemPackages = with pkgs; [
|
||||
(lib.mkIf lib.mkIf config.development.languages.python.enable virtualenv)
|
||||
];
|
||||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[
|
||||
]
|
||||
++ (if config.apps.development.languages.python.enable then [ virtualenv ] else [ ]);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,34 +8,58 @@
|
|||
{
|
||||
options = {
|
||||
apps.gaming = {
|
||||
enable = true;
|
||||
enable = lib.mkEnableOption "enable gaming";
|
||||
steam.enable = lib.mkEnableOption "enable steam";
|
||||
minecraft.enable = lib.mkEnableOption "enable minecraft";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
environment.systemPackages = with pkgs; [
|
||||
(lib.mkIf (config.apps.gaming.enable) cartridges)
|
||||
(lib.mkIf (config.apps.gaming.enable) lutris)
|
||||
(lib.mkIf (config.apps.gaming.minecraft.enable) prismlauncher)
|
||||
(lib.mkIf (config.apps.gaming.steam.enable) adwsteamgtk)
|
||||
];
|
||||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[ ]
|
||||
++ (
|
||||
if (config.apps.gaming.enable) then
|
||||
[
|
||||
cartridges
|
||||
lutris
|
||||
]
|
||||
else
|
||||
[ ]
|
||||
)
|
||||
++ (
|
||||
if (config.apps.gaming.minecraft.enable) then
|
||||
|
||||
[ prismlauncher ]
|
||||
else
|
||||
[ ]
|
||||
)
|
||||
++ (
|
||||
if (config.apps.gaming.steam.enable) then
|
||||
|
||||
[ adwsteamgtk ]
|
||||
else
|
||||
[ ]
|
||||
);
|
||||
programs = {
|
||||
steam = lib.mkIf config.apps.gaming.steam.enable {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
localNetworkGameTransfers.openFirewall = true;
|
||||
gamescopeSession.enable = true;
|
||||
protontricks.enable = true;
|
||||
extraCompatPackages = with pkgs; [
|
||||
proton-ge-bin
|
||||
];
|
||||
extraPackages = with pkgs; [
|
||||
gamescope
|
||||
];
|
||||
};
|
||||
steam =
|
||||
if config.apps.gaming.steam.enable then
|
||||
{
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
localNetworkGameTransfers.openFirewall = true;
|
||||
gamescopeSession.enable = true;
|
||||
protontricks.enable = true;
|
||||
extraCompatPackages = with pkgs; [
|
||||
proton-ge-bin
|
||||
];
|
||||
extraPackages = with pkgs; [
|
||||
gamescope
|
||||
];
|
||||
}
|
||||
else
|
||||
{ };
|
||||
gamescope = {
|
||||
enable = true;
|
||||
capSysNice = true;
|
||||
|
|
|
|||
|
|
@ -15,10 +15,25 @@
|
|||
};
|
||||
|
||||
config = {
|
||||
environment.systemPackages = with pkgs; [
|
||||
(lib.mkIf (apps.image.base.enable) nomacs)
|
||||
(lib.mkIf (apps.image.editing.enable) gimp3-with-plugins)
|
||||
(lib.mkIf (apps.image.editing.enable) krita)
|
||||
];
|
||||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[ ]
|
||||
++ (
|
||||
if (config.apps.image.base.enable) then
|
||||
|
||||
[ nomacs ]
|
||||
else
|
||||
[ ]
|
||||
)
|
||||
++ (
|
||||
if (config.apps.image.editing.enable) then
|
||||
|
||||
[
|
||||
gimp3-with-plugins
|
||||
krita
|
||||
]
|
||||
else
|
||||
[ ]
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,9 +26,19 @@
|
|||
};
|
||||
config = {
|
||||
|
||||
environment.systemPackages = [
|
||||
(lib.mkIf config.apps.internet.browsers.zen-browser.enable config.apps.internet.browsers.zen-browser.package)
|
||||
(lib.mkIf config.apps.internet.browsers.tor-browser.enable config.apps.internet.browsers.tor-browser.package)
|
||||
];
|
||||
environment.systemPackages =
|
||||
[ ]
|
||||
++ (
|
||||
if config.apps.internet.browsers.zen-browser.enable then
|
||||
[ config.apps.internet.browsers.zen-browser.package ]
|
||||
else
|
||||
[ ]
|
||||
)
|
||||
++ (
|
||||
if config.apps.internet.browsers.tor-browser.enable then
|
||||
[ config.apps.internet.browsers.tor-browser.package ]
|
||||
else
|
||||
[ ]
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,16 +16,43 @@
|
|||
};
|
||||
|
||||
config = {
|
||||
environment.systemPackages = with pkgs; [
|
||||
(lib.mkIf (config.apps.misc.obsidian.enable) obsidian)
|
||||
(lib.mkIf (config.apps.misc.bitwarden.enable) rbw (
|
||||
lib.mkIf (config.desktop.shell.rofi.enable) pinentry-curses rofi-rbw
|
||||
))
|
||||
(lib.mkIf (config.apps.misc.blender.enable) blender)
|
||||
libsecret
|
||||
gcr_4
|
||||
pass
|
||||
];
|
||||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[
|
||||
libsecret
|
||||
gcr_4
|
||||
pass
|
||||
]
|
||||
++ (
|
||||
if (config.apps.misc.obsidian.enable) then
|
||||
|
||||
[ obsidian ]
|
||||
else
|
||||
[ ]
|
||||
)
|
||||
++ (
|
||||
if (config.apps.misc.bitwarden.enable) then
|
||||
|
||||
[ rbw ]
|
||||
++ (
|
||||
if (config.desktop.shell.rofi.enable) then
|
||||
[
|
||||
pinentry-curses
|
||||
rofi-rbw
|
||||
]
|
||||
else
|
||||
[ ]
|
||||
)
|
||||
else
|
||||
[ ]
|
||||
)
|
||||
++ (
|
||||
if (config.apps.misc.blender.enable) then
|
||||
|
||||
[ blender ]
|
||||
else
|
||||
[ ]
|
||||
);
|
||||
programs = {
|
||||
seahorse.enable = true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -31,22 +31,30 @@
|
|||
};
|
||||
config = {
|
||||
programs = {
|
||||
kdeconnect = lib.mkIf config.apps.sync.kde-connect.enable {
|
||||
enable = true;
|
||||
};
|
||||
kdeconnect =
|
||||
if config.apps.sync.kde-connect.enable then
|
||||
{
|
||||
enable = true;
|
||||
}
|
||||
else
|
||||
{ };
|
||||
};
|
||||
services = {
|
||||
syncthing = lib.mkIf config.apps.sync.syncthing.enable {
|
||||
enable = true;
|
||||
tray.enable = true;
|
||||
guiAddress = "0.0.0.0:8384";
|
||||
settings = {
|
||||
devices = config.apps.sync.syncthing.devices;
|
||||
folders = config.apps.sync.syncthing.folders;
|
||||
};
|
||||
overrideDevices = lib.mkIf (config.apps.sync.syncthing.devices == { }) false;
|
||||
overrideFolders = lib.mkIf (config.apps.sync.syncthing.folders == { }) false;
|
||||
};
|
||||
syncthing =
|
||||
if config.apps.sync.syncthing.enable then
|
||||
{
|
||||
enable = true;
|
||||
tray.enable = true;
|
||||
guiAddress = "0.0.0.0:8384";
|
||||
settings = {
|
||||
devices = config.apps.sync.syncthing.devices;
|
||||
folders = config.apps.sync.syncthing.folders;
|
||||
};
|
||||
overrideDevices = if (config.apps.sync.syncthing.devices == { }) then false else true;
|
||||
overrideFolders = if (config.apps.sync.syncthing.folders == { }) then false else true;
|
||||
}
|
||||
else
|
||||
{ };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,15 +19,20 @@
|
|||
bc
|
||||
openssl
|
||||
]
|
||||
++ lib.mkIf config.apps.terminal.toys [
|
||||
++ (
|
||||
if config.apps.terminal.toys then
|
||||
[
|
||||
|
||||
asciiquarium-transparent
|
||||
cava
|
||||
bunnyfetch
|
||||
nerdfetch
|
||||
fastfetch
|
||||
cmatrix
|
||||
astroterm
|
||||
];
|
||||
asciiquarium-transparent
|
||||
cava
|
||||
bunnyfetch
|
||||
nerdfetch
|
||||
fastfetch
|
||||
cmatrix
|
||||
astroterm
|
||||
]
|
||||
else
|
||||
[ ]
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,13 +13,25 @@
|
|||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.apps.terminal.kitty.enable {
|
||||
terminal = lib.mkIf (config.apps.terminal.default == "kitty") {
|
||||
package = pkgs.kitty;
|
||||
binary = "${pkgs.kitty}/bin/kitty";
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
kitty
|
||||
];
|
||||
config = {
|
||||
# apps.terminal =
|
||||
# if (config.apps.terminal.default == "kitty") then
|
||||
# {
|
||||
# package = pkgs.kitty;
|
||||
# binary = "${pkgs.kitty}/bin/kitty";
|
||||
# }
|
||||
# else
|
||||
# { };
|
||||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[ ]
|
||||
++ (
|
||||
if config.apps.terminal.kitty.enable then
|
||||
[
|
||||
kitty
|
||||
]
|
||||
else
|
||||
[ ]
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,8 +18,16 @@ in
|
|||
};
|
||||
|
||||
config = {
|
||||
environment.systemPackages = with pkgs; [
|
||||
(lib.mkIf (tt.ranger.enable) ranger)
|
||||
];
|
||||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[
|
||||
]
|
||||
++ (
|
||||
if tt.ranger.enable then
|
||||
|
||||
[ ranger ]
|
||||
else
|
||||
[ ]
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,11 +16,32 @@
|
|||
};
|
||||
|
||||
config = {
|
||||
environment.systemPackages = with pkgs; [
|
||||
(lib.mkIf (apps.video.base.enable) mpv)
|
||||
(lib.mkIf (apps.video.editing.enable) kdePackages.kdenlive)
|
||||
(lib.mkIf (apps.video.media.enable) jellyfin-desktop)
|
||||
(lib.mkIf (apps.video.media.enable) pipeline)
|
||||
];
|
||||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[ ]
|
||||
++ (
|
||||
if config.apps.video.base.enable then
|
||||
|
||||
[ mpv ]
|
||||
else
|
||||
[ ]
|
||||
)
|
||||
++ (
|
||||
if config.apps.video.editing.enable then
|
||||
|
||||
[ kdePackages.kdenlive ]
|
||||
else
|
||||
[ ]
|
||||
)
|
||||
++ (
|
||||
if config.apps.video.media.enable then
|
||||
|
||||
[
|
||||
jellyfin-desktop
|
||||
pipeline
|
||||
]
|
||||
else
|
||||
[ ]
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue