update hardware
This commit is contained in:
parent
921677a401
commit
d6f6840073
3 changed files with 49 additions and 35 deletions
|
@ -27,17 +27,29 @@
|
||||||
services.fstrim.enable = true;
|
services.fstrim.enable = true;
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
supportedFilesystems = [ "btrfs" ];
|
|
||||||
|
|
||||||
# use systemd boot by default
|
|
||||||
loader = {
|
loader = {
|
||||||
systemd-boot.enable = true;
|
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
|
grub = {
|
||||||
|
enable = true;
|
||||||
|
efiSupport = true;
|
||||||
|
device = "nodev";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
tmpOnTmpfs = true;
|
supportedFilesystems = [ "zfs" ];
|
||||||
|
kernelParams = [ "nohibernate" ];
|
||||||
|
zfs.devNodes = "/dev/";
|
||||||
plymouth.enable = false;
|
plymouth.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.zfs = {
|
||||||
|
trim.enable = true;
|
||||||
|
autoScrub = {
|
||||||
|
enable = true;
|
||||||
|
pools = [ "rpool" ];
|
||||||
|
};
|
||||||
|
autoSnapshot.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
# update the microcode
|
# update the microcode
|
||||||
hardware.cpu.intel.updateMicrocode = true;
|
hardware.cpu.intel.updateMicrocode = true;
|
||||||
hardware.enableAllFirmware = true;
|
hardware.enableAllFirmware = true;
|
||||||
|
@ -74,6 +86,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.wireshark;
|
package = pkgs.wireshark;
|
||||||
};
|
};
|
||||||
|
time.timeZone = "Europe/Berlin";
|
||||||
|
|
||||||
|
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
|
@ -83,7 +96,7 @@
|
||||||
# this value at the release version of the first install of this system.
|
# this value at the release version of the first install of this system.
|
||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "22.05"; # Did you read the comment?
|
system.stateVersion = "22.11"; # Did you read the comment?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,47 +16,47 @@
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{
|
{
|
||||||
device = "/dev/disk/by-uuid/f9edd500-f47b-42e5-9b88-7b6d86f76caa";
|
device = "rpool/nixos";
|
||||||
fsType = "btrfs";
|
fsType = "zfs";
|
||||||
options = [ "subvol=root" "noatime" "compress=zstd" ];
|
options = [ "zfsutil" ];
|
||||||
};
|
|
||||||
|
|
||||||
boot.initrd.luks.devices."nixos-crypt".device = "/dev/disk/by-uuid/dbee4082-85ae-40f0-9c80-034f3574688f";
|
|
||||||
|
|
||||||
fileSystems."/boot" =
|
|
||||||
{
|
|
||||||
device = "/dev/disk/by-uuid/4B02-CE16";
|
|
||||||
fsType = "vfat";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/home" =
|
|
||||||
{
|
|
||||||
device = "/dev/disk/by-uuid/f9edd500-f47b-42e5-9b88-7b6d86f76caa";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "subvol=home" "noatime" "compress=zstd" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/nix" =
|
fileSystems."/nix" =
|
||||||
{
|
{
|
||||||
device = "/dev/disk/by-uuid/f9edd500-f47b-42e5-9b88-7b6d86f76caa";
|
device = "rpool/nixos/nix";
|
||||||
fsType = "btrfs";
|
fsType = "zfs";
|
||||||
options = [ "subvol=nix" "noatime" "compress=zstd" ];
|
options = [ "zfsutil" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/tmp" =
|
fileSystems."/home" =
|
||||||
{
|
{
|
||||||
device = "/dev/disk/by-uuid/f9edd500-f47b-42e5-9b88-7b6d86f76caa";
|
device = "rpool/userdata/home";
|
||||||
fsType = "btrfs";
|
fsType = "zfs";
|
||||||
options = [ "subvol=tmp" "noatime" "compress=zstd" ];
|
options = [ "zfsutil" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
|
fileSystems."/boot" =
|
||||||
# Per-interface useDHCP will be mandatory in the future, so this generated config
|
{
|
||||||
# replicates the default behaviour.
|
device = "/dev/disk/by-uuid/A8AA-1CC4";
|
||||||
networking.useDHCP = lib.mkDefault false;
|
fsType = "vfat";
|
||||||
|
options = [ "X-mount.mkdir" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices =
|
||||||
|
[{
|
||||||
|
device = "/dev/disk/by-partuuid/f9712640-96a5-46e1-b07d-53b0cba19057";
|
||||||
|
randomEncryption = true;
|
||||||
|
}];
|
||||||
|
|
||||||
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
networking.interfaces.enp53s0.useDHCP = lib.mkDefault true;
|
networking.interfaces.enp53s0.useDHCP = lib.mkDefault true;
|
||||||
networking.interfaces.wlp54s0.useDHCP = lib.mkDefault true;
|
networking.interfaces.wlp54s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
];
|
];
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "microwave"; # Define your hostname.
|
hostName = "microwave"; # Define your hostname.
|
||||||
|
hostId = "7da4f1e6";
|
||||||
firewall.enable = true;
|
firewall.enable = true;
|
||||||
useNetworkd = true;
|
useNetworkd = true;
|
||||||
wireguard.enable = true;
|
wireguard.enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue