System Gen228 @ 2026-03-29-17:27:44 by jonas@comfy-station
This commit is contained in:
@@ -28,6 +28,8 @@
|
|||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
# hive modules
|
# hive modules
|
||||||
|
hive.hyprland.enable = true;
|
||||||
|
hive.sddm.autologin = "jonas";
|
||||||
hive.kwallet.forUsers = ["jonas"];
|
hive.kwallet.forUsers = ["jonas"];
|
||||||
hive.virt-manager.enable = true;
|
hive.virt-manager.enable = true;
|
||||||
hive.virt-manager.forUsers = ["jonas"];
|
hive.virt-manager.forUsers = ["jonas"];
|
||||||
|
|||||||
@@ -1,35 +1,21 @@
|
|||||||
{
|
{self, ...}: {
|
||||||
flake.nixosModules.hyprland = {
|
flake.nixosModules.hyprland = {
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.hive.displayManager;
|
cfg = config.hive.hyprland;
|
||||||
in {
|
in {
|
||||||
options.hive.displayManager = with lib; {
|
options.hive.hyprland = with lib; {
|
||||||
autologin = mkOption {
|
enable = mkEnableOption "Enable Hyprland Wayland compositor";
|
||||||
type = types.nullOr types.str;
|
|
||||||
default = null;
|
|
||||||
description = "The autologin username or null for no autologin.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
config = {
|
|
||||||
services.xserver.enable = true;
|
|
||||||
services.xserver = {
|
|
||||||
xkb.layout = "de";
|
|
||||||
xkb.variant = "";
|
|
||||||
xkb.options = "caps:ctrl_modifier";
|
|
||||||
};
|
|
||||||
services.displayManager.autoLogin.enable = cfg.autologin != null;
|
|
||||||
services.displayManager.autoLogin.user = cfg.autologin;
|
|
||||||
|
|
||||||
services.libinput.enable = true;
|
|
||||||
services.dbus.enable = true;
|
|
||||||
services.displayManager.sddm = {
|
|
||||||
enable = true;
|
|
||||||
wayland.enable = true;
|
|
||||||
};
|
};
|
||||||
|
imports = [
|
||||||
|
self.nixosModules.sddm
|
||||||
|
];
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
hive.sddm.enable = true;
|
||||||
|
hive.sddm.wayland = true;
|
||||||
|
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
37
modules/desktop/sddm.nix
Normal file
37
modules/desktop/sddm.nix
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
flake.nixosModules.sddm = {
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.hive.sddm;
|
||||||
|
in {
|
||||||
|
options.hive.sddm = with lib; {
|
||||||
|
enable = mkEnableOption "Enable SDDM display manager";
|
||||||
|
autologin = mkOption {
|
||||||
|
type = types.nullOr types.str;
|
||||||
|
default = null;
|
||||||
|
description = "The autologin username or null for no autologin.";
|
||||||
|
};
|
||||||
|
wayland = mkEnableOption "Enable Wayland session in SDDM";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
services.xserver.enable = true;
|
||||||
|
services.xserver = {
|
||||||
|
xkb.layout = "de";
|
||||||
|
xkb.variant = "";
|
||||||
|
xkb.options = "caps:ctrl_modifier";
|
||||||
|
};
|
||||||
|
services.displayManager.autoLogin.enable = cfg.autologin != null;
|
||||||
|
services.displayManager.autoLogin.user = cfg.autologin;
|
||||||
|
|
||||||
|
services.libinput.enable = true;
|
||||||
|
services.dbus.enable = true;
|
||||||
|
services.displayManager.sddm = {
|
||||||
|
enable = true;
|
||||||
|
wayland.enable = cfg.wayland;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -56,6 +56,7 @@
|
|||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
self.nixosModules.bulk-transcode-overlay
|
self.nixosModules.bulk-transcode-overlay
|
||||||
|
self.nixosModules.unstable-overlay
|
||||||
];
|
];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|||||||
Reference in New Issue
Block a user