63 lines
1.8 KiB
Nix
63 lines
1.8 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
home-manager,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
# home-manager.nixosModules.home-manager
|
|
# ../../modules
|
|
# "${config.inputs.self}/modules"
|
|
];
|
|
|
|
# Don't use the systemd-boot EFI boot loader.
|
|
# Necessary for dual boot Windows
|
|
boot.loader.systemd-boot.enable = false;
|
|
|
|
boot.loader = {
|
|
efi = {
|
|
canTouchEfiVariables = true;
|
|
efiSysMountPoint = "/boot";
|
|
};
|
|
grub = {
|
|
enable = true;
|
|
devices = [ "nodev" ];
|
|
efiSupport = true;
|
|
extraEntries = ''
|
|
menuentry "Windows" {
|
|
insmod part_gpt
|
|
insmod fat
|
|
insmod search_fs_uuid
|
|
insmod chain
|
|
search --fs-uuid --set=root FE74-E293
|
|
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
|
|
mainUser = {
|
|
enable = true;
|
|
userName = "pazpi";
|
|
hashedPassword = "$y$j9T$dA94KVg1/jYLqclQQbTDk.$cnfxBWUN8P4shr8Kkipv5bU/RCtQNoAwYFDZ0X/BYs5";
|
|
};
|
|
|
|
audio.enable = false;
|
|
|
|
# podman.enable = true;
|
|
|
|
# Vedi https://github.com/TLATER/dotfiles/blob/f989a86890f27f6b089e9d74b7e8356ec8e5683d/home-config/hosts/yui.nix
|
|
# home-manager.users.pazpi = import "${flake-inputs.self}/home-config/hosts/deadbeef.nix";
|
|
|
|
# flake-inputs.self cartella di partenza dove c'è flake.nix
|
|
|
|
# This value determines the NixOS release from which the default
|
|
# settings for stateful data, like file locations and database versions
|
|
# on your system were taken. It's perfectly fine and recommended to leave
|
|
# this value at the release version of the first install of this system.
|
|
# Before changing this value read the documentation for this option
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
system.stateVersion = "24.05"; # Did you read the comment?
|
|
}
|