forked from extern/nix-config
modules: Add greetd
This commit is contained in:
parent
e00a88bfea
commit
6b496fb529
@ -3,12 +3,12 @@
|
||||
./dual-function-keys.nix
|
||||
./fish.nix
|
||||
./fonts.nix
|
||||
./greetd.nix
|
||||
./hyprland.nix
|
||||
./librewolf.nix
|
||||
./piper.nix
|
||||
./pipewire.nix
|
||||
./starship.nix
|
||||
./stylix.nix
|
||||
./swaylock.nix
|
||||
./thunar.nix
|
||||
];
|
||||
}
|
||||
|
18
modules/greetd.nix
Normal file
18
modules/greetd.nix
Normal file
@ -0,0 +1,18 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
let VARIABLES = import ../src/variables.nix; in {
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
restart = false;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland";
|
||||
user = "greeter";
|
||||
};
|
||||
initial_session = {
|
||||
command = "${pkgs.hyprland}/bin/Hyprland";
|
||||
user = VARIABLES.username;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
14
src/main.nix
14
src/main.nix
@ -282,20 +282,6 @@ let VARIABLES = import ./variables.nix; in {
|
||||
'';
|
||||
};
|
||||
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
restart = false;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland";
|
||||
user = "greeter";
|
||||
};
|
||||
initial_session = {
|
||||
command = "${pkgs.hyprland}/bin/Hyprland";
|
||||
user = VARIABLES.username;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
zramSwap.enable = true; # Swap
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user