working laptop
This commit is contained in:
parent
a7ff191561
commit
82b5138413
4 changed files with 80 additions and 90 deletions
|
@ -1,42 +1,40 @@
|
||||||
|
# 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, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
config,
|
imports =
|
||||||
lib,
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
pkgs,
|
];
|
||||||
modulesPath,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "sd_mod"];
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "rtsx_pci_sdmmc" ];
|
||||||
boot.initrd.kernelModules = [];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = ["kvm-intel"];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" =
|
||||||
device = "/dev/disk/by-uuid/0423508a-6906-4872-baeb-2b1e6bd017a4";
|
{ device = "/dev/disk/by-uuid/3d023930-3656-44bb-a737-b0e08a6bbd3e";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
options = ["noatime" "nodiratime" "discard"];
|
};
|
||||||
};
|
|
||||||
|
|
||||||
boot.initrd.luks.devices."luks-c03fc486-bdd7-46bf-ac2f-1a55fe1abd6f".device = "/dev/disk/by-uuid/c03fc486-bdd7-46bf-ac2f-1a55fe1abd6f";
|
boot.initrd.luks.devices."luks-10037600-c781-4ebc-9ceb-7e0367b1ed24".device = "/dev/disk/by-uuid/10037600-c781-4ebc-9ceb-7e0367b1ed24";
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
fileSystems."/boot" =
|
||||||
device = "/dev/disk/by-uuid/D299-5174";
|
{ device = "/dev/disk/by-uuid/3A39-FAF1";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
|
};
|
||||||
|
|
||||||
swapDevices = [
|
swapDevices = [ ];
|
||||||
# { device = "/dev/disk/by-uuid/bc68b3b5-1b58-4d8c-be8d-b06bbc4b6da7"; }
|
|
||||||
];
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# 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
|
# (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
|
# 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`.
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
networking.useDHCP = lib.mkDefault true;
|
networking.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.enp4s0.useDHCP = lib.mkDefault true;
|
# networking.interfaces.wlp59s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.intel.updateMicrocode =
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@ _: {
|
||||||
../../../options/boot/grub-boot.nix
|
../../../options/boot/grub-boot.nix
|
||||||
../../../options/desktop/fonts.nix
|
../../../options/desktop/fonts.nix
|
||||||
../../../options/common/networking.nix
|
../../../options/common/networking.nix
|
||||||
|
../../../options/common/gpu/nvidia.nix
|
||||||
../../../options/desktop/monitors.nix
|
../../../options/desktop/monitors.nix
|
||||||
../../../overlay.nix
|
../../../overlay.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -12,7 +12,6 @@ _: {
|
||||||
./anyrun
|
./anyrun
|
||||||
./rofi.nix
|
./rofi.nix
|
||||||
./kitty.nix
|
./kitty.nix
|
||||||
./vivado.nix
|
|
||||||
./steam.nix
|
./steam.nix
|
||||||
./waybar.nix
|
./waybar.nix
|
||||||
./schizofox.nix
|
./schizofox.nix
|
||||||
|
|
|
@ -37,7 +37,6 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = hyprland;
|
package = hyprland;
|
||||||
# Split-monitor-workspaces provides awesome-like workspace behaviour
|
# Split-monitor-workspaces provides awesome-like workspace behaviour
|
||||||
plugins = [split-monitor-workspaces];
|
|
||||||
# Xwayland for X applications
|
# Xwayland for X applications
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
# No idea why I set this
|
# No idea why I set this
|
||||||
|
@ -53,46 +52,46 @@ in {
|
||||||
# Monitor config
|
# Monitor config
|
||||||
monitor = [
|
monitor = [
|
||||||
"eDP-1,1920x1080,0x0,1"
|
"eDP-1,1920x1080,0x0,1"
|
||||||
"DP-2,1920x1080,0x0,1"
|
# "DP-2,1920x1080,0x0,1"
|
||||||
"HDMI-A-2,1920x1080,1920x0,1"
|
# "HDMI-A-2,1920x1080,1920x0,1"
|
||||||
"HDMI-A-1,1920x1080,3840x0,1"
|
# "HDMI-A-1,1920x1080,3840x0,1"
|
||||||
# Had the shadow monitor bug, so had to disable all unknown monitors.
|
# Had the shadow monitor bug, so had to disable all unknown monitors.
|
||||||
# "Unknown-1,disable"
|
# "Unknown-1,disable"
|
||||||
];
|
];
|
||||||
# Workspace config
|
# Workspace config
|
||||||
workspace = [
|
workspace = [
|
||||||
"1, monitor:HDMI-A-1, default:true"
|
"1, monitor:eDP-1, default:true"
|
||||||
"2, monitor:HDMI-A-1"
|
"2, monitor:eDP-1"
|
||||||
"3, monitor:HDMI-A-1"
|
"3, monitor:eDP-1"
|
||||||
"4, monitor:HDMI-A-1"
|
"4, monitor:eDP-1"
|
||||||
"5, monitor:HDMI-A-1"
|
"5, monitor:eDP-1"
|
||||||
"6, monitor:HDMI-A-1"
|
"6, monitor:eDP-1"
|
||||||
"7, monitor:HDMI-A-1"
|
"7, monitor:eDP-1"
|
||||||
"8, monitor:HDMI-A-1"
|
"8, monitor:eDP-1"
|
||||||
"9, monitor:HDMI-A-1"
|
"9, monitor:eDP-1"
|
||||||
"10, monitor:HDMI-A-1"
|
"10, monitor:eDP-1"
|
||||||
|
|
||||||
"11, monitor:HDMI-A-2, default:true"
|
# "11, monitor:HDMI-A-2, default:true"
|
||||||
"12, monitor:HDMI-A-2"
|
# "12, monitor:HDMI-A-2"
|
||||||
"13, monitor:HDMI-A-2"
|
# "13, monitor:HDMI-A-2"
|
||||||
"14, monitor:HDMI-A-2"
|
# "14, monitor:HDMI-A-2"
|
||||||
"15, monitor:HDMI-A-2"
|
# "15, monitor:HDMI-A-2"
|
||||||
"16, monitor:HDMI-A-2"
|
# "16, monitor:HDMI-A-2"
|
||||||
"17, monitor:HDMI-A-2"
|
# "17, monitor:HDMI-A-2"
|
||||||
"18, monitor:HDMI-A-2"
|
# "18, monitor:HDMI-A-2"
|
||||||
"19, monitor:HDMI-A-2"
|
# "19, monitor:HDMI-A-2"
|
||||||
"20, monitor:HDMI-A-2"
|
# "20, monitor:HDMI-A-2"
|
||||||
|
|
||||||
"21, monitor:DP-2, default:true"
|
# "21, monitor:DP-2, default:true"
|
||||||
"22, monitor:DP-2"
|
# "22, monitor:DP-2"
|
||||||
"23, monitor:DP-2"
|
# "23, monitor:DP-2"
|
||||||
"24, monitor:DP-2"
|
# "24, monitor:DP-2"
|
||||||
"25, monitor:DP-2"
|
# "25, monitor:DP-2"
|
||||||
"26, monitor:DP-2"
|
# "26, monitor:DP-2"
|
||||||
"27, monitor:DP-2"
|
# "27, monitor:DP-2"
|
||||||
"28, monitor:DP-2"
|
# "28, monitor:DP-2"
|
||||||
"29, monitor:DP-2"
|
# "29, monitor:DP-2"
|
||||||
"30, monitor:DP-2"
|
# "30, monitor:DP-2"
|
||||||
|
|
||||||
# scratchpads
|
# scratchpads
|
||||||
"special:btop, decorate:false"
|
"special:btop, decorate:false"
|
||||||
|
@ -111,7 +110,6 @@ in {
|
||||||
follow_mouse = true;
|
follow_mouse = true;
|
||||||
repeat_rate = 50;
|
repeat_rate = 50;
|
||||||
repeat_delay = 250;
|
repeat_delay = 250;
|
||||||
tablet = {output = "HDMI-A-2";};
|
|
||||||
};
|
};
|
||||||
general = {
|
general = {
|
||||||
sensitivity = 1.0;
|
sensitivity = 1.0;
|
||||||
|
@ -190,26 +188,26 @@ in {
|
||||||
"$mainMod, O, exec, obsidian --ozone-platform=wayland --enable-features=UseOzonePlatform --enable-features=WaylandWindowDecorations --enable-features=WebRTCPipeWireCpaturer --disable-gpu"
|
"$mainMod, O, exec, obsidian --ozone-platform=wayland --enable-features=UseOzonePlatform --enable-features=WaylandWindowDecorations --enable-features=WebRTCPipeWireCpaturer --disable-gpu"
|
||||||
# workspaces
|
# workspaces
|
||||||
# split-workspace is because of the split-workspace plugin
|
# split-workspace is because of the split-workspace plugin
|
||||||
"$mainMod, 1, split-workspace, 1"
|
"$mainMod, 1, workspace, 1"
|
||||||
"$mainMod, 2, split-workspace, 2"
|
"$mainMod, 2, workspace, 2"
|
||||||
"$mainMod, 3, split-workspace, 3"
|
"$mainMod, 3, workspace, 3"
|
||||||
"$mainMod, 4, split-workspace, 4"
|
"$mainMod, 4, workspace, 4"
|
||||||
"$mainMod, 5, split-workspace, 5"
|
"$mainMod, 5, workspace, 5"
|
||||||
"$mainMod, 6, split-workspace, 6"
|
"$mainMod, 6, workspace, 6"
|
||||||
"$mainMod, 7, split-workspace, 7"
|
"$mainMod, 7, workspace, 7"
|
||||||
"$mainMod, 8, split-workspace, 8"
|
"$mainMod, 8, workspace, 8"
|
||||||
"$mainMod, 9, split-workspace, 9"
|
"$mainMod, 9, workspace, 9"
|
||||||
"$mainMod, 0, split-workspace, 10"
|
"$mainMod, 0, workspace, 10"
|
||||||
"$mainMod SHIFT, 1, split-movetoworkspacesilent, 1"
|
"$mainMod SHIFT, 1, movetoworkspacesilent, 1"
|
||||||
"$mainMod SHIFT, 2, split-movetoworkspacesilent, 2"
|
"$mainMod SHIFT, 2, movetoworkspacesilent, 2"
|
||||||
"$mainMod SHIFT, 3, split-movetoworkspacesilent, 3"
|
"$mainMod SHIFT, 3, movetoworkspacesilent, 3"
|
||||||
"$mainMod SHIFT, 4, split-movetoworkspacesilent, 4"
|
"$mainMod SHIFT, 4, movetoworkspacesilent, 4"
|
||||||
"$mainMod SHIFT, 5, split-movetoworkspacesilent, 5"
|
"$mainMod SHIFT, 5, movetoworkspacesilent, 5"
|
||||||
"$mainMod SHIFT, 6, split-movetoworkspacesilent, 6"
|
"$mainMod SHIFT, 6, movetoworkspacesilent, 6"
|
||||||
"$mainMod SHIFT, 7, split-movetoworkspacesilent, 7"
|
"$mainMod SHIFT, 7, movetoworkspacesilent, 7"
|
||||||
"$mainMod SHIFT, 8, split-movetoworkspacesilent, 8"
|
"$mainMod SHIFT, 8, movetoworkspacesilent, 8"
|
||||||
"$mainMod SHIFT, 9, split-movetoworkspacesilent, 9"
|
"$mainMod SHIFT, 9, movetoworkspacesilent, 9"
|
||||||
"$mainMod SHIFT, 0, split-movetoworkspacesilent, 10"
|
"$mainMod SHIFT, 0, movetoworkspacesilent, 10"
|
||||||
# Screenshotting
|
# Screenshotting
|
||||||
"$mainMod, S, exec, ${pkgs.grimblast}/bin/grimblast copy area"
|
"$mainMod, S, exec, ${pkgs.grimblast}/bin/grimblast copy area"
|
||||||
# File manager
|
# File manager
|
||||||
|
@ -278,6 +276,7 @@ in {
|
||||||
|
|
||||||
"${swww}/bin/swww-daemon"
|
"${swww}/bin/swww-daemon"
|
||||||
"${wlsunset}/bin/wlsunset -S 06:00 -s 20:00"
|
"${wlsunset}/bin/wlsunset -S 06:00 -s 20:00"
|
||||||
|
"${waybar}/bin/waybar"
|
||||||
];
|
];
|
||||||
|
|
||||||
exec = [
|
exec = [
|
||||||
|
@ -291,13 +290,6 @@ in {
|
||||||
"[workspace special:pipewire;silent;tile] ${pkgs.pavucontrol}/bin/pavucontrol"
|
"[workspace special:pipewire;silent;tile] ${pkgs.pavucontrol}/bin/pavucontrol"
|
||||||
# "${pkgs.networkmanagerapplet}/bin/nm-applet --indicator"
|
# "${pkgs.networkmanagerapplet}/bin/nm-applet --indicator"
|
||||||
];
|
];
|
||||||
|
|
||||||
plugin = {
|
|
||||||
split-monitor-workspaces = {
|
|
||||||
count = 10;
|
|
||||||
keep_focused = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue