update hw config, add additional mount options, and add Git to Drone
This commit is contained in:
parent
33b5fcbfe4
commit
6b81b6daa1
2 changed files with 34 additions and 11 deletions
|
|
@ -12,15 +12,33 @@
|
||||||
../../modules/nixos/bash.nix
|
../../modules/nixos/bash.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
fileSystems = {
|
||||||
|
"/".options = [ "compress=zstd" ];
|
||||||
|
"/home".options = [ "compress=zstd" ];
|
||||||
|
"/nix".options = [ "compress=zstd" "noatime" ];
|
||||||
|
"/swap".options = [ "noatime" ];
|
||||||
|
};
|
||||||
|
|
||||||
swapDevices = [{
|
swapDevices = [{
|
||||||
device = "/swap/swapfile";
|
device = "/swap/swapfile";
|
||||||
size = 8*1024;
|
size = 8192;
|
||||||
}];
|
}];
|
||||||
|
|
||||||
networking.hostName = "${hostName}";
|
networking.hostName = "${hostName}";
|
||||||
|
|
||||||
environment.defaultPackages = lib.mkForce [];
|
environment.defaultPackages = lib.mkForce [];
|
||||||
|
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
config = {
|
||||||
|
user = {
|
||||||
|
name = "wo2wz";
|
||||||
|
email = "189177184+wo2wz@users.noreply.github.com";
|
||||||
|
};
|
||||||
|
safe.directory = "/etc/nixos";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.scx.scheduler = lib.mkForce "scx_rusty";
|
services.scx.scheduler = lib.mkForce "scx_rusty";
|
||||||
|
|
||||||
system.stateVersion = "25.05";
|
system.stateVersion = "25.05";
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
@ -19,18 +19,23 @@
|
||||||
options = [ "subvol=root" ];
|
options = [ "subvol=root" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/home" =
|
|
||||||
{ device = "/dev/disk/by-uuid/5d75c750-e4b9-4e52-95e1-f397f2c763f5";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "subvol=home" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/nix" =
|
fileSystems."/nix" =
|
||||||
{ device = "/dev/disk/by-uuid/5d75c750-e4b9-4e52-95e1-f397f2c763f5";
|
{ device = "/dev/disk/by-uuid/5d75c750-e4b9-4e52-95e1-f397f2c763f5";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=nix" ];
|
options = [ "subvol=nix" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/D867-8F68";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/home" =
|
||||||
|
{ device = "/dev/disk/by-uuid/5d75c750-e4b9-4e52-95e1-f397f2c763f5";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=home" ];
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems."/swap" =
|
fileSystems."/swap" =
|
||||||
{ device = "/dev/disk/by-uuid/b909336e-abc4-4b5e-acc4-eac05f6c6148";
|
{ device = "/dev/disk/by-uuid/b909336e-abc4-4b5e-acc4-eac05f6c6148";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue