waybar style and apple fonts woop woop and other small things that i forgor

This commit is contained in:
lucy 2025-12-11 00:20:50 +01:00
parent f96897573a
commit c8fad324ad
10 changed files with 318 additions and 93 deletions

View File

@ -2,7 +2,12 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }: {
config,
pkgs,
apple-fonts,
...
}:
{ {
imports = [ imports = [
@ -15,8 +20,16 @@
noto-fonts-cjk-sans noto-fonts-cjk-sans
noto-fonts noto-fonts
nerd-fonts._0xproto nerd-fonts._0xproto
]; apple-fonts.packages.${pkgs.system}.sf-pro-nerd
# You can also use the nerd-fonts patched versions
# apple-fonts.packages.${pkgs.system}.san-francisco-nerdfont
# apple-fonts.packages.${pkgs.system}.sf-mono-nerdfont
# Add other system fonts you want
# noto-fonts
# dejavu_fonts
];
}; };
programs.hyprland.enable = true; programs.hyprland.enable = true;
services.displayManager.gdm.enable = true; services.displayManager.gdm.enable = true;
@ -55,7 +68,14 @@
}; };
hardware.graphics.enable = true; hardware.graphics.enable = true;
nix.extraOptions = "experimental-features = nix-command flakes"; nix = {
extraOptions = "experimental-features = nix-command flakes";
optimise.automatic = true;
optimise.dates = [ "12:00" ];
gc = {
automatic = true;
};
};
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
@ -113,9 +133,11 @@
console.keyMap = "de-latin1-nodeadkeys"; console.keyMap = "de-latin1-nodeadkeys";
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
programs.zsh.enable = true;
users.users.lucy = { users.users.lucy = {
isNormalUser = true; isNormalUser = true;
description = "lucy"; description = "lucy";
shell = pkgs.zsh;
extraGroups = [ extraGroups = [
"networkmanager" "networkmanager"
"wheel" "wheel"
@ -138,6 +160,9 @@
gcc gcc
blueman blueman
zzz zzz
quickshell
kdePackages.qtdeclarative
kdePackages.qtbase
]; ];
programs.steam = { programs.steam = {

185
flake.lock generated
View File

@ -1,5 +1,31 @@
{ {
"nodes": { "nodes": {
"apple-fonts": {
"inputs": {
"nixpkgs": "nixpkgs",
"ny": "ny",
"sf-arabic": "sf-arabic",
"sf-armenian": "sf-armenian",
"sf-compact": "sf-compact",
"sf-georgian": "sf-georgian",
"sf-hebrew": "sf-hebrew",
"sf-mono": "sf-mono",
"sf-pro": "sf-pro"
},
"locked": {
"lastModified": 1758228441,
"narHash": "sha256-3mA9oFuhJ1EHyhPd17g/EuJi4jDYPGhyxkEitdh3Kmc=",
"owner": "Lyndeno",
"repo": "apple-fonts.nix",
"rev": "aba9944f6606a69ebedf7bfb723316139eec3f72",
"type": "github"
},
"original": {
"owner": "Lyndeno",
"repo": "apple-fonts.nix",
"type": "github"
}
},
"base16": { "base16": {
"inputs": { "inputs": {
"fromYaml": "fromYaml" "fromYaml": "fromYaml"
@ -181,7 +207,7 @@
}, },
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1764912896, "lastModified": 1764912896,
@ -226,6 +252,22 @@
} }
}, },
"nixpkgs": { "nixpkgs": {
"locked": {
"lastModified": 1757745802,
"narHash": "sha256-hLEO2TPj55KcUFUU1vgtHE9UEIOjRcH/4QbmfHNF820=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "c23193b943c6c689d70ee98ce3128239ed9e32d1",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1764517877, "lastModified": 1764517877,
"narHash": "sha256-pp3uT4hHijIC8JUK5MEqeAWmParJrgBVzHLNfJDZxg4=", "narHash": "sha256-pp3uT4hHijIC8JUK5MEqeAWmParJrgBVzHLNfJDZxg4=",
@ -241,7 +283,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_2": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1764667669, "lastModified": 1764667669,
"narHash": "sha256-7WUCZfmqLAssbDqwg9cUDAXrSoXN79eEEq17qhTNM/Y=", "narHash": "sha256-7WUCZfmqLAssbDqwg9cUDAXrSoXN79eEEq17qhTNM/Y=",
@ -257,7 +299,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_3": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1764794580, "lastModified": 1764794580,
"narHash": "sha256-UMVihg0OQ980YqmOAPz+zkuCEb9hpE5Xj2v+ZGNjQ+M=", "narHash": "sha256-UMVihg0OQ980YqmOAPz+zkuCEb9hpE5Xj2v+ZGNjQ+M=",
@ -273,22 +315,6 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_4": {
"locked": {
"lastModified": 1764517877,
"narHash": "sha256-pp3uT4hHijIC8JUK5MEqeAWmParJrgBVzHLNfJDZxg4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "2d293cbfa5a793b4c50d17c05ef9e385b90edf6c",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_5": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1764517877, "lastModified": 1764517877,
@ -305,10 +331,26 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_6": {
"locked": {
"lastModified": 1764517877,
"narHash": "sha256-pp3uT4hHijIC8JUK5MEqeAWmParJrgBVzHLNfJDZxg4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "2d293cbfa5a793b4c50d17c05ef9e385b90edf6c",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixvim": { "nixvim": {
"inputs": { "inputs": {
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"nixpkgs": "nixpkgs_3", "nixpkgs": "nixpkgs_4",
"nuschtosSearch": "nuschtosSearch", "nuschtosSearch": "nuschtosSearch",
"systems": "systems_2" "systems": "systems_2"
}, },
@ -374,18 +416,115 @@
"type": "github" "type": "github"
} }
}, },
"ny": {
"flake": false,
"locked": {
"narHash": "sha256-3257NAH4qlan2YHVLpNRy7x8IJqR2pal3OzFo/ykqXs=",
"type": "file",
"url": "https://devimages-cdn.apple.com/design/resources/download/NY.dmg"
},
"original": {
"type": "file",
"url": "https://devimages-cdn.apple.com/design/resources/download/NY.dmg"
}
},
"root": { "root": {
"inputs": { "inputs": {
"apple-fonts": "apple-fonts",
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_3",
"nixvim": "nixvim", "nixvim": "nixvim",
"spicetify-nix": "spicetify-nix", "spicetify-nix": "spicetify-nix",
"stylix": "stylix" "stylix": "stylix"
} }
}, },
"sf-arabic": {
"flake": false,
"locked": {
"narHash": "sha256-/0gjRimqvZyE60xYxxPdlU+7Q2LJnnvtbmwOP0YmS9U=",
"type": "file",
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Arabic.dmg"
},
"original": {
"type": "file",
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Arabic.dmg"
}
},
"sf-armenian": {
"flake": false,
"locked": {
"narHash": "sha256-rRoDkbNMYkzOHZmQm96Zv80TZvRlAeoxkv4pMHP5nUg=",
"type": "file",
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Armenian.dmg"
},
"original": {
"type": "file",
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Armenian.dmg"
}
},
"sf-compact": {
"flake": false,
"locked": {
"narHash": "sha256-WeqT80cdK/XzTLSaJs5DHodzxoeAzwL/xTgdq0YwQbM=",
"type": "file",
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Compact.dmg"
},
"original": {
"type": "file",
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Compact.dmg"
}
},
"sf-georgian": {
"flake": false,
"locked": {
"narHash": "sha256-IevVNOC28IiR45YfI3PsZzXLMRxuB5u7UiE53Zn6tRU=",
"type": "file",
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Georgian.dmg"
},
"original": {
"type": "file",
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Georgian.dmg"
}
},
"sf-hebrew": {
"flake": false,
"locked": {
"narHash": "sha256-Dw84kYwMpCtKKKqm8cZcQ9TZ7GayU5MO7W0LJw0Rcwk=",
"type": "file",
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Hebrew.dmg"
},
"original": {
"type": "file",
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Hebrew.dmg"
}
},
"sf-mono": {
"flake": false,
"locked": {
"narHash": "sha256-ICdHRFdNL7PM/fXJUzS7LgZxZiqcyIuCMHLze4En4vg=",
"type": "file",
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Mono.dmg"
},
"original": {
"type": "file",
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Mono.dmg"
}
},
"sf-pro": {
"flake": false,
"locked": {
"narHash": "sha256-vprahHpCUf9O8RualBrEuLEfuLfzI/2d8AQmwlCGPPk=",
"type": "file",
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg"
},
"original": {
"type": "file",
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg"
}
},
"spicetify-nix": { "spicetify-nix": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_4", "nixpkgs": "nixpkgs_5",
"systems": "systems_3" "systems": "systems_3"
}, },
"locked": { "locked": {
@ -411,7 +550,7 @@
"firefox-gnome-theme": "firefox-gnome-theme", "firefox-gnome-theme": "firefox-gnome-theme",
"flake-parts": "flake-parts_2", "flake-parts": "flake-parts_2",
"gnome-shell": "gnome-shell", "gnome-shell": "gnome-shell",
"nixpkgs": "nixpkgs_5", "nixpkgs": "nixpkgs_6",
"nur": "nur", "nur": "nur",
"systems": "systems_4", "systems": "systems_4",
"tinted-foot": "tinted-foot", "tinted-foot": "tinted-foot",

View File

@ -5,6 +5,8 @@
spicetify-nix.url = "github:Gerg-L/spicetify-nix"; spicetify-nix.url = "github:Gerg-L/spicetify-nix";
nixvim.url = "github:nix-community/nixvim"; nixvim.url = "github:nix-community/nixvim";
home-manager.url = "github:nix-community/home-manager"; home-manager.url = "github:nix-community/home-manager";
apple-fonts.url = "github:Lyndeno/apple-fonts.nix";
}; };
outputs = outputs =
@ -15,6 +17,7 @@
spicetify-nix, spicetify-nix,
nixvim, nixvim,
home-manager, home-manager,
apple-fonts,
... ...
}: }:
let let
@ -36,7 +39,6 @@
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.users.lucy = { home-manager.users.lucy = {
imports = [ imports = [
#stylix.homeModules.stylix
nixvim.homeModules.nixvim nixvim.homeModules.nixvim
spicetify-nix.homeManagerModules.spicetify spicetify-nix.homeManagerModules.spicetify
./home/home.nix ./home/home.nix
@ -46,6 +48,7 @@
} }
]; ];
specialArgs = { inherit apple-fonts; };
}; };
homeConfigurations.lucy = home-manager.lib.homeManagerConfiguration { homeConfigurations.lucy = home-manager.lib.homeManagerConfiguration {

View File

@ -17,10 +17,24 @@
# You should not change this value, even if you update Home Manager. If you do # You should not change this value, even if you update Home Manager. If you do
# want to update the value, then make sure to first check the Home Manager # want to update the value, then make sure to first check the Home Manager
# release notes. # release notes.
programs.bash.enable = true;
programs.bash.bashrcExtra = '' programs.zsh = {
"fastfetch" enable = true;
''; enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
shellAliases = {
nsr = "sudo nixos-rebuild switch";
ncb = "sudo nix-collect-garbage -d";
};
oh-my-zsh = {
enable = true;
plugins = [
"git"
];
theme = "gentoo";
};
};
home.stateVersion = "24.05"; # Please read the comment before changing. home.stateVersion = "24.05"; # Please read the comment before changing.
home.shell.enableShellIntegration = true; home.shell.enableShellIntegration = true;

View File

@ -12,6 +12,12 @@
servers = { servers = {
bashls.enable = true; bashls.enable = true;
qmlls.enable = true;
qmlls.package = null;
qmlls.cmd = [
"qmlls"
"-E"
];
clangd.package = null; clangd.package = null;
clangd.enable = true; clangd.enable = true;
clangd.cmd = [ clangd.cmd = [

View File

@ -71,5 +71,10 @@
mode = "n"; mode = "n";
action = "<Cmd>lua vim.lsp.buf.format()<CR>"; action = "<Cmd>lua vim.lsp.buf.format()<CR>";
} }
{
key = "<leader>t";
mode = "n";
action = "<cmd>terminal<cr>";
}
]; ];
} }

View File

@ -25,6 +25,7 @@
shiftwidth = 4; shiftwidth = 4;
termguicolors = true; termguicolors = true;
cursorline = true; cursorline = true;
laststatus = 0;
}; };
}; };
} }

