gnome consolidation
This commit is contained in:
@@ -0,0 +1,52 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
flake.modules.nixos.gnmoe = {
|
||||||
|
# Workaround for GNOME autologin: https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229
|
||||||
|
systemd.services."getty@tty1".enable = false;
|
||||||
|
systemd.services."autovt@tty1".enable = false;
|
||||||
|
|
||||||
|
# For gnome systray icons
|
||||||
|
services.udev.packages = with pkgs; [ gnome-settings-daemon ];
|
||||||
|
|
||||||
|
dconf.settings = {
|
||||||
|
"org/gnome/desktop/interface" = {
|
||||||
|
color-scheme = "prefer-dark";
|
||||||
|
};
|
||||||
|
"org/gnome/shell" = {
|
||||||
|
disable-user-extensions = false;
|
||||||
|
|
||||||
|
# `gnome-extensions list` for a list
|
||||||
|
enabled-extensions = with pkgs.gnomeExtensions; [
|
||||||
|
appindicator.extensionUuid
|
||||||
|
gtile.extensionUuid
|
||||||
|
space-bar.extensionUuid
|
||||||
|
switcher.extensionUuid
|
||||||
|
tactile.extensionUuid
|
||||||
|
vitals.extensionUuid
|
||||||
|
dash-to-panel.extensionUuid
|
||||||
|
]
|
||||||
|
};
|
||||||
|
"org/gnome/desktop/wm/preferences" = {
|
||||||
|
button-layout = ":minimize,close";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
gtk = {
|
||||||
|
enable = true;
|
||||||
|
theme = {
|
||||||
|
name = "Orchis-Dark";
|
||||||
|
package = pkgs.orchis-theme;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
gnome-tweaks
|
||||||
|
gnomeExtensions.appindicator # For gnome systray icons
|
||||||
|
gnomeExtensions.dash-to-panel
|
||||||
|
gnomeExtensions.gtile
|
||||||
|
gnomeExtensions.space-bar
|
||||||
|
gnomeExtensions.switcher
|
||||||
|
gnomeExtensions.tactile
|
||||||
|
gnomeExtensions.vitals
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
# https://github.com/glabrie/dotfiles/blob/main/modules/system/settings/greetd.nix
|
||||||
|
{ inputs, ... }: {
|
||||||
|
flake.module.nixos.greetd = { pkgs, ... }: {
|
||||||
|
services.greetd = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
default_session = {
|
||||||
|
command = "${lib.getExe pkgs.tuigreet} --time --remember --cmd niri-session";
|
||||||
|
user = "greeter";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services.greetd.serviceConfig = {
|
||||||
|
Type = "idle";
|
||||||
|
StandardInput = "tty";
|
||||||
|
StandardOutput = "tty";
|
||||||
|
StandardError = "journal"; # Without this errors will spam on screen
|
||||||
|
# Without these bootlogs will spam on screen
|
||||||
|
TTYReset = true;
|
||||||
|
TTYVHangup = true;
|
||||||
|
TTYVTDisallocate = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Let's allow our keyring to work from the start
|
||||||
|
security.pam.services.greetd.enableGnomeKeyring = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -33,11 +33,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
# Workaround for GNOME autologin: https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229
|
|
||||||
systemd.services."getty@tty1".enable = false;
|
|
||||||
systemd.services."autovt@tty1".enable = false;
|
|
||||||
|
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
|
|
||||||
@@ -51,9 +46,6 @@
|
|||||||
samba
|
samba
|
||||||
];
|
];
|
||||||
|
|
||||||
# For gnome systray icons
|
|
||||||
services.udev.packages = with pkgs; [ gnome-settings-daemon ];
|
|
||||||
|
|
||||||
security.pam.services.swaylock = {};
|
security.pam.services.swaylock = {};
|
||||||
security.pam.services.swaylock.fprintAuth = true;
|
security.pam.services.swaylock.fprintAuth = true;
|
||||||
|
|
||||||
|
|||||||
@@ -14,9 +14,10 @@
|
|||||||
perSystem = { pkgs, lib, self', ... }: {
|
perSystem = { pkgs, lib, self', ... }: {
|
||||||
packages.myNiri = inputs.wrapper-modules.wrappers.niri.wrap {
|
packages.myNiri = inputs.wrapper-modules.wrappers.niri.wrap {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
env.RUST_BACKTRACE = "full";
|
||||||
settings = {
|
settings = {
|
||||||
spawn-at-startup = [
|
spawn-at-startup = [
|
||||||
{ command = [ (lib.getExe self'.packages.myNoctalia) ]; }
|
"${lib.getExe self'.packages.myNoctalia}"
|
||||||
];
|
];
|
||||||
xwayland-satellite.path = lib.getExe pkgs.xwayland-satellite;
|
xwayland-satellite.path = lib.getExe pkgs.xwayland-satellite;
|
||||||
input.keyboard.xkb.layout = "us,ua";
|
input.keyboard.xkb.layout = "us,ua";
|
||||||
|
|||||||
Reference in New Issue
Block a user