56 lines
1.3 KiB
Nix
56 lines
1.3 KiB
Nix
{config, ...}: {
|
||
imports = [
|
||
./audio.nix
|
||
./bootloader.nix
|
||
./disk-config.nix
|
||
./hardware.nix
|
||
./mounts.nix
|
||
./nebula.nix
|
||
./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.
|
||
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;
|
||
};
|
||
};
|
||
|
||
# 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;
|
||
|
||
# Home-manager
|
||
home-manager.users.${config.users.users.min.name} = import ../../homes/min;
|
||
|
||
system.stateVersion = "24.11";
|
||
}
|