2 Commits

Author SHA1 Message Date
installer
9a01abb83b Poprawa integracji z portalem XDG i wsparcie dla Ulaunchera
- Dodano `xdg-desktop-portal-hyprland` do konfiguracji systemowej, Hyprlanda oraz środowiska użytkownika.
- Włączono obsługę `dbus` w `initrd`, co może być wymagane przez `xdg-desktop-portal`.
- Rozszerzono konfigurację portali XDG o jawne ustawienia priorytetów (`gtk`, `hyprland`).
- Dodano `ulauncher` oraz `wmctrl` do listy narzędzi, a także nowe skróty klawiszowe do jego uruchamiania.
- Pomimo zmian, integracja portalu XDG nie działa jeszcze zgodnie z oczekiwaniami.
2025-05-07 20:11:04 +02:00
installer
e832b7fd33 aktualizacja zależności 2025-05-05 21:34:03 +02:00
11 changed files with 100 additions and 113 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 809 KiB

View File

@@ -1,33 +0,0 @@
# GRUB2 gfxmenu theme
desktop-image: "jablon.png"
title-text: ""
terminal-left: "0"
terminal-top: "0"
terminal-width: "100%"
terminal-height: "100%"
terminal-border: "0"
+ boot_menu {
left = 15%
top = 30%
width = 70%
height = 40%
item_font = "DejaVu Sans Regular 12"
item_color = "#cccccc"
selected_item_color = "#ffffff"
icon_width = 32
icon_height = 32
item_height = 24
item_spacing = 12
selected_item_pixmap_style = "select_*.png"
}
+ label {
top = 82%
left = 15%
width = 70%
align = "center"
text = "Użyj strzałek do wyboru pozycji menu i Enter aby potwierdzić."
color = "#ffffff"
font = "DejaVu Sans Bold 10"
}

View File

@@ -1,5 +1,6 @@
{ {
lib, lib,
pkgs,
username, username,
host, host,
config, config,
@@ -18,6 +19,7 @@ in
enable = true; enable = true;
xwayland.enable = true; xwayland.enable = true;
systemd.enable = true; systemd.enable = true;
portalPackage = pkgs.xdg-desktop-portal-hyprland;
extraConfig = let extraConfig = let
modifier = "SUPER"; modifier = "SUPER";
in in
@@ -192,6 +194,7 @@ in
bind = ${modifier},SPACE,togglespecialworkspace bind = ${modifier},SPACE,togglespecialworkspace
bind = ${modifier},Return,exec,${terminal} bind = ${modifier},Return,exec,${terminal}
bind = ${modifier}SHIFT,Return,exec,rofi-launcher bind = ${modifier}SHIFT,Return,exec,rofi-launcher
bind = ${modifier}ALT,SPACE,exec,ulauncher-toggle
bind = ${modifier}ALT,W,exec,wallsetter bind = ${modifier}ALT,W,exec,wallsetter
bind = ${modifier}SHIFT,S,exec,screenshootin bind = ${modifier}SHIFT,S,exec,screenshootin
bind = ${modifier},E,exec,emopicker9000 bind = ${modifier},E,exec,emopicker9000

36
flake.lock generated
View File

@@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1745403023, "lastModified": 1746268454,
"narHash": "sha256-DEs6jbWYJFJgpaPtF5NT3DQs3erjzdm2brLNHpjrEPA=", "narHash": "sha256-cUrVjYzFn1zzR6m2hc02CdjlSPIADtAVo+7BE7qq0ZA=",
"owner": "AdnanHodzic", "owner": "AdnanHodzic",
"repo": "auto-cpufreq", "repo": "auto-cpufreq",
"rev": "ad6e313dabf7e4da2765be6b36688db85b29ff5f", "rev": "3ffbee11df46921c9a60f118d3450a7e460f7b13",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -95,11 +95,11 @@
}, },
"locked": { "locked": {
"dir": "pkgs/firefox-addons", "dir": "pkgs/firefox-addons",
"lastModified": 1745752599, "lastModified": 1746417810,
"narHash": "sha256-vX5uq4wv7FeNeeFtsTPXQ9n2hd92NFXI+u9sg1K8OhA=", "narHash": "sha256-VhghpfFdvGiDeh6HqFhQncnLx4IrtFy4VWdCQvOwccI=",
"owner": "rycee", "owner": "rycee",
"repo": "nur-expressions", "repo": "nur-expressions",
"rev": "0388c30f59e860307b2ef0ba93f38d2e525a153e", "rev": "14c779b4ff24742307127970549ac9a51de3f98a",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
@@ -271,11 +271,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1745894335, "lastModified": 1746413188,
"narHash": "sha256-m47zhftaod/oHOwoVT25jstdcVLhkrVGyvEHKjbnFHI=", "narHash": "sha256-i6BoiQP0PasExESQHszC0reQHfO6D4aI2GzOwZMOI20=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "1ad123239957d40e11ef66c203d0a7e272eb48aa", "rev": "8a318641ac13d3bc0a53651feaee9560f9b2d89a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -287,11 +287,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1745930157, "lastModified": 1746328495,
"narHash": "sha256-y3h3NLnzRSiUkYpnfvnS669zWZLoqqI6NprtLQ+5dck=", "narHash": "sha256-uKCfuDs7ZM3QpCE/jnfubTg459CnKnJG/LwqEVEdEiw=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "46e634be05ce9dc6d4db8e664515ba10b78151ae", "rev": "979daf34c8cacebcd917d540070b52a3c2b9b16e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -311,11 +311,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1745459908, "lastModified": 1746056780,
"narHash": "sha256-bWqgohVf/py9EW3bLS/dYbenD2p9N2/Qsw1+CJk1S04=", "narHash": "sha256-/emueQGaoT4vu0QjU9LDOG5roxRSfdY0K2KkxuzazcM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "dbc4ba3233b2bf951521177bf0ee0a7679959035", "rev": "d476cd0972dd6242d76374fcc277e6735715c167",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -359,11 +359,11 @@
"tinted-zed": "tinted-zed" "tinted-zed": "tinted-zed"
}, },
"locked": { "locked": {
"lastModified": 1745962538, "lastModified": 1746469524,
"narHash": "sha256-UmQxI4ocPZUVHuxtaQN3zNNBU8KLK9x2gXl2kWUhMKY=", "narHash": "sha256-uwFQebWXtMsRBmzKOYa6jjs7PDnfSuwyrqPK6yzqamU=",
"owner": "danth", "owner": "danth",
"repo": "stylix", "repo": "stylix",
"rev": "764fd32955e79f2742a7975f0150175f93add2fb", "rev": "45aa0e849282dba5979e7bb3d0f6676bbd9dc130",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -15,34 +15,10 @@
}; };
# Bootloader. # Bootloader.
loader = { loader = {
systemd-boot.enable = false; systemd-boot.enable = true;
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
grub = {
enable = true;
efiSupport = true;
device = "nodev";
theme = pkgs.stdenv.mkDerivation {
name = "garand-grub-theme";
src = ../../../config/garand-grub-theme;
buildPhase = ''
mkdir -p $out/grub/themes/garand-grub-theme
cp -r * $out/grub/themes/garand-grub-theme/
'';
installPhase = "true";
};
extraEntries = ''
menuentry "Mój system" {
# konfiguracja wpisu menu
}
'';
gfxmodeEfi = "1920x1080";
};
}; };
initrd.systemd.dbus.enable = true;
# Make /tmp a tmpfs # Make /tmp a tmpfs
tmp = { tmp = {
useTmpfs = false; useTmpfs = false;

View File

@@ -25,6 +25,11 @@
nixpkgs.config = { nixpkgs.config = {
allowUnfree = true; allowUnfree = true;
pulseaudio = true; pulseaudio = true;
# packageOverrides = pkgs: {
# ulauncher = pkgs.ulauncher.override {
# autoStart = true;
# };
# };
}; };
# Extra Portal Configuration # Extra Portal Configuration
@@ -34,12 +39,19 @@
wlr.enable = true; wlr.enable = true;
extraPortals = [ extraPortals = [
pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal pkgs.xdg-desktop-portal-hyprland
]; ];
config = {
common = {
default = [
"gtk"
"hyprland"
];
};
};
configPackages = [ configPackages = [
pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-hyprland pkgs.xdg-desktop-portal-hyprland
pkgs.xdg-desktop-portal
]; ];
}; };

