2024-12-27 16:56:59 -06:00
|
|
|
|
{config, ...}: {
|
2024-12-27 16:44:03 -06:00
|
|
|
|
imports = [
|
|
|
|
|
./audio.nix
|
|
|
|
|
./bootloader.nix
|
|
|
|
|
./disk-config.nix
|
|
|
|
|
./hardware.nix
|
|
|
|
|
./mounts.nix
|
2024-12-27 16:56:59 -06:00
|
|
|
|
./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;
|
|
|
|
|
|
2024-12-27 16:56:59 -06:00
|
|
|
|
# Define a user account.
|
|
|
|
|
users.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
|
|
|
|
|
home-manager.users.${config.users.users.min.name} = import ../../homes/min;
|
|
|
|
|
|
2024-12-27 16:44:03 -06:00
|
|
|
|
system.stateVersion = "24.11";
|
|
|
|
|
}
|