Extract login manager configurations to common/
This commit is contained in:
parent
9ba2d0df94
commit
2414dfc9b9
8
common/login-manager/gdm.nix
Normal file
8
common/login-manager/gdm.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
login-manager = "gdm";
|
||||
|
||||
services.xserver.displayManager.gdm.enable = true;
|
||||
|
||||
}
|
13
common/login-manager/sddm.nix
Normal file
13
common/login-manager/sddm.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
login-manager = "sddm";
|
||||
|
||||
services.xserver.displayManager.sddm = {
|
||||
enable = true;
|
||||
|
||||
autoNumlock = true;
|
||||
enableHidpi = true;
|
||||
wayland.enable = true;
|
||||
};
|
||||
}
|
19
common/login-manager/tuigreet.nix
Normal file
19
common/login-manager/tuigreet.nix
Normal file
@ -0,0 +1,19 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
login-manager = "tuigreet";
|
||||
|
||||
environment.systemPackages = (with pkgs; [
|
||||
greetd.tuigreet
|
||||
]);
|
||||
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd sway";
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -2,6 +2,11 @@
|
||||
|
||||
with lib; {
|
||||
options = {
|
||||
login-manager = mkOption {
|
||||
default = "";
|
||||
type = types.str;
|
||||
};
|
||||
|
||||
desktop = mkOption {
|
||||
default = "";
|
||||
type = types.str;
|
||||
|
@ -10,6 +10,7 @@ in {
|
||||
|
||||
(common_dir + /bootloader/systemd-boot.nix)
|
||||
(common_dir + /users/users.nix)
|
||||
(common_dir + /display-manager/tuigreet.nix)
|
||||
(common_dir + /desktop/sway.nix)
|
||||
];
|
||||
|
||||
@ -98,8 +99,6 @@ in {
|
||||
lf
|
||||
tmux
|
||||
firefox
|
||||
|
||||
greetd.tuigreet
|
||||
]);
|
||||
|
||||
environment.shells = with pkgs; [ bash zsh ];
|
||||
@ -168,20 +167,6 @@ in {
|
||||
|
||||
|
||||
|
||||
# Login Manager Configuration
|
||||
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd sway";
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
# User Configuration
|
||||
|
||||
user.cameron.enable = true;
|
||||
|
@ -14,6 +14,7 @@ in {
|
||||
|
||||
(common_dir + /bootloader/grub.nix)
|
||||
(common_dir + /users/users.nix)
|
||||
(common_dir + /login-manager/tuigreet.nix)
|
||||
|
||||
./minecraft.nix
|
||||
./frp.nix
|
||||
|
Loading…
Reference in New Issue
Block a user