Files
nixos/hosts/hakase/configuration.nix
T
2025-07-04 21:46:22 -05:00

44 lines
990 B
Nix

{
pkgs,
myConfig,
inputs,
lib,
...
}: {
imports = [
inputs.home-manager.nixosModules.home-manager
./hardware-configuration.nix
];
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.${myConfig.essentials.Username} = import ../../home/hakase.nix;
nixpkgs.config.allowUnfree = myConfig.general.allowUnfree;
boot.loader = {
systemd-boot = lib.mkIf (myConfig.nixos.Boot.mode == "systemd") {
enable = false;
};
grub = lib.mkIf (myConfig.nixos.Boot.mode == "grub") {
enable = true;
device = "nodev";
};
efi = {
canTouchEfiVariables = true;
};
};
nix = {
distributedBuilds = true;
settings = {
builders-use-substitutes = true;
trusted-users = myConfig.optionals.Builds.trustedUsers;
experimental-features = ["nix-command" "flakes"];
};
};
programs.ssh.extraConfig = myConfig.general.ssh.extraConfig;
system.stateVersion = "25.05";
}