This commit is contained in:
kenji
2025-07-07 16:25:40 -05:00
parent ec55ac55b2
commit c97a5887df
3 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -20,7 +20,7 @@
Timezone = "America/Chicago"; Timezone = "America/Chicago";
Boot = { Boot = {
mode = "grub"; # systemd or grub mode = "systemd"; # systemd or grub
}; };
Gaming = { Gaming = {
enable = true; enable = true;
+9 -2
View File
@@ -3,6 +3,7 @@
myConfig, myConfig,
inputs, inputs,
lib, lib,
specialArgs,
... ...
}: { }: {
imports = [ imports = [
@@ -27,8 +28,10 @@
}; };
}; };
home-manager = { home-manager = {
backupFileExtension = "backup";
useGlobalPkgs = true; useGlobalPkgs = true;
useUserPackages = true; useUserPackages = true;
extraSpecialArgs = specialArgs;
users.${myConfig.essentials.Username} = import ../../home/hakase.nix; users.${myConfig.essentials.Username} = import ../../home/hakase.nix;
}; };
@@ -44,18 +47,21 @@
boot.loader = { boot.loader = {
systemd-boot = lib.mkIf (myConfig.nixos.Boot.mode == "systemd") { systemd-boot = lib.mkIf (myConfig.nixos.Boot.mode == "systemd") {
enable = false; enable = true;
}; };
grub = lib.mkIf (myConfig.nixos.Boot.mode == "grub") { grub = lib.mkIf (myConfig.nixos.Boot.mode == "grub") {
efiSupport = true;
enable = true; enable = true;
device = "nodev"; device = "nodev";
useOSProber = true;
}; };
efi = { efi = {
canTouchEfiVariables = true; canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
}; };
}; };
programs.ssh.extraConfig = myConfig.general.ssh.extraConfig; programs.ssh.extraConfig = myConfig.optionals.Ssh.extraConfig;
programs.bash = { programs.bash = {
interactiveShellInit = '' interactiveShellInit = ''
@@ -104,6 +110,7 @@
}; };
networking = { networking = {
networkmanager.enable = true;
firewall = { firewall = {
enable = false; enable = false;
allowedTCPPorts = [22 80]; allowedTCPPorts = [22 80];
+1 -7
View File
@@ -8,7 +8,7 @@
[ (modulesPath + "/installer/scan/not-detected.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
@@ -19,12 +19,6 @@
options = [ "subvol=@" ]; options = [ "subvol=@" ];
}; };
fileSystems."/nix/store" =
{ device = "/@/nix/store";
fsType = "none";
options = [ "bind" ];
};
fileSystems."/boot" = fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/1368-D3F3"; { device = "/dev/disk/by-uuid/1368-D3F3";
fsType = "vfat"; fsType = "vfat";