1
0
forked from extern/nix-config

modules: Add greetd

This commit is contained in:
Donovan Glover 2023-06-17 02:43:26 -04:00
parent e00a88bfea
commit 6b496fb529
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
3 changed files with 20 additions and 16 deletions

View File

@ -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
View 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;
};
};
};
}

View File

@ -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
}