Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
b0fe851dec
|
|||
|
c631965709
|
|||
|
a5134e71b8
|
2
Makefile
2
Makefile
@ -27,5 +27,5 @@ cleanup :
|
||||
nix-env --delete-generations +1
|
||||
sudo nix-collect-garbage -d
|
||||
|
||||
optimise :
|
||||
optimize :
|
||||
nix-store --optimize -vv
|
||||
|
||||
@ -4,16 +4,18 @@
|
||||
mods.x11.enable = true;
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
monitor = [
|
||||
"HDMI-A-1, 1920x1080@60, 0x0, auto"
|
||||
"HDMI-A-3, 1920x1080@60, 1920x0, auto"
|
||||
"DP-1, 1280x1024@60, 3840x0, auto"
|
||||
"DP-3, 1280x1024@60, 5120x0, auto"
|
||||
"DP-1, 1280x1024@75.03Hz, -3200x0, auto"
|
||||
"HDMI-A-1, 1920x1080@60, -1920x0, auto"
|
||||
"HDMI-A-3, 1920x1080@74.97Hz, 0x0, auto"
|
||||
"DP-3, 1920x1080@60.00Hz, 1920x0, auto"
|
||||
"DP-4, 1280x1024@75.03Hz, 3840x0, auto"
|
||||
];
|
||||
workspace = [
|
||||
"1, monitor:HDMI-A-1"
|
||||
"2, monitor:HDMI-A-3, default:true"
|
||||
"3, monitor:DP-1"
|
||||
"4, monitor:DP-3"
|
||||
"4, monitor:DP-1"
|
||||
"3, monitor:HDMI-A-1"
|
||||
"1, monitor:HDMI-A-3, default:true"
|
||||
"2, monitor:DP-3"
|
||||
"5, monitor:DP-4"
|
||||
];
|
||||
env = [
|
||||
"AQ_DRM_DEVICES,/dev/dri/card1:/dev/dri/card0"
|
||||
|
||||
@ -10,12 +10,14 @@
|
||||
config = lib.mkIf config.mods.hyprland.enable {
|
||||
wayland.windowManager.hyprland.systemd.variables = [ "--all" ];
|
||||
|
||||
programs.hyprshot.enable = true;
|
||||
|
||||
wayland.windowManager.hyprland.enable = true;
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
"$mainMod" = "SUPER";
|
||||
bind = [
|
||||
" , Print, exec, grim -t png -g \"$(slurp)\" /dev/stdout | tee ~/screenshots/$(date +%Y-%m-%d_%H-%m-%s).png | wl-copy -t image/png"
|
||||
" SHIFT, Print, exec, grim -t png /dev/stdout | tee ~/screenshots/$(date +%Y-%m-%d_%H-%m-%s).png | wl-copy -t image/png"
|
||||
" , Print, exec, hyprshot -m region -o ~/screenshots -f $(date +%Y-%m-%d_%H-%M-%S).png"
|
||||
" SHIFT, Print, exec, hyprshot -m output -m active -o ~/screenshots -f $(date +%Y-%m-%d_%H-%M-%S).png"
|
||||
"$mainMod, Return, exec, alacritty"
|
||||
"CTRL_ALT, Q, killactive,"
|
||||
"CTRL_ALT_SHIFT, Q, forcekillactive,"
|
||||
@ -166,6 +168,8 @@
|
||||
layout = "dwindle";
|
||||
};
|
||||
|
||||
layerrule = "noanim, selection";
|
||||
|
||||
cursor.no_warps = true;
|
||||
|
||||
env = [
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/09/06 00:57:04 by tomoron #+# #+# #
|
||||
# Updated: 2025/09/06 00:57:05 by tomoron ### ########.fr #
|
||||
# Updated: 2025/10/29 21:15:42 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@ -22,20 +22,25 @@
|
||||
networking.hostName = "nixos-fixe";
|
||||
|
||||
hardware.cpu.intel.updateMicrocode = true;
|
||||
mods.yubikey.pam.enable = true;
|
||||
|
||||
boot.kernelModules = [ "kvm-intel" "nvidia" ];
|
||||
mods.displayManager.enable = true;
|
||||
|
||||
hardware.nvidia = {
|
||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||
open = true;
|
||||
mods.nvidia.enable = true;
|
||||
mods.gayming.enable = true;
|
||||
|
||||
prime.nvidiaBusId = "PCI:1:0:0";
|
||||
prime.intelBusId = "PCI:0:2:0";
|
||||
prime.sync.enable = true;
|
||||
programs.noisetorch.enable = true;
|
||||
|
||||
modesetting.enable = true;
|
||||
};
|
||||
# hardware.nvidia = {
|
||||
# open = true;
|
||||
#
|
||||
# prime.nvidiaBusId = "PCI:1:0:0";
|
||||
# prime.intelBusId = "PCI:0:2:0";
|
||||
# prime.sync.enable = true;
|
||||
#
|
||||
# modesetting.enable = true;
|
||||
# };
|
||||
|
||||
services.openssh.enable = true;
|
||||
}
|
||||
|
||||
@ -6,11 +6,11 @@
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/09/06 00:56:57 by tomoron #+# #+# #
|
||||
# Updated: 2025/10/04 22:23:34 by tomoron ### ########.fr #
|
||||
# Updated: 2025/10/29 21:15:44 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
{ lib, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
boot.initrd.luks.yubikeySupport = true;
|
||||
@ -65,6 +65,7 @@
|
||||
SUBSYSTEM=="kvmfr", OWNER="tom", GROUP="kvm", MODE="0660"
|
||||
'';
|
||||
environment.systemPackages = with pkgs; [ looking-glass-client ];
|
||||
services.supergfxd.settings.mode = "Vfio";
|
||||
};
|
||||
|
||||
networking.dhcpcd.enable = false;
|
||||
@ -80,7 +81,6 @@
|
||||
|
||||
mods.touchpad.enable = true;
|
||||
|
||||
programs.gamescope.enable = true;
|
||||
# programs.gamescope.capSysNice = true;
|
||||
|
||||
mods.powerSave = {
|
||||
@ -98,6 +98,7 @@
|
||||
|
||||
};
|
||||
|
||||
|
||||
services.asusd = {
|
||||
enable = true;
|
||||
enableUserService = true;
|
||||
@ -105,7 +106,7 @@
|
||||
|
||||
services.supergfxd.enable = true;
|
||||
services.supergfxd.settings = {
|
||||
mode = "Integrated";
|
||||
mode = lib.mkDefault "Integrated";
|
||||
vfio_enable = true;
|
||||
vfio_save = true;
|
||||
always_reboot = false;
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/09/05 23:47:09 by tomoron #+# #+# #
|
||||
# Updated: 2025/09/05 23:54:57 by tomoron ### ########.fr #
|
||||
# Updated: 2025/10/27 00:50:29 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@ -22,5 +22,6 @@
|
||||
config = lib.mkIf config.mods.gayming.enable {
|
||||
programs.steam.enable = true;
|
||||
programs.steam.protontricks.enable = true;
|
||||
programs.gamescope.enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/09/05 23:47:19 by tomoron #+# #+# #
|
||||
# Updated: 2025/09/06 01:12:34 by tomoron ### ########.fr #
|
||||
# Updated: 2025/10/26 21:12:18 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
open = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "use beta version of the drivers";
|
||||
description = "use open version of the drivers (on newer gpu)";
|
||||
};
|
||||
containerToolkit = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
|
||||
Reference in New Issue
Block a user