moved sddm and ly to modules

This commit is contained in:
Aleksandr Lebedev 2025-01-13 00:05:18 +01:00
parent dd5ada60c3
commit b099db5670
3 changed files with 50 additions and 14 deletions

View file

@ -21,6 +21,8 @@
./modules/firefox ./modules/firefox
./modules/flatpak ./modules/flatpak
./modules/steam ./modules/steam
./modules/ly
./modules/sddm
./modules/services/autoupgrade ./modules/services/autoupgrade
./modules/sops ./modules/sops
./hosts/${hwconfig.hostname} ./hosts/${hwconfig.hostname}
@ -133,13 +135,6 @@
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
(catppuccin-sddm.override {
flavor = "mocha";
# font = "";
fontSize = "16";
#background;
loginBackground = false;
})
kdenlive kdenlive
system-config-printer system-config-printer
libreoffice libreoffice
@ -237,6 +232,8 @@
MANPAGER = "nvim +Man!"; MANPAGER = "nvim +Man!";
EDITOR = "nvim"; EDITOR = "nvim";
}; };
kk.loginManagers.sddm.enable = true;
hardware = { hardware = {
graphics = { graphics = {
enable = true; enable = true;
@ -368,13 +365,6 @@
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment? system.stateVersion = "24.05"; # Did you read the comment?
services.xserver.enable = true;
services.displayManager.sddm = {
enable = true;
theme = "catppuccin-mocha";
package = pkgs.kdePackages.sddm;
wayland.enable = false;
};
nix = { nix = {
settings = { settings = {
experimental-features = ["nix-command" "flakes"]; experimental-features = ["nix-command" "flakes"];

View file

@ -0,0 +1,16 @@
{
config,
pkgs,
lib,
...
}: let
cfg = config.kk.loginManagers.ly;
in {
options.kk.loginManagers.ly = {
enable = lib.mkEnableOption "Enable ly as login manager";
};
config = lib.mkIf cfg.enable {
services.xserver.enable = true;
services.displayManager.ly.enable = true;
};
}

View file

@ -0,0 +1,30 @@
{
config,
lib,
pkgs,
...
}: let
cfg = config.kk.loginManagers.sddm;
in {
options.kk.loginManagers.sddm = {
enable = lib.mkEnableOption "Enable sddm as login manager";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
(catppuccin-sddm.override {
flavor = "mocha";
# font = "";
fontSize = "16";
#background;
loginBackground = false;
})
];
services.xserver.enable = true;
services.displayManager.sddm = {
enable = true;
theme = "catppuccin-mocha";
package = pkgs.kdePackages.sddm;
wayland.enable = false;
};
};
}