init repos

This commit is contained in:
2026-06-19 05:47:33 +02:00
commit d5d15832f5
20 changed files with 534 additions and 0 deletions

14
modules/desktop/audio.nix Normal file
View File

@@ -0,0 +1,14 @@
{
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
services.blueman.enable = true;
}

10
modules/desktop/fonts.nix Normal file
View File

@@ -0,0 +1,10 @@
{ pkgs, ... }:
{
fonts.packages = with pkgs; [
noto-fonts
noto-fonts-color-emoji
font-awesome
nerd-fonts.jetbrains-mono
];
}

View File

@@ -0,0 +1,8 @@
{ pkgs, ... }:
{
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
};
}

View File

@@ -0,0 +1,30 @@
{ pkgs, ... }:
{
programs.hyprland.enable = true;
programs.thunar = {
enable = true;
plugins = with pkgs.xfce; [
thunar-archive-plugin
thunar-volman
];
};
services.gvfs.enable = true;
services.tumbler.enable = true;
xdg.portal = {
enable = true;
extraPortals = with pkgs; [ xdg-desktop-portal-hyprland ];
};
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
settings.Users.HideUsers = "waha";
theme = "elegant-sddm";
};
security.polkit.enable = true;
programs.dconf.enable = true;
}

View File

@@ -0,0 +1,31 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
alacritty
fuzzel
firefox
waybar
dunst
grim
slurp
wl-clipboard
networkmanagerapplet
blueman
thunderbird
tesseract
tessen
pavucontrol
playerctl
imv
mpv
arc-theme
tela-icon-theme
lxappearance
gsettings-desktop-schemas
glib
dconf
claude-code
opencode
];
}

View File

@@ -0,0 +1,20 @@
{ pkgs, ... }:
{
environment.systemPackages = [
pkgs.nvtopPackages.amd
];
boot.kernelModules = [ "amdgpu" ];
boot.initrd.kernelModules = [ "amdgpu" ];
hardware.graphics = {
enable = true;
enable32Bit = true;
};
hardware.enableRedistributableFirmware = true;
hardware.enableAllFirmware = true;
services.xserver.videoDrivers = [ "amdgpu" ];
}

View File

@@ -0,0 +1,17 @@
{
services.ollama = {
enable = true;
acceleration = "rocm";
host = "0.0.0.0";
port = 11434;
user = "ollama";
group = "ollama";
};
# Fix ownership on the externally mounted disk at /var/lib/private/ollama
systemd.tmpfiles.rules = [
"Z /var/lib/private/ollama 0750 ollama ollama -"
];
networking.firewall.allowedTCPPorts = [ 11434 ];
}

4
modules/system/boot.nix Normal file
View File

@@ -0,0 +1,4 @@
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}

View File

@@ -0,0 +1,8 @@
{
time.timeZone = "Europe/Paris";
services.xserver.xkb = {
layout = "fr";
variant = "azerty";
};
}

View File

@@ -0,0 +1,8 @@
{
networking.networkmanager.enable = true;
services.openssh = {
enable = true;
settings.PasswordAuthentication = true;
};
}

23
modules/system/nfs.nix Normal file
View File

@@ -0,0 +1,23 @@
{
fileSystems."/mnt/nas/commun" = {
device = "192.168.10.50:/mnt/DocNas/Commun";
fsType = "nfs";
options = [
"nfsvers=4"
"x-systemd.automount"
"noauto"
"x-systemd.idle-timeout=600"
];
};
fileSystems."/mnt/nas/benjamin" = {
device = "192.168.10.50:/mnt/DocNas/Benjamin";
fsType = "nfs";
options = [
"nfsvers=4"
"x-systemd.automount"
"noauto"
"x-systemd.idle-timeout=600"
];
};
}

View File

@@ -0,0 +1,12 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
git
vim
htop
tmux
fastfetch
inxi
];
}

13
modules/system/users.nix Normal file
View File

@@ -0,0 +1,13 @@
{
users.users.waha = {
isNormalUser = true;
extraGroups = [ "wheel" ];
initialPassword = "zekzek";
};
users.users.lafrite = {
isNormalUser = true;
extraGroups = [ "networkmanager" "video" "render" "bluetooth" ];
initialPassword = "zekzek";
};
}