Applications, programming code

This commit is contained in:
foglar 2024-11-08 08:40:11 +01:00
parent c457bb31df
commit c427d6bf29
5 changed files with 42 additions and 44 deletions

View File

@ -1,6 +1,4 @@
{
inputs,
pkgs,
lib,
config,
...

View File

@ -0,0 +1,34 @@
{
lib,
pkgs,
config,
...
}: {
options = {
applications.enable = lib.mkEnableOption "enable Graphical applications";
};
imports = [
./applications/firefox.nix
];
config = lib.mkIf config.applications.enable {
home.packages = with pkgs; [
librewolf
vesktop
ferdium
stellarium
libreoffice
localsend
plasma5Packages.kdeconnect-kde
qbittorrent
vlc
#tor-browser
openrocket
spotify
spotube
inkscape
];
};
}

View File

@ -7,56 +7,20 @@
./programming/programming.nix
./games.nix
./terminal_tools.nix
./applications/firefox.nix
#./packages/applications.nix
./applications.nix
];
terminal_tools.enable = lib.mkDefault true;
programming.enable = lib.mkDefault true;
games.enable = lib.mkDefault false;
firefox.enable = lib.mkDefault true;
applications.enable = lib.mkDefault true;
#programs.neovim.enable = true;
home.packages = with pkgs; [
librewolf
vesktop
ferdium
alejandra
nh
nixd
stellarium
libreoffice
localsend
plasma5Packages.kdeconnect-kde
qbittorrent
vlc
#tor-browser
openrocket
spotify
spotube
inkscape
#zed-editor
#gtk3
#(python3.withPackages (subpkgs: with subpkgs; [
#pygobject3
#gobject-introspection
#astropy
#tomli
#tomli-w
#matplotlib
#basemap
#opencv4
#requests
#]))
# # It is sometimes useful to fine-tune packages, for example, by applying
# # overrides. You can do that directly here, just don't forget the
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
# # fonts?
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
alejandra
nh
nixd
];
nixpkgs.config.allowUnfreePredicate = pkg:

View File

@ -11,6 +11,8 @@
config = lib.mkIf config.vscode.enable {
home.packages = with pkgs; [
vscode
python3
dotnet-sdk_8
];
programs.vscode = {
@ -41,6 +43,7 @@
"[python]" = {
"editor.defaultFormatter" = "ms-python.black-formatter";
};
"python.defaultInterpreterPath" = "${pkgs.python3}";
"nix.serverPath" = "nixd";
"nix.enableLanguageServer" = true;
"nix.serverSettings" = {

View File

@ -24,7 +24,6 @@
neovim
arduino-ide
go
dotnet-sdk_8
jq
conda
];