diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2025-07-03 12:23:02 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2025-07-03 12:23:02 +0530 |
| commit | 4aca2038465009f23cf897c8949b39f0a241c200 (patch) | |
| tree | 59ec372304130b2c389411a74c067ebbfc593a2a /boot.nix | |
| parent | ff0b4b72f64ae716c8d28d3b94dc8789d14115e3 (diff) | |
modulaized
Diffstat (limited to 'boot.nix')
| -rw-r--r-- | boot.nix | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/boot.nix b/boot.nix new file mode 100644 index 0000000..05a7582 --- /dev/null +++ b/boot.nix @@ -0,0 +1,64 @@ +{ config, pkgs, ... }: +{ + fileSystems."/boot".device = "/dev/nvme0n1p6"; + boot.loader = { + grub = { + enable = true; + efiSupport = true; + devices = ["nodev"]; + useOSProber = true; + extraEntries = '' + GRUB_SAVEDEFAULT=true + menuentry "Windows" { + insmod part_gpt + insmod fat + insmod search_fs_uuid + insmod chain + chainloader /EFI/Microsoft/Boot/bootmgfw.efi + } + menuentry "Reboot" { + reboot + } + menuentry "Poweroff" { + halt + } + ''; + default = "saved"; + theme = pkgs.stdenv.mkDerivation { + pname = "distro-grub-themes"; + version = "3.1"; + src = pkgs.fetchFromGitHub { + owner = "AdisonCavani"; + repo = "distro-grub-themes"; + rev = "v3.1"; + hash = "sha256-ZcoGbbOMDDwjLhsvs77C7G7vINQnprdfI37a9ccrmPs="; + }; + installPhase = "cp -r customize/hp $out"; + }; + }; + efi.canTouchEfiVariables = true; + systemd-boot.enable = false; + }; + + system.activationScripts.diff = { + supportsDryActivation = true; + text = '' + ${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig" + ''; + }; + + time.timeZone = "Asia/Kolkata"; + time.hardwareClockInLocalTime = true; + i18n.defaultLocale = "en_IN"; + i18n.extraLocaleSettings = { + LC_ADDRESS = "en_IN"; + LC_IDENTIFICATION = "en_IN"; + LC_MEASUREMENT = "en_IN"; + LC_MONETARY = "en_IN"; + LC_NAME = "en_IN"; + LC_NUMERIC = "en_IN"; + LC_PAPER = "en_IN"; + LC_TELEPHONE = "en_IN"; + LC_TIME = "en_IN"; + }; +} |
