Merge remote-tracking branch 'origin/nixos' into nixos

nixos
Moritz Böhme 2023-01-07 17:07:02 +01:00
commit 2a9648a3ec
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
2 changed files with 45 additions and 28 deletions

View File

@ -7,6 +7,13 @@
with lib; with lib;
let let
cfg = config.my.programs.gnome; cfg = config.my.programs.gnome;
extensions = with pkgs.gnomeExtensions; [
gsconnect
vitals
gtile
blur-my-shell
];
in in
{ {
options.my.programs.gnome.enable = mkEnableOption "gnome"; options.my.programs.gnome.enable = mkEnableOption "gnome";
@ -19,7 +26,6 @@ in
}; };
pulseaudio.enable = false; pulseaudio.enable = false;
}; };
programs.xwayland.enable = true;
services.xserver = { services.xserver = {
layout = "de"; layout = "de";
displayManager = { displayManager = {
@ -32,6 +38,14 @@ in
enable = true; enable = true;
desktopManager.gnome.enable = true; desktopManager.gnome.enable = true;
}; };
environment.systemPackages = with pkgs.gnomeExtensions; [ tray-icons-reloaded gsconnect ]; environment.systemPackages = extensions;
home-manager.users.moritz.dconf.settings = {
"org/gnome/shell" = {
disable-user-extensions = false;
enabled-extensions = map (p: p.extensionUuid or p.uuid) extensions;
};
"org/gnome/desktop/interface".enable-hot-corners = false;
"org/gnome/desktop/wm/preferences".focus-mode = "sloppy";
};
}; };
} }

View File

@ -75,7 +75,8 @@ in
# lock screen after timeout # lock screen after timeout
home-manager.users.moritz.services.swayidle = { home-manager.users.moritz = {
services.swayidle = {
enable = true; enable = true;
events = [ events = [
{ {
@ -99,8 +100,10 @@ in
} }
]; ];
}; };
# start swayidle as part of hyprland, not sway # start swayidle as part of hyprland, not sway
systemd.user.services.swayidle.Install.WantedBy = lib.mkForce [ "hyprland-session.target" ]; systemd.user.services.swayidle.Install.WantedBy = lib.mkForce [ "hyprland-session.target" ];
};
# adds pam module for swaylock # adds pam module for swaylock
security.pam.services.swaylock = { }; security.pam.services.swaylock = { };
@ -116,7 +119,7 @@ in
}; };
# set hyprpaper conf (for setting initial background) # set hyprpaper conf (for setting initial background)
xdg.configFile."hypr/hyprpaper.conf" = { home-manager.users.moritz.xdg.configFile."hypr/hyprpaper.conf" = {
text = text =
let let
setWallpaper = wallpaper: '' setWallpaper = wallpaper: ''