Added productive build

This commit is contained in:
EsVagy42 2025-05-28 04:33:36 +02:00
parent afb1bb372c
commit 8b540fc0ba
3 changed files with 149 additions and 102 deletions

View file

@ -1 +1 @@
Added new konsole sessionui.rc Added productive build

View file

@ -95,7 +95,7 @@
programs.kdeconnect.enable = true; programs.kdeconnect.enable = true;
programs.steam = { programs.steam = {
enable = true; enable = !config.productiveBuild;
remotePlay.openFirewall = true; remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true; dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true; localNetworkGameTransfers.openFirewall = true;
@ -126,7 +126,9 @@
]; ];
services.flatpak.enable = true; services.flatpak.enable = true;
services.flatpak.packages = services.flatpak.packages = if config.productiveBuild then
[ ]
else
[ "flathub:app/org.opensurge2d.OpenSurge//stable" ]; [ "flathub:app/org.opensurge2d.OpenSurge//stable" ];
services.flatpak.remotes = { services.flatpak.remotes = {
"flathub" = "https://dl.flathub.org/repo/flathub.flatpakrepo"; "flathub" = "https://dl.flathub.org/repo/flathub.flatpakrepo";
@ -151,97 +153,101 @@
}; };
}; };
environment.sessionVariables = { environment.sessionVariables = { GTK_USE_PORTAL = 1; };
GTK_USE_PORTAL = 1;
};
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = let
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. basePackages = with pkgs; [
# wget # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
kdePackages.krecorder # wget
kdePackages.kweather kdePackages.krecorder
kdePackages.kcharselect kdePackages.kweather
kdePackages.filelight kdePackages.kcharselect
kdePackages.kcalc kdePackages.filelight
kdePackages.kclock kdePackages.kcalc
kdePackages.kholidays kdePackages.kclock
kdePackages.libkdepim kdePackages.kholidays
kdePackages.kdepim-addons kdePackages.libkdepim
kdePackages.kdepim-runtime kdePackages.kdepim-addons
kdePackages.kcontacts kdePackages.kdepim-runtime
libqalculate kdePackages.kcontacts
qalculate-qt libqalculate
qalculate-qt
brave brave
floorp floorp
kdePackages.plasma-browser-integration kdePackages.plasma-browser-integration
kdePackages.xdg-desktop-portal-kde kdePackages.xdg-desktop-portal-kde
kdePackages.zanshin kdePackages.zanshin
kdePackages.korganizer kdePackages.korganizer
kdePackages.merkuro kdePackages.merkuro
kdePackages.francis kdePackages.francis
yt-dlp wl-clipboard
lldb
kdePackages.kompare
kdePackages.kdevelop
kdePackages.kcachegrind
gcc
gdb
clang-tools
bash-language-server
nixd
nixfmt
marksman
kdePackages.markdownpart
lua
lua-language-server
cppcheck
nixos-shell
wl-clipboard kdePackages.qtwebengine
lldb kdePackages.qtlocation
kdePackages.kompare kdePackages.ksystemstats # needed for the resource widgets
kdePackages.kdevelop aspell # needed for spell checking
kdePackages.kcachegrind aspellDicts.en
gcc aspellDicts.hu
gdb kdePackages.qtmultimedia
clang-tools
bash-language-server
nixd
nixfmt
marksman
kdePackages.markdownpart
lua
lua-language-server
cppcheck
nixos-shell
kdePackages.qtwebengine gimp
kdePackages.qtlocation inkscape
kdePackages.ksystemstats # needed for the resource widgets kdePackages.kdenlive
aspell # needed for spell checking
aspellDicts.en
aspellDicts.hu
kdePackages.qtmultimedia
gimp libreoffice
inkscape pandoc
kdePackages.kdenlive texliveFull
srb2 beeper
superTuxKart ];
kdePackages.kjumpingcube unproductivePackages = with pkgs; [
kdePackages.kigo yt-dlp
gnugo
crawlTiles
prismlauncher
mindustry
(with pkgs;
import ./jgrpp-0.65.2/jgrpp-0.65.2.nix {
inherit fetchFromGitHub;
inherit openttd;
inherit zstd;
})
retroarch-full srb2
superTuxKart
kdePackages.kjumpingcube
kdePackages.kigo
gnugo
crawlTiles
prismlauncher
mindustry
(with pkgs;
import ./jgrpp-0.65.2/jgrpp-0.65.2.nix {
inherit fetchFromGitHub;
inherit openttd;
inherit zstd;
})
wineWowPackages.staging retroarch-full
winetricks
beeper wineWowPackages.staging
winetricks
libreoffice ];
pandoc in if config.productiveBuild then
texliveFull basePackages
]; else
basePackages ++ unproductivePackages;
fonts.packages = with pkgs; [ nerd-fonts.hack ]; fonts.packages = with pkgs; [ nerd-fonts.hack ];
@ -291,5 +297,36 @@
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment? system.stateVersion = "24.05"; # Did you read the comment?
services.blocky = {
enable = config.productiveBuild;
settings = {
ports.dns = 53; # Port for incoming DNS Queries.
upstreams.groups.default = [
"https://one.one.one.one/dns-query" # Using Cloudflare's DNS over HTTPS server for resolving queries.
];
# For initially solving DoH/DoT Requests when no system Resolver is available.
bootstrapDns = {
upstream = "https://one.one.one.one/dns-query";
ips = [ "1.1.1.1" "1.0.0.1" ];
};
#Enable Blocking of certian domains.
blocking = {
blackLists = {
unproductive = [''
|
www.youtube.com
tilvids.com
mastodon.social
online-go.com
''];
};
#Configure what block categories are used
clientGroupsBlock = { default = [ "unproductive" ]; };
};
};
};
networking.nameservers =
if config.productiveBuild then [ "127.0.0.1" ] else [ ];
} }

View file

@ -29,28 +29,38 @@
}; };
lib = nixpkgs.lib; lib = nixpkgs.lib;
in { in {
nixosConfigurations = { nixosConfigurations = let
nixos = lib.nixosSystem { baseSystem = { productiveBuild }:
inherit system; lib.nixosSystem {
modules = [ inherit system;
{ modules = [
environment.systemPackages = {
[ inputs.nixvim.packages.${system}.default ]; environment.systemPackages =
} [ inputs.nixvim.packages.${system}.default ];
./configuration.nix }
./devices/default/default.nix ({ lib, ... }: {
home-manager.nixosModules.home-manager options.productiveBuild = lib.mkOption {
{ type = lib.types.bool;
home-manager.useGlobalPkgs = true; default = productiveBuild;
home-manager.useUserPackages = true; };
home-manager.sharedModules = })
[ plasma-manager.homeManagerModules.plasma-manager ]; ./configuration.nix
./devices/default/default.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.sharedModules =
[ plasma-manager.homeManagerModules.plasma-manager ];
home-manager.users.esvagy = { imports = [ ./home.nix ]; }; home-manager.users.esvagy = { imports = [ ./home.nix ]; };
} }
flatpaks.nixosModules.declarative-flatpak flatpaks.nixosModules.declarative-flatpak
]; ];
}; };
in {
nixos = baseSystem { productiveBuild = false; };
productive = baseSystem { productiveBuild = true; };
alt = lib.nixosSystem { alt = lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [