Init:start-nix

This commit is contained in:
dichgrem
2025-07-22 12:18:15 +08:00
parent 7ce7214a74
commit e57cdd246c
178 changed files with 22667 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
{pkgs, ...}: {
home.packages = with pkgs; [
peazip
];
}

View File

@@ -0,0 +1,52 @@
_: {
programs = {
floorp = {
enable = true;
languagePacks = ["en-US"];
policies = {
DisableAccounts = true;
DisableAppUpdate = true;
DisableFirefoxAccounts = true;
DisableFirefoxScreenshots = true;
DisableFirefoxStudies = true;
DisablePocket = true;
DisableTelemetry = true;
DisplayBookmarksToolbar = "newtab";
DisplayMenuBar = "default-off";
DontCheckDefaultBrowser = true;
EnableTrackingProtection = {
Cryptomining = true;
Fingerprinting = true;
Locked = true;
Value = true;
};
OverrideFirstRunPage = "";
OverridePostUpdatePage = "";
Preferences = {
"browser.contentblocking.category" = {
Value = "strict";
Status = "locked";
};
"browser.formfill.enable" = false;
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
"browser.newtabpage.activity-stream.feeds.snippets" = false;
"browser.newtabpage.activity-stream.section.highlights.includeBookmarks" = false;
"browser.newtabpage.activity-stream.section.highlights.includeDownloads" = false;
"browser.newtabpage.activity-stream.section.highlights.includePocket" = false;
"browser.newtabpage.activity-stream.section.highlights.includeVisited" = false;
"browser.newtabpage.activity-stream.showSponsored" = false;
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
"browser.newtabpage.activity-stream.system.showSponsored" = false;
"browser.search.suggest.enabled" = false;
"browser.search.suggest.enabled.private" = false;
"browser.topsites.contile.enabled" = false;
"browser.urlbar.showSearchSuggestionsFirst" = false;
"browser.urlbar.suggest.searches" = false;
"extensions.pocket.enabled" = false;
"extensions.screenshots.disabled" = true;
};
SearchBar = "unified";
};
};
};
}

View File

@@ -0,0 +1,82 @@
{pkgs, ...}: {
home.packages = with pkgs; [
nil
nixd
zed-editor
];
# programs.zed-editor = {
# enable = true;
# package = pkgs.zed-editor-fhs;
# userSettings = {
# assistant = {
# enabled = false;
# version = "2";
# };
# auto_install_extensions = {
# catppuccin = true;
# catppucchin-icons = true;
# nix = true;
# };
# auto_update = false;
# base_keymap = "VSCode";
# features = {
# copilot = false;
# inline_completion_provider = "none";
# };
# hour_format = "hour24";
# icon_theme = {
# dark = "Catppuccin Mocha";
# light = "Catppuccin Mocha";
# mode = "system";
# };
# load_direnv = "shell_hook";
# lsp = {
# nix = {
# binary = {
# path_lookup = true;
# };
# };
# };
# show_whitespaces = "all";
# terminal = {
# alternate_scroll = "off";
# blinking = "off";
# button = false;
# copy_on_select = false;
# detect_venv = {
# on = {
# directories = [
# ".env"
# "env"
# ".venv"
# "venv"
# ];
# activate_script = "default";
# };
# };
# dock = "bottom";
# font_family = "JetBrainsMono Nerd Font";
# font_features = null;
# font_size = null;
# line_height = "comfortable";
# shell = "system";
# toolbar = {
# breadcrumbs = false;
# };
# option_as_meta = false;
# toolbar = {
# title = true;
# };
# working_directory = "current_project_directory";
# };
# theme = {
# dark = "Catppuccin Mocha";
# light = "Catppuccin Mocha";
# mode = "system";
# };
# vim_mode = false;
# };
# };
}

View File

@@ -0,0 +1,5 @@
{pkgs, ...}: {
home.packages = with pkgs; [
legcord
];
}

View File

@@ -0,0 +1,5 @@
{pkgs, ...}: {
home.packages = with pkgs; [
materialgram
];
}

View File

@@ -0,0 +1,5 @@
{pkgs, ...}: {
home.packages = with pkgs; [
foliate
];
}

View File

@@ -0,0 +1,14 @@
{pkgs, ...}: {
dconf.settings = {
"org/nemo/preferences" = {
"date-font-choice" = "no-mono";
"date-format" = "iso";
"default-folder-viewer" = "list-view";
"show-hidden-files" = true;
};
};
home.packages = with pkgs; [
nemo
];
}

View File

@@ -0,0 +1,6 @@
{pkgs, ...}: {
home.packages = with pkgs; [
syncthing
syncthingtray
];
}

View File

@@ -0,0 +1,5 @@
{pkgs, ...}: {
home.packages = with pkgs; [
oculante
];
}

View File

@@ -0,0 +1,5 @@
{pkgs, ...}: {
home.packages = with pkgs; [
localsend
];
}

View File

@@ -0,0 +1,5 @@
{pkgs, ...}: {
home.packages = with pkgs; [
vlc
];
}

View File

@@ -0,0 +1,5 @@
{pkgs, ...}: {
home.packages = with pkgs; [
strawberry
];
}

View File

@@ -0,0 +1,5 @@
{pkgs, ...}: {
home.packages = with pkgs; [
onlyoffice-bin
];
}

View File

@@ -0,0 +1,6 @@
{pkgs, ...}: {
home.packages = with pkgs; [
git-credential-keepassxc
keepassxc
];
}

View File

@@ -0,0 +1,5 @@
_: {
programs.obs-studio = {
enable = true;
};
}

View File

@@ -0,0 +1,5 @@
_: {
programs.alacritty = {
enable = true;
};
}

View File

@@ -0,0 +1,21 @@
{
hostname,
lib,
pkgs,
...
}: let
inherit (import ../../../hosts/${hostname}/env.nix) QEMU-VM-Use-Case;
in
with lib;
mkIf QEMU-VM-Use-Case {
dconf.settings = {
"org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"];
uris = ["qemu:///system"];
};
};
home.packages = with pkgs; [
virt-manager
];
}