a few more additions
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../common/global
|
||||
../common/features/user.nix
|
||||
../common/features/networking.nix
|
||||
../common/features/gpu/nvidia.nix
|
||||
../common/features/display
|
||||
../common/features/pipewire.nix
|
||||
../common/features/docker.nix
|
||||
../common/features/fonts.nix
|
||||
../common/features/nix-ld.nix
|
||||
../common/features/bluetooth.nix
|
||||
../common/features/ledger.nix
|
||||
../common/features/android-studio.nix
|
||||
../common/features/wine.nix
|
||||
../common/features/steam.nix
|
||||
../common/features/appimage.nix
|
||||
../common/features/home
|
||||
];
|
||||
|
||||
networking.hostName = "konishi";
|
||||
|
||||
services.xserver.displayManager.sessionCommands = ''
|
||||
BOTTOM='HDMI-0'
|
||||
TOP='DP-0'
|
||||
RIGHT='DP-2'
|
||||
|
||||
# Match Hyprland layout: TOP at 0x0, BOTTOM at 0x2160, RIGHT at 3840x180
|
||||
${pkgs.xrandr}/bin/xrandr \
|
||||
--output $TOP --mode 3840x2160 --pos 0x0 --rotate normal \
|
||||
--output $BOTTOM --primary --mode 3840x2160 --pos 0x2160 --rotate normal \
|
||||
--output $RIGHT --mode 3840x2160 --pos 3840x180 --rotate left
|
||||
${pkgs.xrandr}/bin/xrandr --dpi 160
|
||||
'';
|
||||
|
||||
networking.nameservers = [
|
||||
"100.100.100.100"
|
||||
"10.1.10.1"
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "vmd" "xhci_pci" "ahci" "thunderbolt" "nvme" "usbhid" "usb_storage" "sd_mod" "virtio-pci" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/1f8625f0-5e97-4679-9885-f7ef21d5351c";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/AE7C-876F";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/2c16b0a2-9b42-40d1-ada1-6b5e09525716"; }
|
||||
];
|
||||
|
||||
# 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.enp5s0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
Reference in New Issue
Block a user