laptop
This commit is contained in:
parent
d8032cc35d
commit
e945735fa1
61 changed files with 344 additions and 550 deletions
31
home/desktop-slim/default.nix
Normal file
31
home/desktop-slim/default.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../minimal
|
||||
|
||||
./devel.nix
|
||||
./firefox.nix
|
||||
./fonts.nix
|
||||
./gpg.nix
|
||||
./media.nix
|
||||
./niri.nix
|
||||
./foot.nix
|
||||
./password-store.nix
|
||||
./user-dirs.nix
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
anki-bin
|
||||
appimage-run
|
||||
drawing
|
||||
keepassxc
|
||||
libnotify
|
||||
usbutils
|
||||
wl-clipboard
|
||||
yubioath-flutter
|
||||
zathura
|
||||
];
|
||||
|
||||
services.syncthing.enable = true;
|
||||
}
|
||||
13
home/desktop-slim/devel.nix
Normal file
13
home/desktop-slim/devel.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.file.".npmrc".text = ''
|
||||
prefix = ${config.xdg.dataHome}/npm/packages
|
||||
'';
|
||||
|
||||
home.packages = with pkgs; [
|
||||
nodejs
|
||||
];
|
||||
|
||||
programs.direnv.enable = true;
|
||||
}
|
||||
156
home/desktop-slim/firefox.nix
Normal file
156
home/desktop-slim/firefox.nix
Normal file
|
|
@ -0,0 +1,156 @@
|
|||
{ config, pkgs, inputs, osConfig, ... }:
|
||||
|
||||
{
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
policies = {
|
||||
DisableFirefoxAccounts = true;
|
||||
DisablePocket = true;
|
||||
DisableTelemetry = true;
|
||||
DownloadDirectory = "${config.home.homeDirectory}/tmp";
|
||||
NoDefaultBookmarks = true;
|
||||
OfferToSaveLogins = false;
|
||||
OfferToSaveLoginsDefault = false;
|
||||
PasswordManagerEnabled = false;
|
||||
EnableTrackingProtection = {
|
||||
Value = true;
|
||||
Cryptomining = true;
|
||||
Fingerprinting = true;
|
||||
};
|
||||
FirefoxHome = {
|
||||
Search = true;
|
||||
Pocket = false;
|
||||
Snippets = false;
|
||||
TopSites = true;
|
||||
Highlights = false;
|
||||
};
|
||||
UserMessaging = {
|
||||
ExtensionRecommendations = false;
|
||||
SkipOnboarding = true;
|
||||
};
|
||||
};
|
||||
profiles = {
|
||||
${config.home.username} = {
|
||||
name = config.home.username;
|
||||
isDefault = true;
|
||||
extensions.packages = with inputs.firefox-addons.packages.${pkgs.stdenv.hostPlatform.system}; [
|
||||
auto-tab-discard
|
||||
keepassxc-browser
|
||||
passff
|
||||
# tampermonkey
|
||||
ublock-origin
|
||||
web-archives
|
||||
zotero-connector
|
||||
];
|
||||
search = {
|
||||
force = true;
|
||||
default = "ddg";
|
||||
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}"; }];
|
||||
icon = "https://nixos.wiki/favicon.png";
|
||||
updateInterval = 24 * 60 * 60 * 1000;
|
||||
definedAliases = [ "@nw" ];
|
||||
};
|
||||
"NixOS Options" = {
|
||||
urls = [{ template = "https://search.nixos.org/options?channel=${osConfig.system.nixos.release}&query={searchTerms}"; }];
|
||||
icon = "https://nixos.org/favicon.png";
|
||||
updateInterval = 24 * 60 * 60 * 1000;
|
||||
definedAliases = [ "@no" ];
|
||||
};
|
||||
"Home manager options" = {
|
||||
urls = [{ template = "https://home-manager-options.extranix.com/?query={searchTerms}&release=release-${osConfig.system.nixos.release}"; }];
|
||||
icon = "https://mipmip.github.io/home-manager-option-search/images/favicon.png";
|
||||
updateInterval = 24 * 60 * 60 * 1000;
|
||||
definedAliases = [ "@hm" ];
|
||||
};
|
||||
"Google maps" = {
|
||||
urls = [{ template = "http://maps.google.com/?q={searchTerms}"; }];
|
||||
icon = "https://www.google.com/images/branding/product/ico/maps15_bnuw3a_32dp.ico";
|
||||
updateInterval = 24 * 60 * 60 * 1000;
|
||||
definedAliases = [ "@gm" ];
|
||||
};
|
||||
"Google scholar" = {
|
||||
urls = [{ template = "https://scholar.google.com/scholar?q={searchTerms}"; }];
|
||||
icon = "https://scholar.google.com/favicon.ico";
|
||||
updateInterval = 24 * 60 * 60 * 1000;
|
||||
definedAliases = [ "@gs" ];
|
||||
};
|
||||
"UB" = {
|
||||
urls = [{ template = "https://ubffm.hds.hebis.de/Search/Results?lookfor={searchTerms}"; }];
|
||||
icon = "https://ubffm.hds.hebis.de/themes/ubffm/images/favicon.ico";
|
||||
updateInterval = 24 * 60 * 60 * 1000;
|
||||
definedAliases = [ "@ub" ];
|
||||
};
|
||||
"SciHub" = {
|
||||
urls = [{ template = "https://libgen.is/search.php?req={searchTerms}"; }];
|
||||
icon = "https://libgen.is/favicon.ico";
|
||||
updateInterval = 24 * 60 * 60 * 1000;
|
||||
definedAliases = [ "@lg" ];
|
||||
};
|
||||
"Libgen" = {
|
||||
urls = [{ template = "https://libgen.is/search.php?req={searchTerms}"; }];
|
||||
icon = "https://libgen.is/favicon.ico";
|
||||
updateInterval = 24 * 60 * 60 * 1000;
|
||||
definedAliases = [ "@lg" ];
|
||||
};
|
||||
"Urban Dictionary" = {
|
||||
urls = [{ template = "https://www.urbandictionary.com/define.php?term={searchTerms}"; }];
|
||||
icon = "https://www.urbandictionary.com/favicon-32x32.png";
|
||||
updateInterval = 24 * 60 * 60 * 1000;
|
||||
definedAliases = [ "@ud" ];
|
||||
};
|
||||
"Leo" = {
|
||||
urls = [{ template = "https://dict.leo.org/englisch-deutsch/{searchTerms}"; }];
|
||||
icon = "https://dict.leo.org/img/favicons/ende-32.png";
|
||||
updateInterval = 24 * 60 * 60 * 1000;
|
||||
definedAliases = [ "@leo" ];
|
||||
};
|
||||
"Wikipedia".metaData.alias = "@wiki";
|
||||
"bing".metaData.hidden = true;
|
||||
"Amazon.de".metaData.hidden = true;
|
||||
};
|
||||
};
|
||||
extraConfig = ''
|
||||
user_pref("app.shield.optoutstudies.enabled", false);
|
||||
user_pref("browser.aboutConfig.showWarning", false);
|
||||
user_pref("browser.bookmarks.addedImportButton", true);
|
||||
user_pref("browser.migrate.content-modal.import-all.enabled", false);
|
||||
user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false);
|
||||
user_pref("browser.startup.page", 3);
|
||||
user_pref("browser.tabs.firefox-view", false);
|
||||
user_pref("browser.urlbar.showSearchSuggestionsFirst", false);
|
||||
user_pref("browser.warnOnQuitShortcut", false);
|
||||
user_pref("dom.security.https_only_mode", true);
|
||||
user_pref("extensions.formautofill.creditCards.enabled", false);
|
||||
user_pref("extensions.pocket.enabled", false);
|
||||
user_pref("intl.accept_languages", "de-de,en-us,en");
|
||||
user_pref("intl.regional_prefs.use_os_locales", true);
|
||||
user_pref("media.eme.enabled", true);
|
||||
user_pref("network.trr.custom_uri", "https://dns.quad9.net/dns-query");
|
||||
user_pref("network.trr.mode", 2);
|
||||
user_pref("network.trr.uri", "https://dns.quad9.net/dns-query");
|
||||
user_pref("permissions.default.desktop-notification", 2);
|
||||
user_pref("privacy.annotate_channels.strict_list.enabled", true);
|
||||
user_pref("privacy.donottrackheader.enabled", true);
|
||||
user_pref("privacy.globalprivacycontrol.enabled", true);
|
||||
user_pref("signon.rememberSignons", false);
|
||||
user_pref("toolkit.telemetry.enabled", false);
|
||||
user_pref("toolkit.telemetry.server", "");
|
||||
user_pref("widget.gtk.libadwaita-colors.enabled", false);
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
34
home/desktop-slim/fonts.nix
Normal file
34
home/desktop-slim/fonts.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
anonymousPro
|
||||
cantarell-fonts
|
||||
cascadia-code
|
||||
charis
|
||||
cm_unicode
|
||||
corefonts
|
||||
dejavu_fonts
|
||||
dotcolon-fonts
|
||||
freefont_ttf
|
||||
gyre-fonts
|
||||
hack-font
|
||||
hubot-sans
|
||||
liberation_ttf
|
||||
libertine
|
||||
libertinus
|
||||
merriweather
|
||||
mona-sans
|
||||
monaspace
|
||||
noto-fonts
|
||||
open-sans
|
||||
poppins
|
||||
roboto
|
||||
rubik
|
||||
source-sans-pro
|
||||
source-serif-pro
|
||||
stix-two
|
||||
textfonts
|
||||
tlwg
|
||||
];
|
||||
}
|
||||
11
home/desktop-slim/foot.nix
Normal file
11
home/desktop-slim/foot.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
programs.foot = {
|
||||
enable = true;
|
||||
};
|
||||
xdg.configFile."foot" = {
|
||||
recursive = true;
|
||||
source = config.lib.file.mkOutOfStoreSymlink "/etc/nixos/home/dotfiles/foot";
|
||||
};
|
||||
}
|
||||
34
home/desktop-slim/gpg.nix
Normal file
34
home/desktop-slim/gpg.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
home.packages = with pkgs; [
|
||||
pinentry-all
|
||||
];
|
||||
|
||||
# moved to system
|
||||
|
||||
# services.gpg-agent = {
|
||||
# enable = true;
|
||||
# pinentry.package = pkgs.pinentry-all;
|
||||
# pinentry.program = "pinentry";
|
||||
# # enableSshSupport = true;
|
||||
# };
|
||||
|
||||
programs.gpg = {
|
||||
enable = true;
|
||||
settings = {
|
||||
no-emit-version = true;
|
||||
no-comments = true;
|
||||
keyserver = "hkps://keys.openpgp.org/";
|
||||
keyserver-options = [
|
||||
"no-honor-keyserver-url"
|
||||
"include-revoked"
|
||||
];
|
||||
personal-cipher-preferences = "AES256 AES192 AES CAST5";
|
||||
personal-digest-preferences = "SHA512 SHA384 SHA256 SHA224";
|
||||
cert-digest-algo = "SHA512";
|
||||
default-preference-list = "SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 ZLIB BZIP2 ZIP Uncompressed";
|
||||
};
|
||||
};
|
||||
}
|
||||
14
home/desktop-slim/media.nix
Normal file
14
home/desktop-slim/media.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
castget
|
||||
feh
|
||||
ffmpeg
|
||||
nicotine-plus
|
||||
qbittorrent
|
||||
vlc
|
||||
yt-dlp
|
||||
zathura
|
||||
];
|
||||
}
|
||||
22
home/desktop-slim/niri.nix
Normal file
22
home/desktop-slim/niri.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ pkgs, config, ... }:
|
||||
|
||||
{
|
||||
services.swayidle.enable = true;
|
||||
services.polkit-gnome.enable = true;
|
||||
|
||||
home.packages = with pkgs; [
|
||||
dsearch
|
||||
wl-mirror
|
||||
xwayland-satellite
|
||||
];
|
||||
|
||||
programs.foot.server.enable = true;
|
||||
|
||||
# programs.ghostty.enable = true;
|
||||
|
||||
# programs.firefox.preferences = {
|
||||
# "widget.gtk.libadwaita-colors.enabled" = true;
|
||||
# };
|
||||
|
||||
# xdg.configFile."polybar/config.ini".source = config.lib.file.mkOutOfStoreSymlink "/etc/nixos/home/dotfiles/polybar/config.ini";
|
||||
}
|
||||
29
home/desktop-slim/password-store.nix
Normal file
29
home/desktop-slim/password-store.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.password-store = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PASSWORD_STORE_DIR = "${config.xdg.dataHome}/crypto/password-store";
|
||||
};
|
||||
};
|
||||
|
||||
programs.firefox.nativeMessagingHosts = [
|
||||
pkgs.passff-host
|
||||
];
|
||||
|
||||
services.gnome-keyring.enable = false;
|
||||
|
||||
services.pass-secret-service = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
xdg.configFile."scdaemon" = {
|
||||
text = ''
|
||||
disable-ccid
|
||||
pcsc-shared
|
||||
'';
|
||||
target = "../.gnupg/scdaemon.conf";
|
||||
};
|
||||
|
||||
}
|
||||
17
home/desktop-slim/user-dirs.nix
Normal file
17
home/desktop-slim/user-dirs.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
xdg.userDirs = {
|
||||
enable = true;
|
||||
createDirectories = true;
|
||||
desktop = "${config.home.homeDirectory}/desktop";
|
||||
documents = "${config.home.homeDirectory}/misc";
|
||||
download = "${config.home.homeDirectory}/tmp";
|
||||
music = "${config.home.homeDirectory}/media/music";
|
||||
pictures = "${config.home.homeDirectory}/media/img";
|
||||
publicShare = "${config.home.homeDirectory}/box";
|
||||
templates = "${config.xdg.dataHome}/templates";
|
||||
videos = "${config.home.homeDirectory}/media/vid";
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue