split everything into modules and update nixpkgs

This commit is contained in:
aditya
2026-05-14 00:29:17 +05:30
parent 0e2136c3a0
commit cc2380eec1
18 changed files with 270 additions and 81 deletions
+12
View File
@@ -0,0 +1,12 @@
{
boot.loader = {
systemd-boot.enable = false;
grub = {
enable = true;
efiSupport = true;
useOSProber = true;
devices = [ "nodev" ];
};
efi.canTouchEfiVariables = true;
};
}
+25
View File
@@ -0,0 +1,25 @@
{
time.timeZone = "Asia/Kolkata";
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";
};
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
system.stateVersion = "25.11";
}
+3 -2
View File
@@ -1,7 +1,8 @@
{ ... }:
{
imports = [
./bootloader.nix
./networking.nix
./configuration.nix
./overlays.nix
];
}
+4
View File
@@ -0,0 +1,4 @@
{
networking.hostName = "nixos";
networking.networkmanager.enable = true;
}