This commit is contained in:
gwg313 2024-12-15 14:08:33 -05:00
parent 308bdbebf9
commit badcf3aa40
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
43 changed files with 1972 additions and 253 deletions

View file

@ -2,10 +2,12 @@
config,
lib,
...
}: {
}:
{
imports = [
./bluetooth.nix
../networking/wireless.nix
# ../networking/wireless.nix
../networking/networkmanager.nix
];
options = {
laptop.enable = lib.mkEnableOption "Enables Laptop options";
@ -19,6 +21,6 @@
services.tlp.enable = true;
bluetooth.enable = true;
wireless.enable = true;
# wireless.enable = true;
};
}

30
common/nixos/tuigreet.nix Normal file
View file

@ -0,0 +1,30 @@
{ pkgs, ... }:
{
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --remember --asterisks --container-padding 2 --time --time-format '%I:%M %p | %a %h | %F' --cmd Hyprland";
# command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland";
user = "greeter";
};
};
};
environment.systemPackages = with pkgs; [ greetd.tuigreet ];
systemd.services.greetd.serviceConfig = {
Type = "idle";
StandardInput = "tty";
StandardOutput = "tty";
StandardError = "journal"; # Without this errors will spam on screen
# Without these bootlogs will spam on screen
TTYReset = true;
TTYVHangup = true;
TTYVTDisallocate = true;
};
security.pam.services.greetd.enableGnomeKeyring = true;
# To prevent getting stuck at shutdown
systemd.extraConfig = "DefaultTimeoutStopSec=10s";
}

View file

@ -0,0 +1,9 @@
{ lib, ... }:
{
options = {
var = lib.mkOption {
type = lib.types.attrs;
default = { };
};
};
}