98 lines
2.2 KiB
Nix
98 lines
2.2 KiB
Nix
{
|
||
inputs,
|
||
outputs,
|
||
config,
|
||
lib,
|
||
pkgs,
|
||
overlays,
|
||
modulesPath,
|
||
...
|
||
}: {
|
||
imports = [
|
||
./configuration.nix
|
||
];
|
||
|
||
boot.kernelParams = [
|
||
"mitigations=off"
|
||
"quiet"
|
||
"loglevel=3"
|
||
"systemd.show_status=auto"
|
||
"rd.udev.log_level=3"
|
||
"vt.global_cursor_default=0"
|
||
];
|
||
boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc"];
|
||
boot.initrd.kernelModules = ["dm-snapshot"];
|
||
boot.kernelModules = ["iwlwifi" "kvm-intel"];
|
||
boot.kernelPackages = pkgs.linuxPackages;
|
||
|
||
fileSystems."/boot" = {
|
||
device = "/dev/disk/by-uuid/1C5C-8FF4";
|
||
fsType = "vfat";
|
||
};
|
||
|
||
fileSystems."/" = {
|
||
device = "thing goes here";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
swapDevices = [
|
||
"update this"
|
||
];
|
||
|
||
boot.loader.systemd-boot.configurationLimit = 2;
|
||
boot.loader.efi.canTouchEfiVariables = true;
|
||
# boot.plymouth.enable = true;
|
||
|
||
networking.useDHCP = lib.mkDefault true;
|
||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||
services.power-profiles-daemon.enable = false;
|
||
services.tlp.enable = true;
|
||
|
||
environment.sessionVariables = rec {
|
||
NIXOS_OZONE_WL = "1";
|
||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = "fg=5";
|
||
EDITOR = "hx";
|
||
};
|
||
|
||
virtualisation = {
|
||
podman = {
|
||
enable = true;
|
||
dockerCompat = true;
|
||
defaultNetwork.settings.dns_enabled = true;
|
||
};
|
||
};
|
||
|
||
services.xserver.videoDrivers = ["i915"];
|
||
programs.xwayland.enable = true;
|
||
|
||
# xdg.portal = {
|
||
# enable = true;
|
||
# wlr = {
|
||
# enable = true;
|
||
# # settings = {
|
||
# # screencast = {
|
||
# # output_name = "DP-1";
|
||
# # max_fps = 60;
|
||
# # chooser_type = "simple";
|
||
# # chooser_nvidia = "${pkgs.slurp}/bin/slurp -f %o -or";
|
||
# # };
|
||
# # };
|
||
# };
|
||
# extraPortals = with pkgs; [
|
||
# xdg-desktop-portal-gtk
|
||
# ];
|
||
# };
|
||
|
||
environment.systemPackages = with pkgs; [
|
||
wl-clipboard
|
||
wl-clipboard-x11
|
||
xclip
|
||
];
|
||
|
||
networking.hostName = "adrift"; # Define your hostname.
|
||
users.users.plank = {
|
||
isNormalUser = true;
|
||
extraGroups = ["wheel"]; # Enable ‘sudo’ for the user.
|
||
};
|
||
}
|