View File

@@ -13,5 +13,7 @@
# lazygit # lazygit
docker-slim docker-slim
dex dex
ulauncher
wmctrl
]; ];
} }

View File

@@ -69,6 +69,11 @@
}; };
}; };
}; };
hyprland = {
enable = true;
withUWSM = true;
portalPackage = pkgs.xdg-desktop-portal-hyprland;
};
dconf.enable = true; dconf.enable = true;
seahorse.enable = true; seahorse.enable = true;
fuse.userAllowOther = true; fuse.userAllowOther = true;

View File

@@ -1,10 +1,31 @@
{...}: { {pkgs, ...}: {
# Create XDG Dirs # Create XDG Dirs
xdg = { xdg = {
enable = true;
userDirs = { userDirs = {
enable = true; enable = true;
createDirectories = true; createDirectories = true;
}; };
portal = {
enable = true;
xdgOpenUsePortal = true;
extraPortals = [
pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-hyprland
];
config = {
common = {
default = [
"gtk"
"hyprland"
];
};
};
configPackages = [
pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-hyprland
];
};
}; };
dconf.settings = { dconf.settings = {

View File

@@ -49,6 +49,7 @@ in
" + Prawy przycisk myszy" "Zmień rozmiar okna" "resizewindow" \ " + Prawy przycisk myszy" "Zmień rozmiar okna" "resizewindow" \
" + ENTER" "Otwórz terminal" "${terminal}" \ " + ENTER" "Otwórz terminal" "${terminal}" \
" + SHIFT + ENTER" "Uruchom launcher aplikacji" "rofi-launcher" \ " + SHIFT + ENTER" "Uruchom launcher aplikacji" "rofi-launcher" \
" + ALT + SPACE" "Uruchom Ulauncher" "ulauncher-toggle" \
" + ALT + W" "Zmień tapetę" "wallsetter" \ " + ALT + W" "Zmień tapetę" "wallsetter" \
" + SHIFT + S" "Zrób zrzut ekranu" "screenshootin" \ " + SHIFT + S" "Zrób zrzut ekranu" "screenshootin" \
" + E" "Uruchom selektor emotikon" "emopicker9000" \ " + E" "Uruchom selektor emotikon" "emopicker9000" \