This commit is contained in:
2026-07-31 15:29:21 +09:00
parent 2f9c8f3d33
commit f3098f2674
8 changed files with 147 additions and 61 deletions
+33 -2
View File
@@ -1,8 +1,39 @@
{ pkgs, lib, ... }: {
config,
pkgs,
lib,
...
}:
lib.mkIf pkgs.stdenv.hostPlatform.isLinux { lib.mkIf pkgs.stdenv.hostPlatform.isLinux {
home.packages = [ home.packages = [
pkgs.nautilus pkgs.nautilus
pkgs.gvfs
pkgs.sushi pkgs.sushi
]; ];
dconf.settings = {
"org/gnome/nautilus/preferences" = {
always-use-location-entry = true;
default-folder-viewer = "list-view";
};
"org/gnome/nautilus/list-view".use-tree-view = true;
# Nautilus 50 migrates this setting from GTK 3 to GTK 4.
"org/gtk/settings/file-chooser".show-hidden = true;
"org/gtk/gtk4/settings/file-chooser".show-hidden = true;
};
gtk.gtk3.bookmarks = [
"file://${config.home.homeDirectory}/Desktop Desktop"
"file://${config.home.homeDirectory}/Pictures Pictures"
"file://${config.home.homeDirectory}/projects projects"
];
home.activation.createProjectsDirectory = {
after = [ "writeBoundary" ];
before = [ ];
data = ''
$DRY_RUN_CMD mkdir -p "$HOME/projects"
'';
};
} }
+58 -41
View File
@@ -12,25 +12,62 @@ let
hash = "sha256-emQ/FqKqMq3YI5bLx8gBZg/ZE72OG9Ilh71ggq78WdQ="; hash = "sha256-emQ/FqKqMq3YI5bLx8gBZg/ZE72OG9Ilh71ggq78WdQ=";
}; };
systemWidgets = [
"network"
"bluetooth"
"network-connection"
"spacer"
"cpu"
"cpu-graph"
"ram"
];
centerWidgets = [
"app-launcher"
"workspaces"
];
endWidgets = [
"notifications"
"tray"
"spacer"
"battery"
"input-volume"
"output-volume"
"privacy"
"brightness"
"clock"
"control-center"
];
labwcSettings = lib.recursiveUpdate config.programs.noctalia.settings { labwcSettings = lib.recursiveUpdate config.programs.noctalia.settings {
dock = { bar.main = {
position = "bottom"; position = "bottom";
icon_size = 32; thickness = 51;
main_axis_padding = 10; margin_ends = 0;
cross_axis_padding = 4; start = [ "taskbar" ];
item_spacing = 4; center = centerWidgets;
margin_edge = 0; end = systemWidgets ++ [ "spacer" ] ++ endWidgets;
radius = 8; };
background_opacity = 0.9;
show_running = true; dock = {
auto_hide = false; enabled = false;
smart_auto_hide = false; };
reserve_space = true;
active_scale = 1.0; widget = {
inactive_scale = 1.0; network.show_label = false;
magnification = false; taskbar = {
show_instance_count = true; type = "taskbar";
active_monitor_only = false; pinned = [
"org.gnome.Nautilus"
"org.gnome.TextEditor"
"com.mitchellh.ghostty"
"google-chrome"
"code"
"dev.zed.Zed"
"codex"
];
group_by_workspace = false;
show_window_title = false;
};
}; };
}; };
@@ -100,33 +137,13 @@ in
bar.main = { bar.main = {
margin_ends = 15; margin_ends = 15;
position = "top"; position = "top";
start = [ start = systemWidgets;
"network" center = centerWidgets;
"bluetooth"
"network-connection"
"spacer"
"cpu"
"cpu-graph"
"ram"
];
center = [
"app-launcher"
"workspaces"
];
end = [ end = [
"media" "media"
"spacer" "spacer"
"notifications" ]
"tray" ++ endWidgets;
"spacer"
"battery"
"input-volume"
"output-volume"
"privacy"
"brightness"
"clock"
"control-center"
];
}; };
widget = { widget = {
+13
View File
@@ -0,0 +1,13 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
clinfo
drm_info
libva-utils
mesa-demos
pciutils
vdpauinfo
vulkan-tools
wayland-utils
];
}
+7
View File
@@ -0,0 +1,7 @@
{ pkgs, ... }:
{
home.packages = [
pkgs.nvtopPackages.nvidia
pkgs.nvitop
];
}
+10 -2
View File
@@ -1,6 +1,8 @@
{ pkgs, ... }: { lib, pkgs, ... }:
{ {
home.packages = with pkgs; [ home.packages =
with pkgs;
[
bat bat
duf duf
dust dust
@@ -10,12 +12,18 @@
fzf fzf
htop htop
jq jq
lsof
nurl nurl
ripgrep ripgrep
tio tio
unrar unrar
unzip unzip
wget wget
]
++ lib.optionals stdenv.isLinux [
lm_sensors
psmisc
strace
]; ];
home.activation.generateSshKey = { home.activation.generateSshKey = {
@@ -8,6 +8,7 @@
"applications.gtk" "applications.gtk"
"applications.nautilus" "applications.nautilus"
"hardwares.graphics" "hardwares.graphics"
"services.gvfs"
"services.polkit-gnome" "services.polkit-gnome"
"systems.audio" "systems.audio"
"systems.fonts" "systems.fonts"
+3
View File
@@ -0,0 +1,3 @@
{
description = "GVfs virtual filesystem service and command-line tools";
}
+6
View File
@@ -0,0 +1,6 @@
{ pkgs, ... }:
{
services.gvfs.enable = true;
environment.systemPackages = [ pkgs.glib ];
}