mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
update system
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
vulnix
|
||||
|
||||
# browsers
|
||||
firefox
|
||||
chromium
|
||||
brave
|
||||
|
||||
@@ -29,7 +30,7 @@
|
||||
|
||||
# office
|
||||
libreoffice
|
||||
apostrophe # markdown editor
|
||||
apostrophe
|
||||
|
||||
# creative
|
||||
gimp
|
||||
@@ -44,7 +45,7 @@
|
||||
|
||||
# development
|
||||
insomnia
|
||||
avalonia-ilspy
|
||||
# TODO: .NET 6 avalonia-ilspy
|
||||
# ghidra
|
||||
# ida-free
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
};
|
||||
git = import ./git.nix;
|
||||
nixvim = import ./nixvim { inherit pkgs; };
|
||||
firefox = import ./firefox.nix { inherit pkgs; };
|
||||
gpg.enable = true;
|
||||
btop = {
|
||||
enable = true;
|
||||
|
||||
@@ -1,81 +0,0 @@
|
||||
{ pkgs }:
|
||||
{
|
||||
enable = true;
|
||||
package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
|
||||
extraPolicies = {
|
||||
CaptivePortal = false;
|
||||
DisableFirefoxStudies = true;
|
||||
DisablePocket = true;
|
||||
DisableTelemetry = true;
|
||||
DisableFirefoxAccounts = true;
|
||||
NoDefaultBookmarks = true;
|
||||
OfferToSaveLogins = false;
|
||||
OfferToSaveLoginsDefault = false;
|
||||
PasswordManagerEnabled = false;
|
||||
FirefoxHome = {
|
||||
Search = true;
|
||||
Pocket = false;
|
||||
Snippets = false;
|
||||
TopSites = true;
|
||||
Highlights = false;
|
||||
};
|
||||
UserMessaging = {
|
||||
ExtensionRecommendations = false;
|
||||
SkipOnboarding = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
profiles.default = {
|
||||
id = 0;
|
||||
name = "default";
|
||||
isDefault = true;
|
||||
bookmarks = [
|
||||
{
|
||||
name = "Monkeytype";
|
||||
url = "https://monkeytype.com/";
|
||||
}
|
||||
{
|
||||
name = "YouTube";
|
||||
url = "https://youtube.com/";
|
||||
}
|
||||
];
|
||||
search = {
|
||||
force = true;
|
||||
default = "Google";
|
||||
engines = {
|
||||
"Nix Packages" = {
|
||||
urls = [
|
||||
{
|
||||
template = "https://search.nixos.org/packages";
|
||||
params = [
|
||||
{
|
||||
name = "type";
|
||||
value = "packages";
|
||||
}
|
||||
{
|
||||
name = "query";
|
||||
value = "{searchTerms}";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
definedAliases = [ "@np" ];
|
||||
};
|
||||
"NixOS Wiki" = {
|
||||
urls = [ { template = "https://nixos.wiki/index.php?search={searchTerms}"; } ];
|
||||
iconUpdateURL = "https://nixos.wiki/favicon.png";
|
||||
updateInterval = 24 * 60 * 60 * 1000;
|
||||
definedAliases = [ "@nw" ];
|
||||
};
|
||||
"Wikipedia (en)".metaData.alias = "@wiki";
|
||||
};
|
||||
};
|
||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||
ublock-origin
|
||||
ublacklist
|
||||
sponsorblock
|
||||
bitwarden
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -35,7 +35,7 @@ in
|
||||
};
|
||||
illuminate.enable = lib.mkDefault true;
|
||||
nvim-autopairs.enable = lib.mkDefault true;
|
||||
nvim-colorizer.enable = lib.mkDefault true;
|
||||
colorizer.enable = lib.mkDefault true;
|
||||
ts-autotag = {
|
||||
enable = lib.mkDefault true;
|
||||
settings.opts.enable_close_on_slash = lib.mkDefault true;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
./fonts/fira-code.nix
|
||||
./fonts/noto-sans.nix
|
||||
./fonts/nerdfonts.nix
|
||||
./fonts/nerd-fonts.nix
|
||||
|
||||
./hardware/hid-fanatecff.nix
|
||||
./hardware/audio.nix
|
||||
|
||||
@@ -36,11 +36,15 @@ in
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
fonts = {
|
||||
packages = with pkgs; [ fira-code ];
|
||||
nerdfonts.additionalFonts = [ "FiraCode" ];
|
||||
packages =
|
||||
with pkgs;
|
||||
[
|
||||
fira-code
|
||||
]
|
||||
++ (if (config.fonts.nerd-fonts.enable) then [ nerd-fonts.fira-code ] else [ ]);
|
||||
fontconfig = {
|
||||
defaultFonts.monospace = mkIf cfg.default [
|
||||
(if (config.fonts.nerdfonts.enable) then "Fira Code Nerd Font" else "FiraCode")
|
||||
(if (config.fonts.nerd-fonts.enable) then "Fira Code Nerd Font" else "FiraCode")
|
||||
];
|
||||
localConf = ''
|
||||
<match target="font">
|
||||
|
||||
24
modules/nixos/fonts/nerd-fonts.nix
Normal file
24
modules/nixos/fonts/nerd-fonts.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.fonts.nerd-fonts;
|
||||
in
|
||||
{
|
||||
options.fonts.nerd-fonts = {
|
||||
enable = mkEnableOption "Enable nerdfonts";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
fonts = {
|
||||
packages = with pkgs; [
|
||||
nerd-fonts.symbols-only
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.fonts.nerdfonts;
|
||||
in
|
||||
{
|
||||
options.fonts.nerdfonts = {
|
||||
enable = mkEnableOption "Enable nerdfonts";
|
||||
additionalFonts = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
description = "Additional fonts to include in the nerdfonts package";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
fonts = {
|
||||
packages = with pkgs; [
|
||||
(nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ] ++ cfg.additionalFonts; })
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -21,15 +21,17 @@ in
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
fonts = {
|
||||
packages = with pkgs; [
|
||||
noto-fonts
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-emoji
|
||||
];
|
||||
nerdfonts.additionalFonts = [ "Noto" ];
|
||||
packages =
|
||||
with pkgs;
|
||||
[
|
||||
noto-fonts
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-emoji
|
||||
]
|
||||
++ (if (config.fonts.nerd-fonts.enable) then [ nerd-fonts.noto ] else [ ]);
|
||||
fontconfig = {
|
||||
defaultFonts.sansSerif = mkIf cfg.default [
|
||||
(if (config.fonts.nerdfonts.enable) then "Noto Sans Nerd Font" else "Noto Sans")
|
||||
(if (config.fonts.nerd-fonts.enable) then "Noto Sans Nerd Font" else "Noto Sans")
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -19,7 +19,6 @@ in
|
||||
environment.systemPackages = with pkgs; [
|
||||
lpc21isp
|
||||
dfu-util
|
||||
cura
|
||||
openscad
|
||||
bambu-studio
|
||||
(orca-slicer.overrideAttrs (
|
||||
|
||||
@@ -35,7 +35,7 @@ in
|
||||
pkgs: with pkgs; [
|
||||
libgudev
|
||||
libvdpau
|
||||
libsoup
|
||||
libsoup_2_4
|
||||
];
|
||||
})
|
||||
rpcs3
|
||||
|
||||
Reference in New Issue
Block a user