Overhaul luna complete

This commit is contained in:
KoenDR06 2025-02-25 15:56:58 +01:00
parent 06f5971965
commit 6f9fdca876
110 changed files with 2408 additions and 2129 deletions

7
modules/apps/default.nix Normal file
View file

@ -0,0 +1,7 @@
{inputs, ...}: {
imports = [
./terminal.nix
./visual.nix
./dev.nix
];
}

22
modules/apps/dev.nix Normal file
View file

@ -0,0 +1,22 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.apps.dev;
in {
options = {
horseman.apps.dev = {
enable = mkEnableOption "Apps used for programming";
};
};
config = {
# Docker
virtualisation.docker.enable = true;
};
}

24
modules/apps/terminal.nix Normal file
View file

@ -0,0 +1,24 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.apps.terminal;
in {
options = {
horseman.apps.terminal = {
enable = mkEnableOption "Apps that run only in terminal without a GUI";
};
};
config = {
services.lorri.enable = true;
environment.systemPackages = with pkgs; [
];
};
}

22
modules/apps/visual.nix Normal file
View file

@ -0,0 +1,22 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.apps.visual;
in {
options = {
horseman.apps.visual = {
enable = mkEnableOption "Apps that run in a visual window";
};
};
config = {
environment.systemPackages = with pkgs; [
];
};
}

View file

@ -0,0 +1,66 @@
{
config,
pkgs,
...
}: {
programs.firefox = {
enable = true;
policies = {
DisableTelemetry = true;
DisableFirefoxStudies = true;
DisablePocket = true;
DisableAccounts = true;
DisableFirefoxScreenshots = true;
DisplayBookmarksToolbar = "never";
PasswordManagerEnabled = false;
ExtensionSettings = {
"*".installation_mode = "blocked";
# uBlock Origin:
"uBlock0@raymondhill.net" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
installation_mode = "force_installed";
};
# Dark Reader
"addon@darkreader.org" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/darkreader/latest.xpi";
installation_mode = "force_installed";
};
# Advent of Code delta-rank
"{78b07db2-25ed-4088-9c92-5c5dcfca3c3c}" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/advent-of-code-delta-score/latest.xpi";
installation_mode = "force_installed";
};
# SponsorBlock
"sponsorBlocker@ajay.app" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/sponsorblock/latest.xpi";
installation_mode = "force_installed";
};
# KeepassXC
"keepassxc-browser@keepassxc.org" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/keepassxc-browser/latest.xpi";
installation_mode = "force_installed";
};
# Cookie Blocker
"idcac-pub@guus.ninja" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/istilldontcareaboutcookies/latest.xpi";
installation_mode = "force_installed";
};
# Ghostery
"firefox@ghostery.com" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ghostery/latest.xpi";
installation_mode = "force_installed";
};
};
Preferences = {
general = {
autoScroll = true;
};
"browser.newtabpage.activity-stream.showSponsored" = lock-false;
"browser.newtabpage.activity-stream.system.showSponsored" = lock-false;
"browser.newtabpage.activity-stream.showSponsoredTopSites" = lock-false;
};
};
};
}