Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
f14bc8c082 | |||
c766b08973 | |||
27ca179697 | |||
66b67b9b03 | |||
116e81d080 | |||
e64579832a | |||
11e350751a | |||
d86380c995 | |||
79ad288bcc | |||
5b3d74179b | |||
ac2d3acf0e |
5
Makefile
5
Makefile
@ -1,7 +1,7 @@
|
||||
HOST ?= $(file < /etc/nixosFlakeName)
|
||||
THREADS ?= $(shell nproc)
|
||||
FLAKE ?= .
|
||||
MODE = boot
|
||||
MODE ?= boot
|
||||
|
||||
FLAGS = --impure --cores $(THREADS) -j $(THREADS)
|
||||
|
||||
@ -22,4 +22,5 @@ iso :
|
||||
rm -rf result
|
||||
|
||||
cleanup :
|
||||
sudo nix-collect-garbage -d
|
||||
sudo nix-collect-garbage -d --delete-older-than 1d
|
||||
nix-store --optimize -vv
|
||||
|
24
flake.lock
generated
24
flake.lock
generated
@ -8,11 +8,11 @@
|
||||
},
|
||||
"locked": {
|
||||
"dir": "pkgs/firefox-addons",
|
||||
"lastModified": 1750651402,
|
||||
"narHash": "sha256-mT97WT4FlJyvfWp7rso3tUZca0qKU46czyi/HBJHG4w=",
|
||||
"lastModified": 1753070653,
|
||||
"narHash": "sha256-vp4Svdpb90eEYkUKxjVROgcJ92u/2sVF8hnpsiKJEhI=",
|
||||
"owner": "rycee",
|
||||
"repo": "nur-expressions",
|
||||
"rev": "13fa5e2e89062281dee88508f97e93360bfe2e2d",
|
||||
"rev": "87f5912350a5bac28eacc1b89bb1767ca1a77e7e",
|
||||
"type": "gitlab"
|
||||
},
|
||||
"original": {
|
||||
@ -29,11 +29,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1750690749,
|
||||
"narHash": "sha256-x6fRPeqdgDKVTCyvbp4J8Q5UQ3DV3oWYSoyM444N8cY=",
|
||||
"lastModified": 1753056897,
|
||||
"narHash": "sha256-AVVMBFcuOXqIgmShvRv9TED3fkiZhQ0ZvlhsPoFfkNE=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "05b8c9506452349d8be854ac46e5a7630fa7917d",
|
||||
"rev": "13a83d1b6545b7f0e8f7689bad62e7a3b1d63771",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -44,11 +44,11 @@
|
||||
},
|
||||
"nixos-hardware": {
|
||||
"locked": {
|
||||
"lastModified": 1750431636,
|
||||
"narHash": "sha256-vnzzBDbCGvInmfn2ijC4HsIY/3W1CWbwS/YQoFgdgPg=",
|
||||
"lastModified": 1753122741,
|
||||
"narHash": "sha256-nFxE8lk9JvGelxClCmwuJYftbHqwnc01dRN4DVLUroM=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixos-hardware",
|
||||
"rev": "1552a9f4513f3f0ceedcf90320e48d3d47165712",
|
||||
"rev": "cc66fddc6cb04ab479a1bb062f4d4da27c936a22",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -60,11 +60,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1750506804,
|
||||
"narHash": "sha256-VLFNc4egNjovYVxDGyBYTrvVCgDYgENp5bVi9fPTDYc=",
|
||||
"lastModified": 1752950548,
|
||||
"narHash": "sha256-NS6BLD0lxOrnCiEOcvQCDVPXafX1/ek1dfJHX1nUIzc=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "4206c4cb56751df534751b058295ea61357bbbaa",
|
||||
"rev": "c87b95e25065c028d31a94f06a62927d18763fdf",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -20,7 +20,8 @@
|
||||
"LIBVA_DRIVER_NAME,nvidia"
|
||||
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
|
||||
];
|
||||
cursor.no_hardware_cursors = 1;
|
||||
cursor.no_hardware_cursors = true;
|
||||
misc.vrr = 1;
|
||||
};
|
||||
|
||||
mods.hyprland.autoSuspend = false;
|
||||
|
@ -18,6 +18,7 @@
|
||||
"CTRL_ALT, Q, killactive,"
|
||||
"SUPER_ALT, Q, exit,"
|
||||
"$mainMod, S, togglefloating,"
|
||||
"$mainMod, I, pin,"
|
||||
"$mainMod, D, exec, rofi -show drun -show-icons"
|
||||
"$mainMod, M, fullscreen, 1"
|
||||
"$mainMod, F, fullscreen, 0"
|
||||
|
@ -6,7 +6,7 @@
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/02/09 22:01:56 by tomoron #+# #+# #
|
||||
# Updated: 2025/04/15 15:58:07 by tomoron ### ########.fr #
|
||||
# Updated: 2025/07/21 23:00:03 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@ -14,22 +14,33 @@
|
||||
|
||||
{
|
||||
home.packages = with pkgs;[
|
||||
ripgrep
|
||||
|
||||
activate-linux
|
||||
unison
|
||||
brightnessctl
|
||||
playerctl
|
||||
python3
|
||||
vlc
|
||||
nerd-fonts.iosevka
|
||||
|
||||
nix-index
|
||||
yubikey-manager
|
||||
yubico-pam
|
||||
dunst
|
||||
bibata-cursors
|
||||
libcaca
|
||||
nasm
|
||||
lrzip
|
||||
pigz
|
||||
htop
|
||||
gnumake
|
||||
git
|
||||
neofetch
|
||||
clang
|
||||
ninja
|
||||
gdb
|
||||
valgrind
|
||||
wget
|
||||
cmake
|
||||
man-pages
|
||||
stress
|
||||
ffmpeg-full
|
||||
ripgrep
|
||||
activate-linux
|
||||
unison
|
||||
brightnessctl
|
||||
playerctl
|
||||
python3
|
||||
vlc
|
||||
nix-index
|
||||
dunst
|
||||
yubikey-manager
|
||||
bibata-cursors
|
||||
libcaca
|
||||
nasm
|
||||
];
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
{ config, lib, inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
boot.kernelParams = [ "nvidia-drm-modset=1" ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
cudatoolkit
|
||||
lm_sensors
|
||||
@ -14,8 +15,8 @@
|
||||
boot.kernelModules = [ "kvm-intel" "nvidia" ];
|
||||
mods.displayManager.enable = true;
|
||||
|
||||
|
||||
hardware.nvidia = {
|
||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||
open = true;
|
||||
|
||||
prime.nvidiaBusId = "PCI:1:0:0";
|
||||
|
@ -13,13 +13,13 @@
|
||||
|
||||
services.getty.autologinUser = lib.mkForce "tom";
|
||||
services.getty.helpLine = lib.mkForce "";
|
||||
programs.hyprland.enable = true;
|
||||
# programs.hyprland.enable = true;
|
||||
|
||||
home-manager.extraSpecialArgs = { inherit inputs; inherit pkgs; isOs = true;};
|
||||
home-manager.users.tom = {
|
||||
imports = [
|
||||
../../homeConfigs/home.nix
|
||||
../../homeConfigs/hosts/iso.nix
|
||||
];
|
||||
};
|
||||
# home-manager.extraSpecialArgs = { inherit inputs; inherit pkgs; isOs = true;};
|
||||
# home-manager.users.tom = {
|
||||
# imports = [
|
||||
# ../../homeConfigs/home.nix
|
||||
# ../../homeConfigs/hosts/iso.nix
|
||||
# ];
|
||||
# };
|
||||
}
|
||||
|
@ -5,13 +5,37 @@
|
||||
boot.initrd.luks.devices.cryptroot.allowDiscards = true;
|
||||
|
||||
mods.displayManager.enable = true;
|
||||
mods.virtualbox.enable = false;
|
||||
mods.virtualManager.enable = false;
|
||||
networking.firewall.enable = false;
|
||||
|
||||
networking.hostName = "patate-douce";
|
||||
networking.wireless.enable = true;
|
||||
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;
|
||||
virtualisation.libvirtd.enable = true;
|
||||
virtualisation.libvirtd.qemu.runAsRoot = true;
|
||||
|
@ -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";
|
||||
|
@ -1,14 +1,19 @@
|
||||
{ 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 ];
|
||||
virtualisation.spiceUSBRedirection.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [ spice-gtk ];
|
||||
};
|
||||
}
|
||||
|
@ -2,31 +2,14 @@
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
lrzip
|
||||
home-manager
|
||||
vim
|
||||
pciutils
|
||||
pigz
|
||||
htop
|
||||
gnumake
|
||||
git
|
||||
neofetch
|
||||
neovim
|
||||
ntfs3g
|
||||
clang
|
||||
ninja
|
||||
gdb
|
||||
valgrind
|
||||
wget
|
||||
cmake
|
||||
usbutils
|
||||
man-pages
|
||||
stress
|
||||
cryptsetup
|
||||
acpi
|
||||
dconf
|
||||
|
||||
ffmpeg-full
|
||||
nv-codec-headers
|
||||
home-manager
|
||||
vim
|
||||
pciutils
|
||||
usbutils
|
||||
ntfs3g
|
||||
cryptsetup
|
||||
acpi
|
||||
nerd-fonts.iosevka
|
||||
yubico-pam
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user