chore: flake update 04-07-2026

This commit is contained in:
2026-04-07 13:56:05 +05:00
parent 044e1e415e
commit cf4842a5b6
83 changed files with 581 additions and 352 deletions

View File

@@ -3,9 +3,11 @@
pkgs,
lib,
...
}: let
}:
let
hostName = "aamil-1";
in {
in
{
imports = lib.flatten [
#
# ========= Hardware =========
@@ -21,17 +23,16 @@ in {
#
# ========= Required Configs =========
#
(map lib.custom.relativeToRoot ["hosts/common/core"])
(map lib.custom.relativeToRoot [ "hosts/common/core" ])
#
# ========= Services =========
#
(map
(s: lib.custom.relativeToRoot "hosts/common/optional/services/${s}.nix") [
"k3s"
"openiscsi"
"openssh"
])
(map (s: lib.custom.relativeToRoot "hosts/common/optional/services/${s}.nix") [
"k3s"
"openiscsi"
"openssh"
])
];
#
@@ -52,7 +53,10 @@ in {
nix = {
settings = {
require-sigs = false;
experimental-features = ["nix-command" "flakes"];
experimental-features = [
"nix-command"
"flakes"
];
};
};
@@ -74,11 +78,11 @@ in {
security.sudo.extraRules = [
{
users = ["shahab"];
users = [ "shahab" ];
commands = [
{
command = "ALL";
options = ["NOPASSWD"];
options = [ "NOPASSWD" ];
}
];
}

View File

@@ -6,8 +6,9 @@
lib,
modulesPath,
...
}: {
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot = {
loader = {
@@ -19,11 +20,17 @@
efi.canTouchEfiVariables = true;
};
initrd = {
availableKernelModules = ["ahci" "xhci_pci" "usbhid" "usb_storage" "sd_mod"];
kernelModules = [];
availableKernelModules = [
"ahci"
"xhci_pci"
"usbhid"
"usb_storage"
"sd_mod"
];
kernelModules = [ ];
};
kernelModules = ["kvm-amd"];
extraModulePackages = [];
kernelModules = [ "kvm-amd" ];
extraModulePackages = [ ];
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";