Compare commits
28 Commits
Author | SHA1 | Date | |
---|---|---|---|
7aef691ea2 | |||
63d2538734 | |||
84bc2fd737 | |||
f362997567 | |||
ea4489732b | |||
6c35b8fb99 | |||
76702ea878 | |||
b261195413 | |||
6651ba444e | |||
093ac9c011 | |||
d6ca7ba793 | |||
17e3fc6a9e | |||
0da22649eb | |||
f14bc8c082 | |||
c766b08973 | |||
27ca179697 | |||
66b67b9b03 | |||
116e81d080 | |||
e64579832a | |||
11e350751a | |||
d86380c995 | |||
79ad288bcc | |||
5b3d74179b | |||
ac2d3acf0e | |||
9d132e5366 | |||
8248d4b969 | |||
18df257130 | |||
34e087b815 |
5
Makefile
5
Makefile
@ -1,7 +1,7 @@
|
|||||||
HOST ?= $(file < /etc/nixosFlakeName)
|
HOST ?= $(file < /etc/nixosFlakeName)
|
||||||
THREADS ?= $(shell nproc)
|
THREADS ?= $(shell nproc)
|
||||||
FLAKE ?= .
|
FLAKE ?= .
|
||||||
MODE = switch
|
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
24
flake.lock
generated
@ -8,11 +8,11 @@
|
|||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "pkgs/firefox-addons",
|
"dir": "pkgs/firefox-addons",
|
||||||
"lastModified": 1747281799,
|
"lastModified": 1756353808,
|
||||||
"narHash": "sha256-TB7CZflDLI8H0np8AsSmyF21v1smbhZ1u3c7RR4S78M=",
|
"narHash": "sha256-JkCqOE0kjWbT7GnXgngL+baLF/OeeVfPCh71HXfRh6g=",
|
||||||
"owner": "rycee",
|
"owner": "rycee",
|
||||||
"repo": "nur-expressions",
|
"repo": "nur-expressions",
|
||||||
"rev": "49f3c5693b7d83dc5b6d1fb483cfc670bc397f6c",
|
"rev": "e47914363ccacc95994b567966d7fa1e25dd85ec",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -29,11 +29,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1747340209,
|
"lastModified": 1756261190,
|
||||||
"narHash": "sha256-tUiXrwlJoG3dzJ+fSwv1S3VPU5ODSPZJHoBmlu4t344=",
|
"narHash": "sha256-eiy0klFK5EVJLNilutR7grsZN/7Itj9DyD75eyOf83k=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "098e365dd83311cc8236f83ea6be42abb49a6c76",
|
"rev": "77f348da3176dc68b20a73dab94852a417daf361",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -44,11 +44,11 @@
|
|||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1747129300,
|
"lastModified": 1756245047,
|
||||||
"narHash": "sha256-L3clA5YGeYCF47ghsI7Tcex+DnaaN/BbQ4dR2wzoiKg=",
|
"narHash": "sha256-9bHzrVbjAudbO8q4vYFBWlEkDam31fsz0J7GB8k4AsI=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "e81fd167b33121269149c57806599045fd33eeed",
|
"rev": "a65b650d6981e23edd1afa1f01eb942f19cdcbb7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -60,11 +60,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1747179050,
|
"lastModified": 1756266583,
|
||||||
"narHash": "sha256-qhFMmDkeJX9KJwr5H32f1r7Prs7XbQWtO0h3V0a0rFY=",
|
"narHash": "sha256-cr748nSmpfvnhqSXPiCfUPxRz2FJnvf/RjJGvFfaCsM=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "adaa24fbf46737f3f1b5497bf64bae750f82942e",
|
"rev": "8a6d5427d99ec71c64f0b93d45778c889005d9c2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -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"; };
|
||||||
|
@ -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;
|
||||||
|
@ -12,7 +12,9 @@
|
|||||||
mods.x11.enable = true;
|
mods.x11.enable = true;
|
||||||
programs.firefox.enable = false;
|
programs.firefox.enable = false;
|
||||||
|
|
||||||
mods.sync.homeFolder = "/sgoinfre/goinfre/Perso/tomoron";
|
mods.polybar.fspath = "/home/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";
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
stremio
|
stremio
|
||||||
blender
|
blender
|
||||||
wireshark
|
wireshark
|
||||||
|
localsend
|
||||||
];
|
];
|
||||||
|
|
||||||
#mods.sync.syncedAdditions = ["VirtualBox VMs"];
|
#mods.sync.syncedAdditions = ["VirtualBox VMs"];
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
mods.game.enable = false;
|
||||||
|
mods.hyprland.enable = false;
|
||||||
|
mods.x11.enable = true;
|
||||||
|
programs.firefox.enable = false;
|
||||||
|
|
||||||
services.picom = {
|
services.picom = {
|
||||||
backend = "xrender";
|
backend = "xrender";
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -93,7 +93,7 @@
|
|||||||
#install stdheader 42
|
#install stdheader 42
|
||||||
".config/nvim/plugin/stdheader.vim".source = "${builtins.fetchGit {
|
".config/nvim/plugin/stdheader.vim".source = "${builtins.fetchGit {
|
||||||
url = "https://github.com/42Paris/42header";
|
url = "https://github.com/42Paris/42header";
|
||||||
rev = "71e6a4df6d72ae87a080282bf45bb993da6146b2";
|
rev = "e6e6b191871545e0d43f1aad817070bc806b8fa7";
|
||||||
ref = "master";
|
ref = "master";
|
||||||
}}/plugin/stdheader.vim";
|
}}/plugin/stdheader.vim";
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/02/10 00:21:11 by tomoron #+# #+# #
|
# 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, ... }:
|
{lib, config, ... }:
|
||||||
@ -34,7 +34,7 @@
|
|||||||
setxkbmap fr us&
|
setxkbmap fr us&
|
||||||
nitrogen --restore &
|
nitrogen --restore &
|
||||||
pgrep activate-linux >/dev/null || (sleep 2;activate-linux -d)&
|
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
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -6,13 +6,19 @@
|
|||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/02/10 02:51:32 by tomoron #+# #+# #
|
# Created: 2025/02/10 02:51:32 by tomoron #+# #+# #
|
||||||
# Updated: 2025/02/10 17:28:27 by tomoron ### ########.fr #
|
# Updated: 2025/08/07 15:30:07 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
options.mods.polybar.fspath = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "/";
|
||||||
|
description = "set the filesystem path for the remaining disk space";
|
||||||
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.mods.x11.enable {
|
config = lib.mkIf config.mods.x11.enable {
|
||||||
services.polybar.enable = true;
|
services.polybar.enable = true;
|
||||||
services.polybar.script = "pgrep polybar >/dev/null || polybar -q main -c \"$HOME/.config/polybar/config.ini\"&";
|
services.polybar.script = "pgrep polybar >/dev/null || polybar -q main -c \"$HOME/.config/polybar/config.ini\"&";
|
||||||
@ -44,8 +50,8 @@
|
|||||||
|
|
||||||
"module/filesystem" = {
|
"module/filesystem" = {
|
||||||
type = "internal/fs";
|
type = "internal/fs";
|
||||||
mount-0 = "/";
|
mount-0 = config.mods.polybar.fspath;
|
||||||
interval = 30;
|
interval = 10;
|
||||||
fixed-values = true;
|
fixed-values = true;
|
||||||
format-mounted = "<label-mounted>";
|
format-mounted = "<label-mounted>";
|
||||||
format-mounted-prefix = "";
|
format-mounted-prefix = "";
|
||||||
|
@ -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/08/04 15:38:21 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@ -14,22 +14,35 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs;[
|
home.packages = with pkgs;[
|
||||||
ripgrep
|
lrzip
|
||||||
|
pigz
|
||||||
activate-linux
|
htop
|
||||||
unison
|
gnumake
|
||||||
brightnessctl
|
git
|
||||||
playerctl
|
neofetch
|
||||||
python3
|
clang
|
||||||
vlc
|
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
|
||||||
nerd-fonts.iosevka
|
nerd-fonts.iosevka
|
||||||
|
compiledb
|
||||||
nix-index
|
|
||||||
yubikey-manager
|
|
||||||
yubico-pam
|
|
||||||
dunst
|
|
||||||
bibata-cursors
|
|
||||||
libcaca
|
|
||||||
nasm
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/02/09 01:43:46 by tomoron #+# #+# #
|
# Created: 2025/02/09 01:43:46 by tomoron #+# #+# #
|
||||||
# Updated: 2025/04/23 20:31:46 by tomoron ### ########.fr #
|
# Updated: 2025/08/07 17:46:37 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@ -46,7 +46,13 @@
|
|||||||
|
|
||||||
users.users.tom = {
|
users.users.tom = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "docker" "libvirtd" "dialout" "wireshark"];
|
extraGroups = [
|
||||||
|
"wheel" # can sudo
|
||||||
|
"docker" # can use docker
|
||||||
|
"libvirtd" # can use libvirtd
|
||||||
|
"dialout" # can use serial devices
|
||||||
|
"wireshark" # can use wireshask
|
||||||
|
];
|
||||||
initialPassword = "password";
|
initialPassword = "password";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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";
|
||||||
|
@ -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
|
||||||
];
|
# ];
|
||||||
};
|
# };
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,46 @@
|
|||||||
{ 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.device = "/dev/disk/by-uuid/a4593b01-069d-4a5d-a550-74a762b89b3f";
|
||||||
boot.initrd.luks.devices.cryptroot.allowDiscards = true;
|
boot.initrd.luks.devices.cryptroot.allowDiscards = true;
|
||||||
|
|
||||||
mods.displayManager.enable = true;
|
mods.displayManager.enable = true;
|
||||||
|
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;
|
||||||
|
virtualisation.libvirtd.enable = true;
|
||||||
|
virtualisation.libvirtd.qemu.runAsRoot = true;
|
||||||
|
virtualisation.libvirtd.qemu.vhostUserPackages = [ pkgs.virtiofsd ];
|
||||||
|
|
||||||
networking.dhcpcd.enable = false;
|
networking.dhcpcd.enable = false;
|
||||||
systemd.network.enable = true;
|
systemd.network.enable = true;
|
||||||
networking.useNetworkd = true;
|
networking.useNetworkd = true;
|
||||||
@ -20,7 +48,6 @@
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
acpi
|
acpi
|
||||||
tlp
|
tlp
|
||||||
looking-glass-client
|
|
||||||
fprintd
|
fprintd
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -38,17 +65,22 @@
|
|||||||
#power management
|
#power management
|
||||||
powerManagement.enable = true;
|
powerManagement.enable = true;
|
||||||
powerManagement.cpuFreqGovernor = "powersave";
|
powerManagement.cpuFreqGovernor = "powersave";
|
||||||
services.auto-cpufreq.enable = true;
|
|
||||||
services.auto-cpufreq.settings = {
|
services.asusd = {
|
||||||
battery = {
|
enable = true;
|
||||||
governor = "powersave";
|
enableUserService = true;
|
||||||
turbo = "never";
|
|
||||||
};
|
|
||||||
charger = {
|
|
||||||
governor = "performance";
|
|
||||||
turbo = "auto";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
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.upower.enable = true;
|
services.upower.enable = true;
|
||||||
|
|
||||||
services.udev.packages = [ pkgs.yubikey-personalization ];
|
services.udev.packages = [ pkgs.yubikey-personalization ];
|
||||||
@ -56,6 +88,11 @@
|
|||||||
programs.wireshark.enable = true;
|
programs.wireshark.enable = true;
|
||||||
programs.wireshark.usbmon.enable = true;
|
programs.wireshark.usbmon.enable = true;
|
||||||
|
|
||||||
|
programs.alvr.enable = true;
|
||||||
|
programs.alvr.openFirewall = true;
|
||||||
|
|
||||||
|
services.usbmuxd.enable = true;
|
||||||
|
|
||||||
# boot.plymouth = {
|
# boot.plymouth = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
# theme = "ycontre-glow";
|
# theme = "ycontre-glow";
|
||||||
|
@ -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";
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
{ config, lib, inputs, pkgs, ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
virtualisation.virtualbox.guest.enable = true;
|
virtualisation.virtualbox.guest.enable = true;
|
||||||
|
mods.nvidia-graphics.enable = false;
|
||||||
|
mods.virtualManager.enable = false;
|
||||||
|
mods.gayming.enable = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,6 +10,15 @@
|
|||||||
config = lib.mkIf config.mods.displayManager.enable {
|
config = lib.mkIf config.mods.displayManager.enable {
|
||||||
services.displayManager.enable = true;
|
services.displayManager.enable = true;
|
||||||
services.displayManager.ly.enable = true;
|
services.displayManager.ly.enable = true;
|
||||||
|
services.displayManager.ly.settings =
|
||||||
|
{
|
||||||
|
animation = "doom";
|
||||||
|
min_refresh_delta = 50;
|
||||||
|
bigclock = "en";
|
||||||
|
sleep_cmd = "systemctl sleep";
|
||||||
|
asterisk = "A";
|
||||||
|
auth_fails= 3;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -2,30 +2,13 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
home-manager
|
home-manager
|
||||||
vim
|
vim
|
||||||
pciutils
|
pciutils
|
||||||
pigz
|
usbutils
|
||||||
htop
|
ntfs3g
|
||||||
gnumake
|
cryptsetup
|
||||||
git
|
acpi
|
||||||
neofetch
|
yubico-pam
|
||||||
neovim
|
|
||||||
ntfs3g
|
|
||||||
clang
|
|
||||||
ninja
|
|
||||||
gdb
|
|
||||||
valgrind
|
|
||||||
wget
|
|
||||||
cmake
|
|
||||||
usbutils
|
|
||||||
man-pages
|
|
||||||
stress
|
|
||||||
cryptsetup
|
|
||||||
acpi
|
|
||||||
dconf
|
|
||||||
|
|
||||||
ffmpeg-full
|
|
||||||
nv-codec-headers
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user