Files
nixos/Droidnix/assets/flake/machines/traveldroid/top.nix
T
2026-03-07 14:32:32 +01:00

44 lines
916 B
Nix

{
config,
pkgs,
lib,
user,
inputs,
...
}:
{
# Import all other configurations
imports = [
./boot.nix
./hardware-configuration.nix
];
options = {
wm = lib.mkOption {
type = lib.types.str;
default = "hyprland";
description = "Type of window manager to use";
};
};
config = {
# Minimal settings that must be defined here
networking.hostName = "traveldroid";
wm.type = "hyprland"; # Define the window manager type here, mangowc will be made possible in the near future.
};
{ config, lib, user, ... }:
{
users.users.${user.username} = {
isNormalUser = true;
#description = "Henro Veijer";
extraGroups = [ "wheel" "networkmanager" ];
hashedPassword = user.hashedPassword;
home = user.homeDirectory;
};
# Optional: Enable auto-login for testing
services.getty.autologinUser = user.username;
}
}