mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-08-19 11:01:52 +02:00
modules: Add greetd
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user