11 Commits

Author SHA1 Message Date
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
9d132e5366 update flake and change some ly settings
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 12m12s
2025-06-26 14:47:45 +02:00
8248d4b969 update flake, switch to kvm instead of virtualbox, add lrzip package
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 9m44s
2025-06-09 17:04:50 +02:00
18df257130 update flake
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 11m54s
2025-05-20 16:04:54 +02:00
c9ffd8a567 nodejs_23 doesn't exist in nixpkgs unsable anymore
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 15m52s
2025-05-16 00:19:28 +02:00
637f7e0d78 update flake
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 22s
2025-05-16 00:14:36 +02:00
4ff3ab574f change wallpaper on all configs instead of just laptop
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 9m18s
2025-05-12 12:35:54 +02:00
633eea8877 enable display manager on desktop
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 13m10s
2025-05-06 22:47:47 +02:00
3b7c49041c add git autocorrect
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 12m49s
2025-05-01 21:38:53 +02:00
e8fac6e226 add allow discard to cryptroot 2025-04-29 15:56:22 +02:00
15 changed files with 60 additions and 40 deletions

View File

@ -1,7 +1,7 @@
HOST ?= $(file < /etc/nixosFlakeName)
THREADS ?= $(shell nproc)
FLAKE ?= .
MODE = switch
MODE = boot
FLAGS = --impure --cores $(THREADS) -j $(THREADS)

24
flake.lock generated
View File