View File

@ -1,3 +1,4 @@
{ lib, ... }:
{ {
programs.nixvim.plugins = { programs.nixvim.plugins = {
@ -12,6 +13,41 @@
ignore_install = [ "ipkg" ]; ignore_install = [ "ipkg" ];
}; };
}; };
render-markdown = {
enable = true;
settings = {
bullet = {
icons = [
" "
" "
" "
];
right_pad = 1;
};
code = {
above = " ";
below = " ";
border = "thick";
language_pad = 2;
left_pad = 2;
position = "right";
right_pad = 2;
sign = true;
width = "block";
};
heading = {
border = true;
position = "inline";
sign = false;
width = "full";
};
render_modes = true;
signs = {
enabled = true;
};
};
};
alpha = { alpha = {
enable = true; enable = true;
settings.layout = [ settings.layout = [
@ -102,7 +138,6 @@
hl = "Keyword"; hl = "Keyword";
}; };
} }
]; ];
opts = { opts = {
position = "center"; position = "center";
@ -139,6 +174,7 @@
enable = true; enable = true;
settings = { settings = {
options = { options = {
globalstatus = true;
section_separators = { section_separators = {
left = ""; left = "";
right = ""; right = "";

View File

@ -1,4 +1,4 @@
{ config, ... }: { config, lib, ... }:
{ {
programs.waybar = { programs.waybar = {
enable = true; enable = true;
@ -6,14 +6,13 @@
style = '' style = ''
* { * {
font-family: "0xProto Nerd Font Propo";
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 600;
} }
window#waybar { window#waybar {
background-color: @base00; background-color: transparent;
border-radius: ${builtins.toString config.wayland.windowManager.hyprland.settings.decoration.rounding};
} }
#workspaces button { #workspaces button {
@ -43,15 +42,14 @@
#upower, #upower,
#clock, #clock,
#power-profiles-daemon { #power-profiles-daemon {
margin: 0px; padding: 2px 10px;
padding: 2px 2px;
border-radius: 1em;
background-color: @base00; background-color: @base00;
color: @base05; color: @base05;
border-radius: ${builtins.toString config.wayland.windowManager.hyprland.settings.decoration.rounding};
} }
#tray { #tray {
padding: 0px 8px 0px 4px; padding: 0px 8px;
} }
window#waybar.empty #window { window#waybar.empty #window {
@ -63,9 +61,12 @@
''; '';
settings = { settings = {
mainBar = { mainBar = {
margin-top = config.wayland.windowManager.hyprland.settings.general.gaps_out;
margin-left = config.wayland.windowManager.hyprland.settings.general.gaps_out;
margin-right = config.wayland.windowManager.hyprland.settings.general.gaps_out;
layer = "top"; layer = "top";
position = "top"; position = "top";
spacing = 0; spacing = 4;
modules-left = [ modules-left = [
"hyprland/workspaces" "hyprland/workspaces"
"hyprland/window" "hyprland/window"
@ -73,15 +74,10 @@
]; ];
modules-right = [ modules-right = [
"backlight" "backlight"
"custom/sep"
"pulseaudio" "pulseaudio"
"custom/sep"
"upower" "upower"
"custom/sep"
"power-profiles-daemon" "power-profiles-daemon"
"custom/sep"
"clock" "clock"
"custom/sep"
"tray" "tray"
]; ];
"custom/sep" = { "custom/sep" = {
@ -98,8 +94,7 @@
}; };
"tray" = { "tray" = {
spacing = 10; icon-size = 14;
icon-size = 16;
}; };
"hyprland/workspaces" = { "hyprland/workspaces" = {

View File

@ -2,6 +2,7 @@
config, config,
lib, lib,
pkgs, pkgs,
apple-fonts,
... ...
}: }:
{ {
@ -24,7 +25,7 @@
stylix = { stylix = {
enable = true; enable = true;
autoEnable = true; autoEnable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-material-dark-hard.yaml"; base16Scheme = "${pkgs.base16-schemes}/share/themes/rose-pine.yaml";
polarity = "dark"; polarity = "dark";
image = ./home/wallpaper.png; image = ./home/wallpaper.png;
targets = { targets = {
@ -45,8 +46,8 @@
name = config.stylix.fonts.monospace.name; name = config.stylix.fonts.monospace.name;
}; };
monospace = { monospace = {
package = pkgs.nerd-fonts._0xproto; package = apple-fonts.packages.${pkgs.system}.sf-mono-nerd;
name = "0xProto Nerd Font Propo"; name = "SFMono Nerd Font";
}; };
emoji = { emoji = {