feat: add rofi, fonts, dunst config, gtk theme

This commit is contained in:
2025-06-17 23:13:01 -07:00
parent a091cf8a79
commit 9a530d15de
18 changed files with 595 additions and 11 deletions

17
nix/flake.lock generated
View File

@@ -1,5 +1,21 @@
{
"nodes": {
"custom-fonts": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"path": "./fonts",
"type": "path"
},
"original": {
"path": "./fonts",
"type": "path"
},
"parent": []
},
"flake-compat": {
"flake": false,
"locked": {
@@ -150,6 +166,7 @@
},
"root": {
"inputs": {
"custom-fonts": "custom-fonts",
"home-manager": "home-manager",
"mantle": "mantle",
"nixos-wsl": "nixos-wsl",

View File

@@ -12,6 +12,8 @@
mantle.inputs.nixpkgs.follows = "nixpkgs";
rokit.url = "github:rocketcamel/rokit-nix";
rokit.inputs.nixpkgs.follows = "nixpkgs";
custom-fonts.url = "path:./fonts";
custom-fonts.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
@@ -71,6 +73,9 @@
inputs.mantle.packages.${host.architecture}.default
inputs.rokit.packages.${host.architecture}.default
];
fonts.packages = [
inputs.custom-fonts.packages.${host.architecture}.default
];
nixpkgs.config.allowUnfree = true;
}
]

View File

@@ -0,0 +1,12 @@
{ stdenv, lib }:
stdenv.mkDerivation {
pname = "custom-fonts";
version = "0.1.0";
src = ../../custom/fonts;
installPhase = ''
mkdir -p $out/share/fonts
cp -r $src/* $out/share/fonts
'';
}

27
nix/fonts/flake.lock generated Normal file
View File

@@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1750134718,
"narHash": "sha256-v263g4GbxXv87hMXMCpjkIxd/viIF7p3JpJrwgKdNiI=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "9e83b64f727c88a7711a2c463a7b16eedb69a84c",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

18
nix/fonts/flake.nix Normal file
View File

@@ -0,0 +1,18 @@
{
description = "custom-fonts";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs =
{ self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
fonts = pkgs.callPackage ./custom-fonts.nix { };
in
{
packages.x86_64-linux.default = fonts;
};
}

1
nix/fonts/result Symbolic link
View File

@@ -0,0 +1 @@
/nix/store/0vacng2hzhihjl7z98ni7vzs8rdl68v3-custom-fonts-0.1.0

View File

@@ -39,10 +39,6 @@
wheelNeedsPassword = false;
};
fonts.packages = with pkgs; [
nerd-fonts.jetbrains-mono
];
i3.enable = true;
kanata.enable = true;

View File

@@ -16,6 +16,11 @@
mplus-outline-fonts.githubRelease
dina-font
proggyfonts
nerd-fonts.jetbrains-mono
nerd-fonts.iosevka
roboto
roboto-mono
open-sans
];
fonts.fontDir.enable = true;
commonPackages = with pkgs; [

View File

@@ -12,5 +12,6 @@
./kanata.nix
./pipewire.nix
./keys.nix
./rofi.nix
];
}

View File

@@ -48,9 +48,13 @@
ahk_x11
prismlauncher
feh
dconf
rofi
papirus-icon-theme
];
programs.thunar.enable = true;
services.tumbler.enable = true;
rofi.enable = true;
home-manager.users.luca = {
programs = {
@@ -58,7 +62,7 @@
enable = true;
settings = {
"shell-integration-features" = "no-cursor";
"background-opacity" = 0.8;
"background-opacity" = 0.85;
"cursor-style" = "block";
"cursor-style-blink" = false;
"font-size" = 15;
@@ -67,6 +71,18 @@
};
services.dunst = {
enable = true;
configFile = ../../custom/dunst/dunstrc;
};
gtk = {
enable = true;
theme.name = "Adwaita-dark";
gtk4.extraConfig = {
gtk-application-prefer-dark-theme = true;
};
};
qt = {
enable = true;
style.name = "adwaita-dark";
};
services.picom = {
@@ -75,10 +91,6 @@
};
services.copyq.enable = true;
xsession.initExtra = ''
xset s off
xset s noblank
'';
xsession.windowManager.i3 = {
enable = true;
extraConfig = ''
@@ -89,11 +101,13 @@
config = {
modifier = "Mod4";
defaultWorkspace = "workspace number 1";
terminal = "alacritty";
terminal = "ghostty";
fonts = {
names = [
"Noto Sans"
"Noto Sans CJK JP"
"Open Sans"
"Feather"
];
size = 10.0;
};
@@ -114,7 +128,7 @@
"${modifier}+Shift+j" = "move down";
"${modifier}+Shift+k" = "move up";
"${modifier}+Shift+l" = "move right";
"${modifier}+Return" = "exec ghostty";
"${modifier}+d" = "exec rofi -show drun -theme ~/.config/rofi/launcher.rasi";
};
#startup = [
# {

20
nix/modules/rofi.nix Normal file
View File

@@ -0,0 +1,20 @@
{
pkgs,
lib,
config,
...
}:
{
options.rofi = {
enable = lib.mkEnableOption "enable rofi";
};
config = lib.mkIf config.rofi.enable {
home-manager.users.luca = {
xdg.configFile = {
"rofi".source = ../../custom/rofi;
};
};
};
}