update lock, configure hardware accel, hyprland config and programs, deploy-rs flake seems broken? need to investigate
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.kernelPackages = pkgs.linuxPackages_6_6;
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
system.stateVersion = "23.11"; # Did you read the comment?
|
||||
networking = {
|
||||
hostName = "framework";
|
||||
@@ -29,6 +31,7 @@
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
extraPackages = [pkgs.vaapiVdpau];
|
||||
};
|
||||
|
||||
security.pam.services.swaylock = {};
|
||||
@@ -64,7 +67,8 @@
|
||||
|
||||
xserver = {
|
||||
enable = true;
|
||||
layout = "us";
|
||||
xkb.layout = "us";
|
||||
videoDrivers = ["amdgpu"];
|
||||
|
||||
libinput.enable = true;
|
||||
|
||||
@@ -90,8 +94,12 @@
|
||||
};
|
||||
};
|
||||
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
users.users.patrick = {
|
||||
isNormalUser = true;
|
||||
@@ -115,25 +123,4 @@
|
||||
hyprland.enable = true;
|
||||
gnupg.agent.enable = true;
|
||||
};
|
||||
|
||||
# nix = {
|
||||
# gc = {
|
||||
# automatic = true;
|
||||
# dates = "weekly";
|
||||
# options = "--delete-older-than 7d";
|
||||
# };
|
||||
|
||||
# package = pkgs.nixVersions.stable;
|
||||
# # registry.nixpkgs.flake = inputs.nixpkgs;
|
||||
|
||||
# settings = {
|
||||
# auto-optimise-store = true;
|
||||
|
||||
# experimental-features = ["nix-command" "flakes"];
|
||||
|
||||
# # Avoid unwanted garbage collection when using nix-direnv
|
||||
# # keep-outputs = true;
|
||||
# # keep-derivations = true;
|
||||
# };
|
||||
# };
|
||||
}
|
||||
|
@@ -13,7 +13,7 @@
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "thunderbolt" "uas" "sd_mod"];
|
||||
boot.initrd.kernelModules = [];
|
||||
boot.initrd.kernelModules = ["amdgpu"];
|
||||
boot.kernelModules = ["kvm-amd"];
|
||||
boot.extraModulePackages = [];
|
||||
|
||||
|
@@ -3,17 +3,113 @@
|
||||
helix
|
||||
firefox-devedition
|
||||
git
|
||||
alacritty
|
||||
eww-wayland
|
||||
pinentry
|
||||
rofi-wayland
|
||||
acpi
|
||||
sops
|
||||
moonlight-qt
|
||||
discord
|
||||
telegram-desktop
|
||||
obs-studio
|
||||
];
|
||||
|
||||
programs.bash.enable = true;
|
||||
programs.swaylock.enable = true;
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
settings = {
|
||||
"$mod" = "SUPER";
|
||||
|
||||
monitor = [
|
||||
"eDP-1,2256x1504,0x0,1.566667"
|
||||
"DP-9,2560x1080,2256x0,1"
|
||||
"DP-11,1680x1050,4816x0,1"
|
||||
",preferred,auto,1.5"
|
||||
];
|
||||
|
||||
exec-once = ["waybar"];
|
||||
|
||||
input = {
|
||||
kb_layout = "us,de";
|
||||
follow_mouse = 1;
|
||||
};
|
||||
|
||||
general = {
|
||||
gaps_in = 5;
|
||||
gaps_out = 5;
|
||||
border_size = 1;
|
||||
layout = "dwindle";
|
||||
allow_tearing = false;
|
||||
"col.active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg";
|
||||
"col.inactive_border" = "rgba(595959aa)";
|
||||
};
|
||||
|
||||
decoration = {
|
||||
rounding = 5;
|
||||
drop_shadow = true;
|
||||
shadow_range = 4;
|
||||
shadow_render_power = 3;
|
||||
"col.shadow" = "rgba(1a1a1aee)";
|
||||
|
||||
blur = {
|
||||
enabled = true;
|
||||
size = 3;
|
||||
passes = 1;
|
||||
};
|
||||
};
|
||||
|
||||
animations = {
|
||||
enabled = true;
|
||||
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
|
||||
|
||||
animation = [
|
||||
"windows, 1, 3, myBezier"
|
||||
"windowsOut, 1, 3, default, popin 80%"
|
||||
"border, 1, 3, default"
|
||||
"borderangle, 1, 3, default"
|
||||
"fade, 1, 3, default"
|
||||
"workspaces, 1, 3, default"
|
||||
];
|
||||
};
|
||||
|
||||
bind =
|
||||
[
|
||||
"$mod, return, exec, ${pkgs.alacritty.outPath}/bin/alacritty"
|
||||
"$mod SHIFT, Q, killactive, "
|
||||
"$mod, L, exec, swaylock"
|
||||
"$mod, V, togglefloating, "
|
||||
"$mod, D, exec, ${pkgs.rofi-wayland.outPath}/bin/rofi -show drun"
|
||||
"$mod, P, pseudo, # dwindle"
|
||||
"$mod, J, togglesplit, # dwindle"
|
||||
"$mod, left, movefocus, l"
|
||||
"$mod, right, movefocus, r"
|
||||
"$mod, up, movefocus, u"
|
||||
"$mod, down, movefocus, d"
|
||||
"$mod, S, togglespecialworkspace, magic"
|
||||
"$mod SHIFT, S, movetoworkspace, special:magic"
|
||||
]
|
||||
++ builtins.concatLists (builtins.genList (
|
||||
x: let
|
||||
num = builtins.toString (x + 1);
|
||||
in [
|
||||
"$mod, ${num}, workspace, ${num}"
|
||||
"$mod SHIFT, ${num}, movetoworkspace, ${num}"
|
||||
]
|
||||
)
|
||||
9);
|
||||
|
||||
bindm = [
|
||||
"$mod, mouse:272, movewindow"
|
||||
"$mod, mouse:273, resizewindow"
|
||||
];
|
||||
|
||||
"device:razer-razer-blackwidow-chroma" = {
|
||||
kb_layout = "de";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
|
||||
|
Reference in New Issue
Block a user