nixos-configs/hosts/mpl/configuration.nix

67 lines
1.4 KiB
Nix
Raw Normal View History

2024-12-31 21:20:02 -06:00
{
inputs,
2024-12-31 21:46:33 -06:00
config, pkgs,
2024-12-31 21:20:02 -06:00
...
}: {
2024-12-27 16:44:03 -06:00
imports = [
./audio.nix
./bootloader.nix
./disk-config.nix
./hardware.nix
./mounts.nix
./nebula.nix
2024-12-27 16:44:03 -06:00
./secrets.nix
];
networking.hostName = "mpl"; # Define your hostname.
networking.networkmanager.enable = true;
# Allow unfree packages (firmware)
nixpkgs.config.allowUnfree = true;
# Set your time zone.
time.timeZone = "America/New_York";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
# Enable touchpad support (enabled default in most desktopManager).
services.libinput.enable = true;
# Define a user account.
2024-12-31 21:46:33 -06:00
users = {
defaultUserShell = pkgs.zsh;
2024-12-31 21:46:33 -06:00
users = {
root.hashedPasswordFile = config.sops.secrets."root-pw".path;
min = {
isNormalUser = true;
extraGroups = ["wheel"]; # Enable sudo for the user.
hashedPasswordFile = config.sops.secrets."user-pw".path;
};
};
2024-12-27 16:44:03 -06:00
};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
# TODO: pinentryPackage - rofi/bemenu maybe
};
services.pcscd.enable = true;
2024-12-30 20:45:49 -06:00
# Home-manager
2024-12-31 21:20:02 -06:00
home-manager = {
extraSpecialArgs = {inherit inputs;};
users.${config.users.users.min.name} = import ../../homes/min;
};
2024-12-30 20:45:49 -06:00
2024-12-27 16:44:03 -06:00
system.stateVersion = "24.11";
}