mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 15:15:52 +05:30
156 lines
4.8 KiB
Nix
156 lines
4.8 KiB
Nix
{ config, pkgs, nix-doom-emacs, stylix, userSettings, ... }:
|
|
|
|
{
|
|
# Home Manager needs a bit of information about you and the paths it should
|
|
# manage.
|
|
home.username = userSettings.username;
|
|
home.homeDirectory = "/home/"+userSettings.username;
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
imports = [
|
|
(if ((userSettings.editor == "emacs") || (userSettings.editor == "emacsclient")) then nix-doom-emacs.hmModule else null)
|
|
stylix.homeManagerModules.stylix
|
|
(./. + "../../../user/wm"+("/"+userSettings.wm+"/"+userSettings.wm)+".nix") # My window manager selected from flake
|
|
../../user/shell/sh.nix # My zsh and bash config
|
|
../../user/shell/cli-collection.nix # Useful CLI apps
|
|
../../user/bin/phoenix.nix # My nix command wrapper
|
|
../../user/app/doom-emacs/doom.nix # My doom emacs config
|
|
../../user/app/ranger/ranger.nix # My ranger file manager config
|
|
../../user/app/git/git.nix # My git config
|
|
../../user/app/keepass/keepass.nix # My password manager
|
|
(./. + "../../../user/app/browser"+("/"+userSettings.browser)+".nix") # My default browser selected from flake
|
|
../../user/app/virtualization/virtualization.nix # Virtual machines
|
|
../../user/app/flatpak/flatpak.nix # Flatpaks
|
|
../../user/style/stylix.nix # Styling and themes for my apps
|
|
../../user/lang/cc/cc.nix # C and C++ tools
|
|
../../user/lang/godot/godot.nix # Game development
|
|
#../../user/pkgs/blockbench.nix # Blockbench ## marked as insecure
|
|
../../user/hardware/bluetooth.nix # Bluetooth
|
|
];
|
|
|
|
home.stateVersion = "22.11"; # Please read the comment before changing.
|
|
|
|
home.packages = with pkgs; [
|
|
# Core
|
|
zsh
|
|
alacritty
|
|
librewolf
|
|
brave
|
|
qutebrowser
|
|
dmenu
|
|
rofi
|
|
git
|
|
syncthing
|
|
|
|
# Office
|
|
libreoffice-fresh
|
|
mate.atril
|
|
xournalpp
|
|
glib
|
|
newsflash
|
|
gnome.nautilus
|
|
gnome.gnome-calendar
|
|
gnome.seahorse
|
|
gnome.gnome-maps
|
|
openvpn
|
|
protonmail-bridge
|
|
texliveSmall
|
|
|
|
wine
|
|
bottles
|
|
# The following requires 64-bit FL Studio (FL64) to be installed to a bottle
|
|
# With a bottle name of "FL Studio"
|
|
(pkgs.writeShellScriptBin "flstudio" ''
|
|
#!/bin/sh
|
|
if [ -z "$1" ]
|
|
then
|
|
bottles-cli run -b "FL Studio" -p FL64
|
|
#flatpak run --command=bottles-cli com.usebottles.bottles run -b FL\ Studio -p FL64
|
|
else
|
|
filepath=$(winepath --windows "$1")
|
|
echo \'"$filepath"\'
|
|
bottles-cli run -b "FL Studio" -p "FL64" --args \'"$filepath"\'
|
|
#flatpak run --command=bottles-cli com.usebottles.bottles run -b FL\ Studio -p FL64 -args "$filepath"
|
|
fi
|
|
'')
|
|
(pkgs.makeDesktopItem {
|
|
name = "flstudio";
|
|
desktopName = "FL Studio 64";
|
|
exec = "flstudio %U";
|
|
terminal = false;
|
|
type = "Application";
|
|
mimeTypes = ["application/octet-stream"];
|
|
})
|
|
|
|
# Media
|
|
gimp-with-plugins
|
|
pinta
|
|
krita
|
|
inkscape
|
|
musikcube
|
|
vlc
|
|
mpv
|
|
yt-dlp
|
|
#freetube
|
|
blender
|
|
#blockbench-electron
|
|
cura
|
|
obs-studio
|
|
#install kdenlive via flatpak due to missing plugins
|
|
#kdenlive
|
|
ffmpeg
|
|
(pkgs.writeScriptBin "kdenlive-accel" ''
|
|
#!/bin/sh
|
|
DRI_PRIME=0 flatpak run org.kde.kdenlive "$1"
|
|
'')
|
|
movit
|
|
mediainfo
|
|
libmediainfo
|
|
mediainfo-gui
|
|
audio-recorder
|
|
|
|
# Various dev packages
|
|
texinfo
|
|
libffi zlib
|
|
nodePackages.ungit
|
|
];
|
|
|
|
services.syncthing.enable = true;
|
|
|
|
xdg.enable = true;
|
|
xdg.userDirs = {
|
|
enable = true;
|
|
createDirectories = true;
|
|
music = "${config.home.homeDirectory}/Media/Music";
|
|
videos = "${config.home.homeDirectory}/Media/Videos";
|
|
pictures = "${config.home.homeDirectory}/Media/Pictures";
|
|
templates = "${config.home.homeDirectory}/Templates";
|
|
download = "${config.home.homeDirectory}/Downloads";
|
|
documents = "${config.home.homeDirectory}/Documents";
|
|
desktop = null;
|
|
publicShare = null;
|
|
extraConfig = {
|
|
XDG_DOTFILES_DIR = "${config.home.homeDirectory}/.dotfiles";
|
|
XDG_ARCHIVE_DIR = "${config.home.homeDirectory}/Archive";
|
|
XDG_VM_DIR = "${config.home.homeDirectory}/Machines";
|
|
XDG_ORG_DIR = "${config.home.homeDirectory}/Org";
|
|
XDG_PODCAST_DIR = "${config.home.homeDirectory}/Media/Podcasts";
|
|
XDG_BOOK_DIR = "${config.home.homeDirectory}/Media/Books";
|
|
};
|
|
};
|
|
xdg.mime.enable = true;
|
|
xdg.mimeApps.enable = true;
|
|
xdg.mimeApps.associations.added = {
|
|
"application/octet-stream" = "flstudio.desktop;";
|
|
};
|
|
|
|
home.sessionVariables = {
|
|
EDITOR = userSettings.editor;
|
|
SPAWNEDITOR = userSettings.spawnEditor;
|
|
TERM = userSettings.term;
|
|
BROWSER = userSettings.browser;
|
|
};
|
|
|
|
}
|