dotfiles-nixos/nixos/machines/lpt-mans/configuration.nix.old
2023-08-04 17:10:13 +02:00

52 lines
1.3 KiB
Nix

# This is your system's configuration file.
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
# https://github.com/Misterio77/nix-starter-configs
{ inputs, lib, config, pkgs, ... }: {
# You can import other NixOS modules here
imports = [
# If you want to use modules from other flakes (such as nixos-hardware):
inputs.hardware.nixosModules.common-cpu-amd
# inputs.hardware.nixosModules.common-gpu-nvidia
# Import home-manager's NixOS module
inputs.home-manager.nixosModules.home-manager
./network.nix
./hardware-configuration.nix
../../modules
../../roles/base.nix
../../roles/desktop.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Setup keyfile
boot.initrd.secrets = {
"/crypto_keyfile.bin" = null;
};
# Enable CUPS to print documents.
services.printing.enable = true;
environment.systemPackages = with pkgs; [
wget
neovim
openssl
];
home-manager = {
extraSpecialArgs = { inherit inputs; };
users = {
# Import your home-manager configuration
mans = import ../../../home-manager/home.nix;
};
};
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "22.11"; # Did you read the comment?
}