mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
gnome dock pins
This commit is contained in:
parent
ebb2a87ca7
commit
e30bc681cd
4 changed files with 46 additions and 3 deletions
|
|
@ -8,6 +8,8 @@
|
|||
}: {
|
||||
imports = [
|
||||
../../modules/nixos
|
||||
# ../../modules/nixos/users/js0ny.nix
|
||||
# ../../modules/nixos/guest.nix
|
||||
../../modules/nixos/laptop.nix
|
||||
../../modules/nixos/disable-nvidia.nix
|
||||
../../modules/nixos/additional-packages.nix
|
||||
|
|
@ -15,8 +17,8 @@
|
|||
../../modules/nixos/docker.nix
|
||||
../../modules/nixos/firefox.nix
|
||||
../../modules/nixos/desktop/gnome.nix
|
||||
../../modules/nixos/desktop/kde.nix
|
||||
../../modules/nixos/display-manager/ly.nix
|
||||
# ../../modules/nixos/desktop/kde.nix
|
||||
../../modules/nixos/display-manager/gdm.nix
|
||||
./hardware-configuration.nix
|
||||
./keyd.nix
|
||||
./packages.nix
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
{...}: {
|
||||
{pkgs, ...}: {
|
||||
services.displayManager.sddm = {
|
||||
enable = true;
|
||||
wayland.enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
sddm-astronaut
|
||||
];
|
||||
# theme = "sddm-astronaut-theme";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
25
nixcfgs/modules/nixos/guest.nix
Normal file
25
nixcfgs/modules/nixos/guest.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{pkgs, ...}: {
|
||||
users.users.guest = {
|
||||
isNormalUser = true;
|
||||
description = "Guest user";
|
||||
home = "/home/guest";
|
||||
extraGroups = [""]; # 可选,是否允许 sudo
|
||||
shell = pkgs.bash;
|
||||
# hashedPassword = ""; # 空密码,意味着需要手动设置或禁用登录
|
||||
# 或者直接禁止密码登录:
|
||||
hashedPassword = null;
|
||||
};
|
||||
|
||||
systemd.services."guest-reset-home" = {
|
||||
description = "Reset guest home directory on boot";
|
||||
wantedBy = ["multi-user.target"];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = ''
|
||||
rm -rf /home/guest/*
|
||||
cp -r /etc/skel/. /home/guest/
|
||||
chown -R guest:guest /home/guest
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -3,6 +3,7 @@
|
|||
gnome-tweaks
|
||||
sushi
|
||||
orchis-theme
|
||||
adwaita-qt
|
||||
gnomeExtensions.dash-to-dock
|
||||
gnomeExtensions.caffeine
|
||||
gnomeExtensions.logo-menu
|
||||
|
|
@ -44,5 +45,16 @@
|
|||
symbolic-icon = true;
|
||||
use-custom-icon = false;
|
||||
};
|
||||
"org/gnome/shell" = {
|
||||
favorite-apps = [
|
||||
"org.kde.dolphin.desktop"
|
||||
"com.mitchellh.ghostty.desktop"
|
||||
"chromium-browser.desktop"
|
||||
"code.desktop"
|
||||
];
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
qt.style.name = "adwaita";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue