organisation + move config for all devices to 'global' counterparts
This commit is contained in:
10 files changed
+245
-114
No files matched your search
@@ -0,0 +1,122 @@
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs.fastfetch = {
|
||||
enable = true;
|
||||
settings = {
|
||||
logo = {
|
||||
source = "/home/grey/nixos/assets/jiji.jpg";
|
||||
width = 25;
|
||||
padding = {
|
||||
top = 1;
|
||||
left = 2;
|
||||
right = 2;
|
||||
};
|
||||
};
|
||||
|
||||
modules = [
|
||||
{
|
||||
type = "separator";
|
||||
string = " ";
|
||||
times = 0;
|
||||
}
|
||||
{
|
||||
type = "title";
|
||||
color = {
|
||||
user = "green";
|
||||
host = "green";
|
||||
};
|
||||
}
|
||||
{
|
||||
type = "separator";
|
||||
string = "-";
|
||||
times = 0;
|
||||
}
|
||||
{
|
||||
type = "os";
|
||||
}
|
||||
{
|
||||
type = "kernel";
|
||||
}
|
||||
{
|
||||
type = "uptime";
|
||||
}
|
||||
{
|
||||
type = "shell";
|
||||
}
|
||||
{
|
||||
type = "de";
|
||||
}
|
||||
{
|
||||
type = "terminal";
|
||||
}
|
||||
{
|
||||
type = "cpu";
|
||||
temp = false;
|
||||
showPeCoreCount = false;
|
||||
}
|
||||
{
|
||||
type = "gpu";
|
||||
driverSpecific = false;
|
||||
detectionMethod = "pci";
|
||||
temp = false;
|
||||
hideType = "integrated";
|
||||
percent = {
|
||||
green = 50;
|
||||
yellow = 80;
|
||||
type = 0;
|
||||
};
|
||||
}
|
||||
{
|
||||
type = "memory";
|
||||
percent = {
|
||||
green = 50;
|
||||
yellow = 80;
|
||||
type = 0;
|
||||
};
|
||||
}
|
||||
{
|
||||
type = "swap";
|
||||
percent = {
|
||||
green = 50;
|
||||
yellow = 80;
|
||||
type = 0;
|
||||
};
|
||||
separate = false;
|
||||
}
|
||||
{
|
||||
type = "disk";
|
||||
showRegular = true;
|
||||
showExternal = false;
|
||||
showHidden = false;
|
||||
showSubvolumes = false;
|
||||
showReadOnly = true;
|
||||
ShowUnknown = false;
|
||||
hideFolders = "/efi:/boot:/boot/*:/run/media/*";
|
||||
useAvailable = false;
|
||||
percent = {
|
||||
green = 50;
|
||||
yellow = 80;
|
||||
type = 0;
|
||||
};
|
||||
}
|
||||
{
|
||||
type = "localip";
|
||||
showIpv4 = true;
|
||||
showIpv6 = false;
|
||||
showMac = false;
|
||||
showLoop = false;
|
||||
showPrefixLen = true;
|
||||
showMtu = false;
|
||||
showSpeed = false;
|
||||
showFlags = false;
|
||||
compact = false;
|
||||
defaultRouteOnly = true;
|
||||
showAllIps = false;
|
||||
namePrefix = "";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
home.packages = [
|
||||
pkgs.bibata-cursors
|
||||
pkgs.papirus-icon-theme
|
||||
pkgs.kdePackages.oxygen
|
||||
pkgs.kdePackages.oxygen-sounds
|
||||
];
|
||||
|
||||
home.activation = {
|
||||
linkThemingAssets = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||
#!/bin/bash
|
||||
if [ ! -d /home/grey/.local/share/wallpapers/ExposeAir ]; then
|
||||
mkdir -p /home/grey/.local/share/wallpapers
|
||||
ln -s /home/grey/nixos/assets/expose-air/wallpapers/ExposeAir /home/grey/.local/share/wallpapers/ExposeAir
|
||||
fi
|
||||
|
||||
if [ ! -f /home/grey/.local/share/color-schemes/OxygenDarkEdit.colors ]; then
|
||||
mkdir -p /home/grey/.local/share/color-schemes
|
||||
ln -s /home/grey/nixos/assets/OxygenDarkEdit.colors /home/grey/.local/share/color-schemes/OxygenDarkEdit.colors
|
||||
fi
|
||||
|
||||
if [ ! -f /home/grey/.config/oxygenrc ]; then
|
||||
ln -s /home/grey/nixos/assets/oxygenrc /home/grey/.config/oxygenrc
|
||||
fi
|
||||
|
||||
if [ ! -d /home/grey/.local/share/plasma/desktoptheme/exposeair ]; then
|
||||
mkdir -p /home/grey/.local/share/plasma/desktoptheme
|
||||
ln -s /home/grey/nixos/assets/expose-air/desktoptheme/exposeair /home/grey/.local/share/plasma/desktoptheme/exposeair
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
||||
programs.plasma = {
|
||||
enable = true;
|
||||
overrideConfig = true;
|
||||
|
||||
session.sessionRestore.restoreOpenApplicationsOnLogin = "startWithEmptySession";
|
||||
|
||||
input.keyboard.numlockOnStartup = "on";
|
||||
|
||||
workspace = {
|
||||
clickItemTo = "select";
|
||||
colorScheme = "OxygenDarkEdit";
|
||||
cursor = {
|
||||
size = 22;
|
||||
theme = "Bibata-Modern-Ice";
|
||||
};
|
||||
iconTheme = "Papirus-Dark";
|
||||
theme = "exposeair";
|
||||
wallpaper = "/home/grey/.local/share/wallpapers/ExposeAir/contents/images/2560x1440.png";
|
||||
windowDecorations = {
|
||||
library = "org.kde.oxygen";
|
||||
theme = "oxygen";
|
||||
};
|
||||
soundTheme = "oxygen";
|
||||
};
|
||||
|
||||
hotkeys.commands."rebuild-flake" = {
|
||||
name = "Rebuild NixOS Flake";
|
||||
key = "Meta+Z";
|
||||
command = "kitty --hold bash -c \"nh os switch /home/grey/nixos; if [ \\$? == 0 ]; then exit; fi\"";
|
||||
};
|
||||
|
||||
shortcuts = {
|
||||
plasmashell = {
|
||||
"Show Activity Switcher" = "none";
|
||||
"manage activities" = "none";
|
||||
};
|
||||
|
||||
kwin = {
|
||||
"Close Window" = "Meta+Q";
|
||||
"Window Close" = "Meta+Q";
|
||||
};
|
||||
|
||||
"services/kitty.desktop"."_launch" = "Meta+Return";
|
||||
};
|
||||
|
||||
panels = [
|
||||
{
|
||||
location = "bottom";
|
||||
widgets = [
|
||||
{
|
||||
name = "org.kde.plasma.kickoff";
|
||||
config = {
|
||||
General = {
|
||||
icon = "nix-snowflake";
|
||||
};
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "org.kde.plasma.icontasks";
|
||||
config = {
|
||||
iconsOnly = true;
|
||||
launchers = [
|
||||
"applications:zen-beta.desktop"
|
||||
"applications:thunderbird.desktop"
|
||||
"applications:org.kde.dolphin.desktop"
|
||||
"applications:equibop.desktop"
|
||||
"applications:spotify.desktop"
|
||||
"applications:steam.desktop"
|
||||
"applications:org.prismlauncher.PrismLauncher.desktop"
|
||||
"applications:obsidian.desktop"
|
||||
"applications:github-desktop.desktop"
|
||||
"applications:unityhub.desktop"
|
||||
"applications:org.godotengine.Godot4.6.desktop"
|
||||
"applications:code.desktop"
|
||||
"applications:idea.desktop"
|
||||
"applications:clion.desktop"
|
||||
"applications:com.obsproject.Studio.desktop"
|
||||
"applications:proton.vpn.app.gtk.desktop"
|
||||
"applications:systemsettings.desktop"
|
||||
"applications:io.ente.auth.desktop"
|
||||
"applications:io.github.ilya_zlobintsev.LACT.desktop"
|
||||
];
|
||||
};
|
||||
}
|
||||
"org.kde.plasma.marginsseparator"
|
||||
"org.kde.plasma.systemtray"
|
||||
"org.kde.plasma.digitalclock"
|
||||
"org.kde.plasma.showdesktop"
|
||||
];
|
||||
height = 48;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
firefox-addons = with pkgs; inputs.firefox-addons.packages.${system};
|
||||
in {
|
||||
programs.zen-browser = {
|
||||
enable = true;
|
||||
setAsDefaultBrowser = true;
|
||||
nativeMessagingHosts = [
|
||||
pkgs.firefoxpwa
|
||||
];
|
||||
policies = {
|
||||
AutofillAddressEnabled = false;
|
||||
AutofillCreditCardEnabled = false;
|
||||
DisableAppUpdate = true;
|
||||
DisableFeedbackCommands = true;
|
||||
DisableFirefoxStudies = true;
|
||||
DisablePocket = true;
|
||||
DisableTelemetry = true;
|
||||
NoDefaultBookmarks = true;
|
||||
OfferToSaveLogins = false;
|
||||
EnableTrackingProtection = {
|
||||
Value = true;
|
||||
Locked = true;
|
||||
Cryptomining = true;
|
||||
Fingerprinting = true;
|
||||
};
|
||||
Preferences = {
|
||||
"browser.startup.homepage" = {
|
||||
Value = "about:blank";
|
||||
Status = "locked";
|
||||
};
|
||||
};
|
||||
};
|
||||
profiles.default = {
|
||||
settings = {
|
||||
"zen.urlbar.behavior" = "float";
|
||||
"zen.welcome-screen.seen" = true;
|
||||
};
|
||||
extensions.packages = with firefox-addons; [
|
||||
adnauseam
|
||||
bitwarden
|
||||
indie-wiki-buddy
|
||||
pwas-for-firefox
|
||||
];
|
||||
search = {
|
||||
force = true;
|
||||
default = "ddg";
|
||||
engines = {
|
||||
nixpkgs = {
|
||||
name = "nixpkgs packages";
|
||||
urls = [
|
||||
{
|
||||
template = "https://search.nixos.org/packages?query={searchTerms}";
|
||||
}
|
||||
];
|
||||
icon = "https://wiki.nixos.org/favicon.ico";
|
||||
definedAliases = ["@np"];
|
||||
};
|
||||
nixos-options = {
|
||||
name = "NixOS options";
|
||||
urls = [
|
||||
{
|
||||
template = "https://search.nixos.org/options?query={searchTerms}";
|
||||
}
|
||||
];
|
||||
icon = "https://wiki.nixos.org/favicon.ico";
|
||||
definedAliases = ["@no"];
|
||||
};
|
||||
nixos-wiki = {
|
||||
name = "NixOS Wiki";
|
||||
urls = [
|
||||
{
|
||||
template = "https://wiki.nixos.org/w/index.php?search={searchTerms}";
|
||||
}
|
||||
];
|
||||
icon = "https://wiki.nixos.org/favicon.ico";
|
||||
definedAliases = ["@nw"];
|
||||
};
|
||||
};
|
||||
};
|
||||
keyboardShortcuts = [
|
||||
{
|
||||
id = "key_close";
|
||||
key = "q";
|
||||
modifiers = {
|
||||
control = false;
|
||||
alt = true;
|
||||
};
|
||||
}
|
||||
{
|
||||
id = "key_newNavigatorTab";
|
||||
keycode = "VK_RETURN";
|
||||
modifiers = {
|
||||
control = false;
|
||||
alt = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
keyboardShortcutsVersion = 19;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user