@ -8,11 +8,11 @@
},
"locked": {
"dir": "pkgs/firefox-addons",
"lastModified": 1745419403,
"narHash": "sha256-pQOOn4UntLSwnL3xZ1JAr3IDhXpL+kTS7Zw8ll59K9Q=",
"lastModified": 1750651402,
"narHash": "sha256-mT97WT4FlJyvfWp7rso3tUZca0qKU46czyi/HBJHG4w=",
"owner": "rycee",
"repo": "nur-expressions",
"rev": "346899a4b3b651ab447c61e0c8e9d8a1454cda72",
"rev": "13fa5e2e89062281dee88508f97e93360bfe2e2d",
"type": "gitlab"
},
"original": {
@ -29,11 +29,11 @@
]
},
"locked": {
"lastModified": 1745627989,
"narHash": "sha256-mOCdFmxocBPae7wg7RYWOtJzWMJk34u9493ItY0dVqw=",
"lastModified": 1750690749,
"narHash": "sha256-x6fRPeqdgDKVTCyvbp4J8Q5UQ3DV3oWYSoyM444N8cY=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "4d2d32231797bfa7213ae5e8ac89d25f8caaae82",
"rev": "05b8c9506452349d8be854ac46e5a7630fa7917d",
"type": "github"
},
"original": {
@ -44,11 +44,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1745503349,
"narHash": "sha256-bUGjvaPVsOfQeTz9/rLTNLDyqbzhl0CQtJJlhFPhIYw=",
"lastModified": 1750431636,
"narHash": "sha256-vnzzBDbCGvInmfn2ijC4HsIY/3W1CWbwS/YQoFgdgPg=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "f7bee55a5e551bd8e7b5b82c9bc559bc50d868d1",
"rev": "1552a9f4513f3f0ceedcf90320e48d3d47165712",
"type": "github"
},
"original": {
@ -60,11 +60,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1745526057,
"narHash": "sha256-ITSpPDwvLBZBnPRS2bUcHY3gZSwis/uTe255QgMtTLA=",
"lastModified": 1750506804,
"narHash": "sha256-VLFNc4egNjovYVxDGyBYTrvVCgDYgENp5bVi9fPTDYc=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "f771eb401a46846c1aebd20552521b233dd7e18b",
"rev": "4206c4cb56751df534751b058295ea61357bbbaa",
"type": "github"
},
"original": {

View File

@ -6,7 +6,7 @@
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/10/17 18:15:38 by tomoron #+# #+# #
# Updated: 2025/04/25 00:08:54 by tomoron ### ########.fr #
# Updated: 2025/05/12 12:35:00 by tomoron ### ########.fr #
# #
# **************************************************************************** #
@ -66,7 +66,7 @@
home.file = { #should be able to make most of these in nix configs
".config/wallpaper.png".source = lib.mkDefault utils/wallpaper.png;
".config/wallpaper.png".source = lib.mkDefault utils/wallpaper_test.png;
".config/pc.jpg".source = lib.mkDefault utils/pc.jpg;
".config/rofi/config.rasi".text = "@theme \"rounded-nord-dark.rasi\"";

View File

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

View File

@ -1,7 +1,6 @@
{ lib, pkgs, ... }:
{
home.file.".config/wallpaper.png".source = ../utils/wallpaper_test.png;
programs.waybar.settings.mainBar = {
modules-right = lib.mkBefore ["custom/fans" "custom/dgpu"];
"custom/dgpu" = {

View File

@ -18,6 +18,7 @@
pull.rebase = true;
push.autoSetupRemote = true;
rerere.enabled = true;
help.autocorrect = 1;
};
aliases = {
fuck = "!f() { git reset --hard \"@{upstream}\" && git restore . && git clean -f .; };f";

View File

@ -18,7 +18,7 @@
home.packages = with pkgs; [
clang-tools
nixd
nodejs_23
nodejs_24
glsl_analyzer
];

View File

@ -6,7 +6,7 @@
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2025/02/10 00:21:11 by tomoron #+# #+# #
# Updated: 2025/02/12 09:36:07 by tomoron ### ########.fr #
# Updated: 2025/06/18 15:49:03 by tomoron ### ########.fr #
# #
# **************************************************************************** #
{lib, config, ... }:
@ -34,7 +34,7 @@
setxkbmap fr us&
nitrogen --restore &
pgrep activate-linux >/dev/null || (sleep 2;activate-linux -d)&
''; # this is messy but i don't care, x11 isn't my default now.
''; # this is messy but i don't care, x11 is just a fallback now
};
}

1
homeConfigs/result Symbolic link
View File

@ -0,0 +1 @@
/nix/store/ffxpgsp8bpdfab8kd0vnlpappy5s65ag-home-manager-generation

View File

@ -2,12 +2,7 @@
{ config, lib, inputs, pkgs, ... }:
{
imports = [
../modules/game.nix
../modules/nvidia.nix
../modules/vboxHost.nix
];
boot.kernelParams = [ "nvidia-drm-modset=1" ];
environment.systemPackages = with pkgs; [
cudatoolkit
lm_sensors
@ -18,7 +13,7 @@
hardware.cpu.intel.updateMicrocode = true;
boot.kernelModules = [ "kvm-intel" "nvidia" ];
mods.displayManager.enable = true;
hardware.nvidia = {
open = true;

View File

@ -1,12 +1,11 @@
{ pkgs, ... }:
{ config, pkgs, ... }:
{
boot.kernelParams = [ "kvm.enable_virt_at_load=0" ];
boot.initrd.luks.devices.cryptroot.device = "/dev/disk/by-uuid/a4593b01-069d-4a5d-a550-74a762b89b3f";
boot.initrd.luks.devices.cryptroot.allowDiscards = true;
services.displayManager.enable = true;
services.displayManager.ly.enable = true;
mods.displayManager.enable = true;
mods.virtualmanager.enable = false;
networking.firewall.enable = false;
networking.hostName = "patate-douce";
@ -20,7 +19,6 @@
environment.systemPackages = with pkgs; [
acpi
tlp
looking-glass-client
fprintd
];

View File

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

View File

@ -0,0 +1,21 @@
{config, lib, ... }:
{
options.mods.displayManager.enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "enable the display manager";
};
config = lib.mkIf config.mods.displayManager.enable {
services.displayManager.enable = true;
services.displayManager.ly.enable = true;
services.displayManager.ly.settings =
{
sleep_cmd = "systemctl sleep";
asterisk = "A";
auth_fails= 3;
};
};
}

View File

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

View File

@ -2,6 +2,7 @@
{
environment.systemPackages = with pkgs; [
lrzip
home-manager
vim
pciutils