Compare commits

...

4 Commits

Author SHA1 Message Date
Jill 25a5c6e1a6 oops forgot the actually terrible part of ccf5e34 2024-03-04 13:41:35 +03:00
Jill 060e0fa826 minor font & theme application fixes 2024-03-04 13:41:02 +03:00
Jill 005124e970 add protontricks and steam-run because i use them daily at this rate 2024-03-04 13:40:45 +03:00
Jill ccf5e34878 satisfy the Autism Beast (by justifying the means with the ends)
horrible /etc/os-release hack that changes the logo (visible in gnome settings, for instance) to an iterator icon. i am so happy about this information
2024-03-04 13:40:11 +03:00
7 changed files with 56 additions and 5 deletions

View File

@ -16,13 +16,13 @@
# debug
strace ltrace lsof
# apps
vivaldi telegram-desktop onlyoffice-bin mpv qalculate-gtk
vivaldi telegram-desktop onlyoffice-bin mpv qalculate-gtk krita
# compatilibility
wineWowPackages.waylandFull winetricks
# misc
cowsay file which tree gnused yt-dlp prismlauncher
] ++ (with pkgs.my; [
olympus
olympus iterator-icons
]);
# usually you don't need to do this, but this is a workaround for https://github.com/flameshot-org/flameshot/issues/3328
@ -30,6 +30,10 @@
modules = {
security.useDoas = true;
os-release = {
enable = true;
logo = "seven-red-suns";
};
hardware = {
pipewire.enable = true;

View File

@ -87,6 +87,12 @@ in {
hm.gtk.font = {
inherit (cfg.fonts.sans) package name size;
};
hm.dconf.settings = {
"org/gnome/desktop/interface".font-name = with cfg.fonts.sans; "${family} ${toString size}";
"org/gnome/desktop/interface".document-font-name = with cfg.fonts.sansSerif; "${family} ${toString size}";
"org/gnome/desktop/interface".monospace-font-name = with cfg.fonts.monospace; "${family} ${toString size}";
};
} // (mkIf cfg.baseFonts {
fonts.packages = with pkgs; [
fira-code

View File

@ -41,6 +41,11 @@ in {
hm.dconf = {
enable = true;
settings."org/gnome/desktop/interface".color-scheme = mkIf cfg.dark "prefer-dark";
settings."org/gnome/desktop/interface".gtk-theme = cfg.gtkTheme.name;
settings."org/gnome/desktop/interface".icon-theme = cfg.iconTheme.name;
settings."org/gnome/desktop/interface".cursor-theme = cfg.cursor.name;
settings."org/gnome/shell/extensions/user-theme".name = cfg.gtkTheme.name;
};
hm.gtk = {
@ -49,8 +54,6 @@ in {
iconTheme = cfg.iconTheme;
theme = cfg.gtkTheme;
};
hm.dconf.settings."org/gnome/desktop/interface/gtk-theme".name = cfg.gtkTheme.name;
hm.dconf.settings."org/gnome/shell/extensions/user-theme".name = cfg.gtkTheme.name;
hm.programs.vscode = {
extensions = [ cfg.editor.vscode.extension ];

20
modules/os-release.nix Normal file
View File

@ -0,0 +1,20 @@
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.modules.os-release;
in {
options.modules.os-release = {
enable = mkEnableOption "Modify /etc/os-release. Highly cursed";
logo = mkOption { type = types.str; };
};
config = mkIf cfg.enable {
environment.etc."os-release" = let
orig = config.environment.etc."os-release".text; # help
replaced = replaceStrings [ "nix-snowflake" ] [ cfg.logo ] orig;
in {
source = mkForce (pkgs.writeText "os-release" replaced);
};
};
}

View File

@ -1,4 +1,4 @@
{ lib, config, ... }:
{ lib, config, pkgs, ... }:
with lib;
let
@ -16,5 +16,6 @@ in {
enableRenice = true;
settings = {};
};
user.packages = [ pkgs.protontricks pkgs.steam-run ];
};
}

View File

@ -0,0 +1,17 @@
{ stdenv, ... }:
stdenv.mkDerivation {
pname = "iterator-icons";
version = "0.0.0";
src = ./.;
dontDropIconThemeCache = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/icons/hicolor/256x256/apps/
cp -a ./icons/* $out/share/icons/hicolor/256x256/apps/
runHook postInstall
'';
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB