16 Commits

Author SHA1 Message Date
093ac9c011 set supergfxd config in nix files, change ly config, update flake
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 2m38s
2025-08-06 00:26:52 +02:00
d6ca7ba793 update flake
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 2m27s
2025-07-30 18:52:08 +02:00
17e3fc6a9e Merge branch 'new-42-homes'
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 2m40s
2025-07-29 12:55:09 +02:00
0da22649eb move nerdfont.iosevka to home config (broken in os config)
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 3m0s
2025-07-23 18:02:45 +02:00
f14bc8c082 update flake and remove duplicate neovim
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 2m31s
2025-07-21 23:00:41 +02:00
c766b08973 remove full home config from iso
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 2m41s
2025-07-16 20:07:12 +02:00
27ca179697 update flake, sort system and home packages
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 7m42s
2025-07-15 16:12:16 +02:00
66b67b9b03 set kvmfr size to 128mb and change cleanup makefile rule
Some checks failed
Build iso when a new version is pushed / test (push) Has been cancelled
2025-07-15 12:37:05 +02:00
116e81d080 change specialisation name, blacklist xpad when in vfio mode
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 17m4s
2025-07-12 18:15:24 +02:00
e64579832a fix typo on laptop config
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 18m35s
2025-07-12 16:57:03 +02:00
11e350751a repair usb redirection on libvirt
Some checks failed
Build iso when a new version is pushed / test (push) Has been cancelled
2025-07-12 16:54:59 +02:00
d86380c995 add pin shortcut and add kvm windows gpu passthrough support in a specialisation config on laptop
Some checks failed
Build iso when a new version is pushed / test (push) Has been cancelled
2025-07-12 16:52:43 +02:00
79ad288bcc beta nvidia drivers on desktop
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 14m41s
2025-07-09 17:15:32 +02:00
5b3d74179b set virtualmanager as module, trying to fix nvidia stutter screens lag stutter, remove docker legacy version (latest probably fixed)
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 11m57s
2025-07-03 14:58:19 +02:00
ac2d3acf0e disable password auth on ssh and change nvidia drivers to beta
Some checks failed
Build iso when a new version is pushed / test (push) Has been cancelled
2025-06-28 00:45:51 +02:00
34e087b815 change home location
Some checks are pending
Build iso when a new version is pushed / test (push) Waiting to run
2025-04-09 16:50:26 +02:00
14 changed files with 124 additions and 76 deletions

View File

@ -1,7 +1,7 @@
HOST ?= $(file < /etc/nixosFlakeName) HOST ?= $(file < /etc/nixosFlakeName)
THREADS ?= $(shell nproc) THREADS ?= $(shell nproc)
FLAKE ?= . FLAKE ?= .
MODE = boot MODE ?= boot
FLAGS = --impure --cores $(THREADS) -j $(THREADS) FLAGS = --impure --cores $(THREADS) -j $(THREADS)
@ -22,4 +22,5 @@ iso :
rm -rf result rm -rf result
cleanup : cleanup :
sudo nix-collect-garbage -d sudo nix-collect-garbage -d --delete-older-than 1d
nix-store --optimize -vv

24
flake.lock generated
View File

@ -8,11 +8,11 @@
}, },
"locked": { "locked": {
"dir": "pkgs/firefox-addons", "dir": "pkgs/firefox-addons",
"lastModified": 1750651402, "lastModified": 1754138575,
"narHash": "sha256-mT97WT4FlJyvfWp7rso3tUZca0qKU46czyi/HBJHG4w=", "narHash": "sha256-6foT7Sflve4XuLnBKkgN9b9IP4FvdoBA2XQ2IyXmbog=",
"owner": "rycee", "owner": "rycee",
"repo": "nur-expressions", "repo": "nur-expressions",
"rev": "13fa5e2e89062281dee88508f97e93360bfe2e2d", "rev": "27c945a6450d42c62f7e41019d7931b426bb786f",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
@ -29,11 +29,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1750690749, "lastModified": 1754085240,
"narHash": "sha256-x6fRPeqdgDKVTCyvbp4J8Q5UQ3DV3oWYSoyM444N8cY=", "narHash": "sha256-kVHCrTWEe8B1thAhFag1bk4QPY0ZP45V9vPbrwPHoNo=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "05b8c9506452349d8be854ac46e5a7630fa7917d", "rev": "e102920c1becb114645c6f92fe14edc0b05cc229",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -44,11 +44,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1750431636, "lastModified": 1753122741,
"narHash": "sha256-vnzzBDbCGvInmfn2ijC4HsIY/3W1CWbwS/YQoFgdgPg=", "narHash": "sha256-nFxE8lk9JvGelxClCmwuJYftbHqwnc01dRN4DVLUroM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "1552a9f4513f3f0ceedcf90320e48d3d47165712", "rev": "cc66fddc6cb04ab479a1bb062f4d4da27c936a22",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -60,11 +60,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1750506804, "lastModified": 1753939845,
"narHash": "sha256-VLFNc4egNjovYVxDGyBYTrvVCgDYgENp5bVi9fPTDYc=", "narHash": "sha256-K2ViRJfdVGE8tpJejs8Qpvvejks1+A4GQej/lBk5y7I=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "4206c4cb56751df534751b058295ea61357bbbaa", "rev": "94def634a20494ee057c76998843c015909d6311",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -76,7 +76,7 @@
homeConfigurations = { homeConfigurations = {
vbox = homeConfig { flakeName = "vbox"; }; vbox = homeConfig { flakeName = "vbox"; };
ft = homeConfig { flakeName = "ft"; username = "tomoron"; homeDir = "/nfs/homes/tomoron";}; ft = homeConfig { flakeName = "ft"; username = "tomoron"; homeDir = "/home/tomoron";};
laptop = homeConfig { flakeName = "laptop"; }; laptop = homeConfig { flakeName = "laptop"; };
desktop = homeConfig { flakeName = "desktop"; }; desktop = homeConfig { flakeName = "desktop"; };
server = homeConfig { flakeName = "server"; }; server = homeConfig { flakeName = "server"; };

View File

@ -20,7 +20,8 @@
"LIBVA_DRIVER_NAME,nvidia" "LIBVA_DRIVER_NAME,nvidia"
"__GLX_VENDOR_LIBRARY_NAME,nvidia" "__GLX_VENDOR_LIBRARY_NAME,nvidia"
]; ];
cursor.no_hardware_cursors = 1; cursor.no_hardware_cursors = true;
misc.vrr = 1;
}; };
mods.hyprland.autoSuspend = false; mods.hyprland.autoSuspend = false;

View File

@ -12,7 +12,7 @@
mods.x11.enable = true; mods.x11.enable = true;
programs.firefox.enable = false; programs.firefox.enable = false;
mods.sync.homeFolder = "/sgoinfre/goinfre/Perso/tomoron"; mods.sync.homeFolder = "/home/tomoron/sync";
mods.sync.defaultSynced = false; mods.sync.defaultSynced = false;
mods.sync.syncedAdditions = [ "42_desktop" "Downloads" ]; mods.sync.syncedAdditions = [ "42_desktop" "Downloads" ];
mods.sync.customHostName = "pc42"; mods.sync.customHostName = "pc42";

View File

@ -18,6 +18,7 @@
"CTRL_ALT, Q, killactive," "CTRL_ALT, Q, killactive,"
"SUPER_ALT, Q, exit," "SUPER_ALT, Q, exit,"
"$mainMod, S, togglefloating," "$mainMod, S, togglefloating,"
"$mainMod, I, pin,"
"$mainMod, D, exec, rofi -show drun -show-icons" "$mainMod, D, exec, rofi -show drun -show-icons"
"$mainMod, M, fullscreen, 1" "$mainMod, M, fullscreen, 1"
"$mainMod, F, fullscreen, 0" "$mainMod, F, fullscreen, 0"

View File

