continue refactor, home modules are actual modules and remove some useless files

This commit is contained in:
2025-02-10 05:28:31 +01:00
parent 5363e26357
commit acc21888b9
133 changed files with 1541 additions and 1563 deletions

View File

@ -6,20 +6,23 @@
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2025/02/09 01:43:46 by tomoron #+# #+# #
# Updated: 2025/02/09 03:04:10 by tomoron ### ########.fr #
# Updated: 2025/02/09 18:28:27 by tomoron ### ########.fr #
# #
# **************************************************************************** #
{ lib, pkgs, flakeName, ... }:
{
imports = [
./hardware-configuration.nix
./modules/yubikey.nix
imports = lib.concatLists [[
./hardware-configuration.nix
./packages.nix
]
(lib.fileset.toList ./modules)
];
nix.settings.experimental-features = ["nix-command" "flakes"];
nixpkgs.config.allowUnfree = true;
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
boot.loader = {
@ -33,7 +36,7 @@
time.timeZone = "Europe/Paris";
services.xserver.enable = true;
services.xserver.enable = lib.mkDefault true;
services.xserver.displayManager.startx.enable = true;
services.pipewire = {
@ -50,32 +53,8 @@
virtualisation.docker.enable = true;
virtualisation.docker.enableOnBoot = lib.mkDefault false;
environment.systemPackages = with pkgs; [
home-manager
killall
vim
pciutils
pigz
htop
gnumake
git
neofetch
ntfs3g
clang
ninja
gdb
valgrind
wget
cmake
usbutils
man-pages
stress
ffmpeg
];
programs.hyprland.enable = lib.mkDefault true;
system.stateVersion = "24.05";
environment.etc.nixosFlakeName.text = "${flakeName}";
programs.hyprland.enable = true;
}

View File

@ -1,17 +1,7 @@
{ config, lib, inputs, pkgs, ... }:
{ pkgs, ... }:
{
imports = [
../modules/game.nix
../modules/nvidia.nix
../modules/vboxHost.nix
];
boot.kernelParams = [ "kvm.enable_virt_at_load=0" ];
# systemd.tmpfiles.rules = [
# "f /dev/shm/looking-glass 0660 tom libvirtd -"
# ];
# virtualisation.libvirtd.qemu.vhostUserPackages = with pkgs; [ virtiofsd ];
networking.hostName = "patate-douce";
networking.wireless.enable = true;
@ -37,7 +27,6 @@
#power management
powerManagement.enable = true;
# powerManagement.powertop.enable = true;
powerManagement.cpuFreqGovernor = "powersave";
services.auto-cpufreq.enable = true;
services.auto-cpufreq.settings = {
@ -53,8 +42,6 @@
services.upower.enable = true;
services.udev.packages = [ pkgs.yubikey-personalization ];
# boot.plymouth = {
# enable = true;

26
osConfigs/packages.nix Normal file
View File

@ -0,0 +1,26 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
home-manager
killall
vim
pciutils
pigz
htop
gnumake
git
neofetch
ntfs3g
clang
ninja
gdb
valgrind
wget
cmake
usbutils
man-pages
stress
ffmpeg
];
}