add: obs and firefox, fix: desktop and greeter QoL

This commit is contained in:
Keisuke Hirata 2025-02-21 19:44:52 +09:00
parent a4ff711bc3
commit fd6281b9a0
12 changed files with 87 additions and 14 deletions

5
home-manager/firefox.nix Normal file
View File

@ -0,0 +1,5 @@
{
programs.firefox = {
enable = true;
};
}

View File

@ -7,14 +7,15 @@
# "/usr/lib/polkit-kde-authentication-agent-1"
# "dunst"
"swww-daemon"
"swww img ./backgrounds/arknights-02.jpg"
# "hypridle"
# "copyq --start-server"
# "wl-paste --type text --watch cliphist store"
# "wl-paste --type image --watch cliphist store"
"eww daemon"
"eww open bar"
"eww open roundedEdge"
];
exec = [
"swww img /usr/share/wallpaper/arknights-02.jpg"
"dconf write /org/gnome/desktop/interface/gtk-theme 'Adwaita Dark'"
"dconf write /org/gnome/desktop/interface/icon-theme 'Adwaita Dark'"
"dconf write /org/gnome/desktop/interface/document-font-name 'Noto Sans Medium 11'"
@ -123,7 +124,7 @@
"SUPER, E, exec, $terminal"
"SUPER, Q, killactive,"
"SUPER, L, exec, $lock"
"SUPER_SHIFT, M, exec, uwsm stop"
"SUPER_SHIFT, M, exec, loginctl terminate-user $USER"
# prsc
", Print, exec, hyprshot -m window -m active --clipboard-only"
@ -184,8 +185,8 @@
];
};
home.sessionVariables = {
HYPRCURSOR_THEME = "rose-pine-cursor-hyprcursor";
HYPRCURSOR_SIZE = "24";
HYPRCURSOR_THEME = "";
HYPRCURSOR_SIZE = "12";
XCURSOR_SIZE = "24";
GTK_BACKEND = "wayland";
QT_QPA_PLATFORM = "wayland;xcb";

View File

@ -0,0 +1,11 @@
{ config, pkgs, ... }:
{
programs.obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [
wlrobs
obs-backgroundremoval
obs-pipewire-audio-capture
];
};
}

10
hosts/arcadia/display.nix Normal file
View File

@ -0,0 +1,10 @@
{
wayland.windowManager.hyprland = {
settings = {
monitor = [
"DP-2, 2560x1440@144, 0x0, 1"
"DP-1, 1920x1080@120, -1920x180, 1"
];
};
};
}

View File

@ -42,4 +42,8 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.opengl = {
enable = true;
};
}

View File

@ -2,15 +2,18 @@
{
imports = [
../../home-manager/hyprland.nix
./display.nix
../../home-manager/tofi.nix
../../home-manager/direnv.nix
../../home-manager/firefox.nix
../../home-manager/obs-studio.nix
];
home.packages = with pkgs; [
vscode
vivaldi
discord
helvum
obs-studio
superfile
plemoljp
plemoljp-nf
@ -40,4 +43,16 @@
};
};
};
xdg.mimeApps = {
enable = true;
defaultApplications = {
"text/html" = "vivaldi-stable.desktop";
"x-scheme-handler/http" = "vivaldi-stable.desktop";
"x-scheme-handler/https" = "vivaldi-stable.desktop";
"x-scheme-handler/about" = "vivaldi-stable.desktop";
"x-scheme-handler/unknown" = "vivaldi-stable.desktop";
};
};
}

View File

@ -7,11 +7,9 @@
withUWSM = true;
};
hyprlock.enable = true;
regreet.enable = true;
};
services.hypridle.enable = true;
environment.systemPackages = with pkgs; [
swww
eww

View File

@ -12,6 +12,7 @@
};
environment.systemPackages = with pkgs; [
fishPlugins.z
bc
jq
socat
@ -21,4 +22,4 @@
lsof
pciutils
];
}
}

View File

@ -8,6 +8,5 @@
bat
wezterm
kitty
nixfmt-rfc-style
];}
];}

View File

@ -4,4 +4,7 @@
v4l-utils
ffmpeg
];
boot.extraModprobeConfig = ''
options v4l2loopback devices=2 video_nr=0,1 card_label="Scrcpy Source","OBS VirtualCamera" exclusive_caps=1
'';
}

View File

@ -2,10 +2,12 @@
imports = [
./nix.nix
./boot.nix
./uwsm.nix
./locale.nix
./network.nix
./fonts.nix
./sound.nix
./uwsm.nix
./regreet.nix
];
}
}

24
system/core/regreet.nix Normal file
View File

@ -0,0 +1,24 @@
{
programs.regreet = {
enable = true;
settings = {
appearance = {
greeting_msg = "Welcome back!";
};
widget = {
clock = {
format = "%H:%M";
resolution = "100ms";
timezone = "Asia/Tokyo";
label_width = 150;
};
};
GTK = {
application_prefer_dark_theme = true;
};
background = {
path = "/usr/share/wallpaper/arknights-image-01.png";
};
};
};
}