+sddm.nix +doas.nix set sddm as default
On branch ddubs-dev Your branch is up to date with 'origin/ddubs-dev'. Changes to be committed: modified: CHANGELOG.md modified: hosts/zaneyos-oem/variables.nix modified: modules/core/default.nix new file: modules/core/doas.nix new file: modules/core/sddm.nix new file: wallpapers/Anime-Purple-eyes.png
This commit is contained in:
parent
405e2bd907
commit
ccfb193141
6 changed files with 95 additions and 2 deletions
|
|
@ -4,6 +4,11 @@
|
|||
|
||||
** Updated: June 15th, 2025 **
|
||||
|
||||
- Added `doas.nix` as complement to `sudo`
|
||||
- Added `sddm.nix` themed with stylix
|
||||
- Disabled `greeter` but didnt not remove it
|
||||
- Set default stylix image to `mountainscapedark.png`
|
||||
- Provides warmer colors and super nice SDDM background
|
||||
- Added more fonts to `modules/core/fonts.nix`
|
||||
- Added `alacritty` terminal with `Maple MF` font.
|
||||
- Redid `flatpak.nix` now you can add programs to be installed and get updated
|
||||
|
|
|
|||
|
|
@ -26,7 +26,9 @@
|
|||
printEnable = false;
|
||||
|
||||
# Set Stylix Image
|
||||
stylixImage = ../../wallpapers/AnimeGirlNightSky.jpg;
|
||||
stylixImage = ../../wallpapers/mountainscapedark.jpg;
|
||||
#stylixImage = ../../wallpapers/AnimeGirlNightSky.jpg;
|
||||
#stylixImage = ../../wallpapers/Anime-Purple-eyes.png;
|
||||
|
||||
# Set Waybar
|
||||
# Available options:
|
||||
|
|
|
|||
|
|
@ -1,15 +1,17 @@
|
|||
{inputs, ...}: {
|
||||
imports = [
|
||||
./boot.nix
|
||||
./doas.nix
|
||||
./flatpak.nix
|
||||
./fonts.nix
|
||||
./greetd.nix
|
||||
#./greetd.nix
|
||||
./hardware.nix
|
||||
./network.nix
|
||||
./nfs.nix
|
||||
./nh.nix
|
||||
./packages.nix
|
||||
./printing.nix
|
||||
./sddm.nix
|
||||
./security.nix
|
||||
./services.nix
|
||||
./starfish.nix
|
||||
|
|
|
|||
15
modules/core/doas.nix
Normal file
15
modules/core/doas.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
security.doas.enable = true;
|
||||
|
||||
security.doas.extraRules = [
|
||||
{
|
||||
users = ["adminUser"]; # Replace with your username
|
||||
keepEnv = true; # Retains environment variables
|
||||
noPass = true;
|
||||
}
|
||||
{
|
||||
groups = ["wheel"]; # Allows all users in 'wheel' group
|
||||
noPass = true; # Enables passwordless execution
|
||||
}
|
||||
];
|
||||
}
|
||||
69
modules/core/sddm.nix
Normal file
69
modules/core/sddm.nix
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
# SDDM is a display manager for X11 and Wayland
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
foreground = config.stylix.base16Scheme.base00;
|
||||
textColor = config.stylix.base16Scheme.base05;
|
||||
sddm-astronaut = pkgs.sddm-astronaut.override {
|
||||
embeddedTheme = "pixel_sakura";
|
||||
themeConfig =
|
||||
if lib.hasSuffix "sakura_static.png" config.stylix.image
|
||||
then {}
|
||||
else if lib.hasSuffix "studio.png" config.stylix.image
|
||||
then {
|
||||
Background = pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/anotherhadi/nixy-wallpapers/refs/heads/main/wallpapers/studio.gif";
|
||||
sha256 = "sha256-qySDskjmFYt+ncslpbz0BfXiWm4hmFf5GPWF2NlTVB8=";
|
||||
};
|
||||
HeaderTextColor = "#${textColor}";
|
||||
DateTextColor = "#${textColor}";
|
||||
TimeTextColor = "#${textColor}";
|
||||
LoginFieldTextColor = "#${textColor}";
|
||||
PasswordFieldTextColor = "#${textColor}";
|
||||
UserIconColor = "#${textColor}";
|
||||
PasswordIconColor = "#${textColor}";
|
||||
WarningColor = "#${textColor}";
|
||||
LoginButtonBackgroundColor = "#${foreground}";
|
||||
SystemButtonsIconsColor = "#${foreground}";
|
||||
SessionButtonTextColor = "#${textColor}";
|
||||
VirtualKeyboardButtonTextColor = "#${textColor}";
|
||||
DropdownBackgroundColor = "#${foreground}";
|
||||
HighlightBackgroundColor = "#${textColor}";
|
||||
}
|
||||
else {
|
||||
Background = "${toString config.stylix.image}";
|
||||
HeaderTextColor = "#${textColor}";
|
||||
DateTextColor = "#${textColor}";
|
||||
TimeTextColor = "#${textColor}";
|
||||
LoginFieldTextColor = "#${foreground}";
|
||||
PasswordFieldTextColor = "#${foreground}";
|
||||
UserIconColor = "#${foreground}";
|
||||
PasswordIconColor = "#${foreground}";
|
||||
WarningColor = "#${foreground}";
|
||||
LoginButtonBackgroundColor = "#${foreground}";
|
||||
SystemButtonsIconsColor = "#${foreground}";
|
||||
SessionButtonTextColor = "#${textColor}";
|
||||
VirtualKeyboardButtonTextColor = "#${textColor}";
|
||||
DropdownBackgroundColor = "#${foreground}";
|
||||
HighlightBackgroundColor = "#${textColor}";
|
||||
};
|
||||
};
|
||||
in {
|
||||
services.displayManager = {
|
||||
sddm = {
|
||||
package = pkgs.kdePackages.sddm;
|
||||
extraPackages = [sddm-astronaut];
|
||||
enable = true;
|
||||
wayland.enable = true;
|
||||
theme = "sddm-astronaut-theme";
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = [sddm-astronaut];
|
||||
|
||||
# To prevent getting stuck at shutdown
|
||||
systemd.extraConfig = "DefaultTimeoutStopSec=10s";
|
||||
}
|
||||
BIN
wallpapers/Anime-Purple-eyes.png
Normal file
BIN
wallpapers/Anime-Purple-eyes.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 MiB |
Loading…
Add table
Add a link
Reference in a new issue