@ -6,7 +6,7 @@
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ # # By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2025/02/09 22:01:56 by tomoron #+# #+# # # Created: 2025/02/09 22:01:56 by tomoron #+# #+# #
# Updated: 2025/04/15 15:58:07 by tomoron ### ########.fr # # Updated: 2025/07/23 18:00:40 by tomoron ### ########.fr #
# # # #
# **************************************************************************** # # **************************************************************************** #
@ -14,22 +14,34 @@
{ {
home.packages = with pkgs;[ home.packages = with pkgs;[
lrzip
pigz
htop
gnumake
git
neofetch
clang
ninja
gdb
valgrind
wget
cmake
man-pages
stress
ffmpeg-full
ripgrep ripgrep
activate-linux activate-linux
unison unison
brightnessctl brightnessctl
playerctl playerctl
python3 python3
vlc vlc
nerd-fonts.iosevka
nix-index nix-index
yubikey-manager
yubico-pam
dunst dunst
yubikey-manager
bibata-cursors bibata-cursors
libcaca libcaca
nasm nasm
nerd-fonts.iosevka
]; ];
} }

View File

@ -2,6 +2,7 @@
{ config, lib, inputs, pkgs, ... }: { config, lib, inputs, pkgs, ... }:
{ {
boot.kernelParams = [ "nvidia-drm-modset=1" ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
cudatoolkit cudatoolkit
lm_sensors lm_sensors
@ -14,8 +15,8 @@
boot.kernelModules = [ "kvm-intel" "nvidia" ]; boot.kernelModules = [ "kvm-intel" "nvidia" ];
mods.displayManager.enable = true; mods.displayManager.enable = true;
hardware.nvidia = { hardware.nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.beta;
open = true; open = true;
prime.nvidiaBusId = "PCI:1:0:0"; prime.nvidiaBusId = "PCI:1:0:0";

View File

@ -13,13 +13,13 @@
services.getty.autologinUser = lib.mkForce "tom"; services.getty.autologinUser = lib.mkForce "tom";
services.getty.helpLine = lib.mkForce ""; services.getty.helpLine = lib.mkForce "";
programs.hyprland.enable = true; # programs.hyprland.enable = true;
home-manager.extraSpecialArgs = { inherit inputs; inherit pkgs; isOs = true;}; # home-manager.extraSpecialArgs = { inherit inputs; inherit pkgs; isOs = true;};
home-manager.users.tom = { # home-manager.users.tom = {
imports = [ # imports = [
../../homeConfigs/home.nix # ../../homeConfigs/home.nix
../../homeConfigs/hosts/iso.nix # ../../homeConfigs/hosts/iso.nix
]; # ];
}; # };
} }

View File

@ -5,13 +5,37 @@
boot.initrd.luks.devices.cryptroot.allowDiscards = true; boot.initrd.luks.devices.cryptroot.allowDiscards = true;
mods.displayManager.enable = true; mods.displayManager.enable = true;
mods.virtualbox.enable = false; mods.virtualManager.enable = false;
networking.firewall.enable = false; networking.firewall.enable = false;
networking.hostName = "patate-douce"; networking.hostName = "patate-douce";
networking.wireless.enable = true; networking.wireless.enable = true;
networking.networkmanager.enable = false; networking.networkmanager.enable = false;
specialisation.vfio_ready.configuration = {
boot.kernel.sysctl."vm.nr_hugepages" = 5120;
boot.extraModulePackages = with config.boot.kernelPackages; [ kvmfr ];
boot.kernelModules = [ "kvmfr" ];
boot.extraModprobeConfig = ''
options kvmfr static_size_mb=128
blacklist xpad
'';
virtualisation.libvirtd.qemu.verbatimConfig = ''
cgroup_device_acl = [
"/dev/kvmfr0", "/dev/null", "/dev/full", "/dev/zero",
"/dev/random", "/dev/urandom",
"/dev/ptmx", "/dev/kvm",
"/dev/rtc","/dev/hpet",
"/dev/input/by-id/[some_mouse_device]-event-mouse",
"/dev/input/by-id/[some_keyboard_device]-event-kbd"
]
'';
services.udev.extraRules = ''
SUBSYSTEM=="kvmfr", OWNER="tom", GROUP="kvm", MODE="0660"
'';
environment.systemPackages = with pkgs; [ looking-glass-client ];
};
programs.virt-manager.enable = true; programs.virt-manager.enable = true;
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
virtualisation.libvirtd.qemu.runAsRoot = true; virtualisation.libvirtd.qemu.runAsRoot = true;
@ -41,6 +65,22 @@
#power management #power management
powerManagement.enable = true; powerManagement.enable = true;
powerManagement.cpuFreqGovernor = "powersave"; powerManagement.cpuFreqGovernor = "powersave";
services.asusd = {
enable = true;
enableUserService = true;
};
services.supergfxd.enable = true;
services.supergfxd.settings = {
mode = "Integrated";
vfio_enable = true;
vfio_save = true;
always_reboot = false;
no_logind = true;
logout_timeout_s = 180;
hotplug_type = "None";
};
services.auto-cpufreq.enable = true; services.auto-cpufreq.enable = true;
services.auto-cpufreq.settings = { services.auto-cpufreq.settings = {
battery = { battery = {

View File

@ -12,6 +12,7 @@
networking.hostName = "server"; networking.hostName = "server";
services.openssh.enable = true; services.openssh.enable = true;
services.openssh.settings.PasswordAuthentication = false;
services.openssh.ports = [ 1880 ]; services.openssh.ports = [ 1880 ];
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];
@ -73,7 +74,7 @@
virtualisation.docker = { virtualisation.docker = {
liveRestore = false; liveRestore = false;
enableOnBoot = true; enableOnBoot = true;
package = inputs.pkgs-docker-2750.legacyPackages."x86_64-linux".docker; # package = inputs.pkgs-docker-2750.legacyPackages."x86_64-linux".docker;
# daemon.settings = { # daemon.settings = {
# runtimes.nvidia.path = "${pkgs.nvidia-docker}/bin/nvidia-container-runtime"; # runtimes.nvidia.path = "${pkgs.nvidia-docker}/bin/nvidia-container-runtime";
# exec-opts = ["native.cgroupdriver=cgroupfs"]; # exec-opts = ["native.cgroupdriver=cgroupfs"];
@ -87,6 +88,7 @@
hardware.nvidia-container-toolkit.enable = true; hardware.nvidia-container-toolkit.enable = true;
hardware.nvidia = { hardware.nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.beta;
open = true; open = true;
# prime.nvidiaBusId = "PCI:1:0:0"; # prime.nvidiaBusId = "PCI:1:0:0";

View File

@ -12,6 +12,9 @@
services.displayManager.ly.enable = true; services.displayManager.ly.enable = true;
services.displayManager.ly.settings = services.displayManager.ly.settings =
{ {
animation = "doom";
min_refresh_delta = 50;
bigclock = "en";
sleep_cmd = "systemctl sleep"; sleep_cmd = "systemctl sleep";
asterisk = "A"; asterisk = "A";
auth_fails= 3; auth_fails= 3;

View File

@ -1,14 +1,19 @@
{ config, lib, inputs, pkgs, ... }: { config, lib, inputs, pkgs, ... }:
{ {
options.mods.virtualbox.enable = lib.mkOption { options.mods.virtualManager.enable = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
default = true; default = true;
description = "enable virtualbox as host"; description = "enable virtual manager as host";
}; };
config = lib.mkIf config.mods.virtualbox.enable { config = lib.mkIf config.mods.virtualManager.enable {
virtualisation.virtualbox.host.enable = true; programs.virt-manager.enable = true;
users.users.tom.extraGroups = [ "vboxusers" ]; virtualisation.libvirtd.enable = true;
virtualisation.libvirtd.qemu.runAsRoot = true;
virtualisation.libvirtd.qemu.vhostUserPackages = [ pkgs.virtiofsd ];
virtualisation.spiceUSBRedirection.enable = true;
environment.systemPackages = with pkgs; [ spice-gtk ];
}; };
} }

View File

@ -2,31 +2,13 @@
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
lrzip
home-manager home-manager
vim vim
pciutils pciutils
pigz
htop
gnumake
git
neofetch
neovim
ntfs3g
clang
ninja
gdb
valgrind
wget
cmake
usbutils usbutils
man-pages ntfs3g
stress
cryptsetup cryptsetup
acpi acpi
dconf yubico-pam
ffmpeg-full
nv-codec-headers
]; ];
} }