more desktop configuration

This commit is contained in:
insects 2024-08-10 21:31:53 +02:00
parent 240a170c53
commit 97719f3d77
6 changed files with 269 additions and 7 deletions

View file

@ -1,8 +1,32 @@
{ pkgs, ... }: {
imports = [
./font.nix
./firefox.nix
./kitty.nix
];
fonts.fontconfig.enable = true;
home.packages = with pkgs; [
wf-recorder
wl-clipboard
];
home.sessionVariables = {
MOZ_ENABLE_WAYLAND = 1;
QT_QPA_PLATFORM = "wayland";
LIBSEAT_BACKEND = "logind";
};
programs.imv.enable = true;
xdg.mimeApps.enable = true;
xdg.portal = {
enable = true;
extraPortals = [pkgs.xdg-desktop-portal-wlr];
config = {
common = {
default = [
"wlr"
];
};
};
};
}

View file

@ -0,0 +1,8 @@
{ imports, config, pkgs, ... }: {
home.packages = with pkgs; [
noto-fonts
noto-fonts-emoji
];
fonts.fontconfig.enable = true;
}

View file

@ -1,11 +1,6 @@
{ config, inputs, pkgs, ... }: {
programs.kitty = {
enable = true;
font = {
name = "JetBrains Mono Nerd Font";
package = pkgs.nerdfonts.override { fonts = ["JetBrainsMono"]; };
size = 11;
};
settings = {
editor = config.home.sessionVariables.EDITOR;
window_padding_width = 10;

View file

@ -1,6 +1,7 @@
{ inputs, lib, pkgs, config, outputs, ... }: {
imports = [
inputs.nix-index-database.hmModules.nix-index
inputs.stylix.homeManagerModules.stylix
./common/cli
./common/universal
] ++ (builtins.attrValues outputs.homeManagerModules);
@ -42,4 +43,19 @@
FLAKE = "$HOME/nix-config";
};
};
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-frappe.yaml";
image = pkgs.fetchurl {
url = "https://www.pixelstalk.net/wp-content/uploads/2016/05/Epic-Anime-Awesome-Wallpapers.jpg";
sha256 = "enQo3wqhgf0FEPHj2coOCvo7DuZv+x5rL/WIo4qPI50=";
};
fonts = {
monospace = {
name = "JetBrains Mono Nerd Font";
package = pkgs.nerdfonts.override { fonts = ["JetBrainsMono"]; };
};
};
};
}