refactor os configurations
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 2m10s
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 2m10s
This commit is contained in:
29
osConfigs/global/boot.nix
Normal file
29
osConfigs/global/boot.nix
Normal file
@ -0,0 +1,29 @@
|
||||
# **************************************************************************** #
|
||||
# #
|
||||
# ::: :::::::: #
|
||||
# boot.nix :+: :+: :+: #
|
||||
# +:+ +:+ +:+ #
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/09/05 23:37:58 by tomoron #+# #+# #
|
||||
# Updated: 2025/09/06 00:56:38 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
{lib, pkgs, ... } :
|
||||
|
||||
{
|
||||
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
|
||||
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
systemd-boot.memtest86.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
timeout = 1;
|
||||
};
|
||||
|
||||
services.journald.extraConfig = ''
|
||||
SystemMaxUse=100M
|
||||
SystemMaxFileSize=50M
|
||||
'';
|
||||
}
|
18
osConfigs/global/nix.nix
Normal file
18
osConfigs/global/nix.nix
Normal file
@ -0,0 +1,18 @@
|
||||
# **************************************************************************** #
|
||||
# #
|
||||
# ::: :::::::: #
|
||||
# nix.nix :+: :+: :+: #
|
||||
# +:+ +:+ +:+ #
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/09/05 23:42:17 by tomoron #+# #+# #
|
||||
# Updated: 2025/09/05 23:42:20 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
}
|
35
osConfigs/global/other.nix
Normal file
35
osConfigs/global/other.nix
Normal file
@ -0,0 +1,35 @@
|
||||
# **************************************************************************** #
|
||||
# #
|
||||
# ::: :::::::: #
|
||||
# other.nix :+: :+: :+: #
|
||||
# +:+ +:+ +:+ #
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/02/09 01:43:46 by tomoron #+# #+# #
|
||||
# Updated: 2025/09/06 00:51:46 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
networking.hostName = lib.mkDefault "unnamed-nixos";
|
||||
networking.networkmanager.enable = lib.mkDefault true;
|
||||
|
||||
programs.fuse.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Paris";
|
||||
|
||||
services.xserver.enable = lib.mkDefault true;
|
||||
services.xserver.displayManager.startx.enable = true;
|
||||
|
||||
programs.hyprland.enable = lib.mkDefault true;
|
||||
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
hardware.logitech.wireless.enable = true;
|
||||
hardware.logitech.wireless.enableGraphical = true;
|
||||
}
|
25
osConfigs/global/packages.nix
Normal file
25
osConfigs/global/packages.nix
Normal file
@ -0,0 +1,25 @@
|
||||
# **************************************************************************** #
|
||||
# #
|
||||
# ::: :::::::: #
|
||||
# packages.nix :+: :+: :+: #
|
||||
# +:+ +:+ +:+ #
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/09/06 00:57:21 by tomoron #+# #+# #
|
||||
# Updated: 2025/09/06 00:57:26 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
home-manager
|
||||
vim
|
||||
pciutils
|
||||
usbutils
|
||||
ntfs3g
|
||||
cryptsetup
|
||||
acpi
|
||||
];
|
||||
}
|
28
osConfigs/global/user.nix
Normal file
28
osConfigs/global/user.nix
Normal file
@ -0,0 +1,28 @@
|
||||
# **************************************************************************** #
|
||||
# #
|
||||
# ::: :::::::: #
|
||||
# user.nix :+: :+: :+: #
|
||||
# +:+ +:+ +:+ #
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/09/05 23:42:18 by tomoron #+# #+# #
|
||||
# Updated: 2025/09/06 00:57:32 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
users.users.tom = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"wheel" # can sudo
|
||||
"docker" # can use docker
|
||||
"libvirtd" # can use libvirtd
|
||||
"dialout" # can use serial devices
|
||||
"wireshark" # can use wireshask
|
||||
];
|
||||
|
||||
initialPassword = "password";
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user