init repos
This commit is contained in:
14
modules/desktop/audio.nix
Normal file
14
modules/desktop/audio.nix
Normal 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
10
modules/desktop/fonts.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
fonts.packages = with pkgs; [
|
||||
noto-fonts
|
||||
noto-fonts-color-emoji
|
||||
font-awesome
|
||||
nerd-fonts.jetbrains-mono
|
||||
];
|
||||
}
|
||||
8
modules/desktop/gaming.nix
Normal file
8
modules/desktop/gaming.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
};
|
||||
}
|
||||
30
modules/desktop/hyprland.nix
Normal file
30
modules/desktop/hyprland.nix
Normal 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;
|
||||
}
|
||||
31
modules/desktop/packages.nix
Normal file
31
modules/desktop/packages.nix
Normal 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
|
||||
];
|
||||
}
|
||||
20
modules/hardware/amd-gpu.nix
Normal file
20
modules/hardware/amd-gpu.nix
Normal 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" ];
|
||||
}
|
||||
17
modules/hardware/ollama.nix
Normal file
17
modules/hardware/ollama.nix
Normal 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
4
modules/system/boot.nix
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
}
|
||||
8
modules/system/locale.nix
Normal file
8
modules/system/locale.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
time.timeZone = "Europe/Paris";
|
||||
|
||||
services.xserver.xkb = {
|
||||
layout = "fr";
|
||||
variant = "azerty";
|
||||
};
|
||||
}
|
||||
8
modules/system/network.nix
Normal file
8
modules/system/network.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings.PasswordAuthentication = true;
|
||||
};
|
||||
}
|
||||
23
modules/system/nfs.nix
Normal file
23
modules/system/nfs.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
}
|
||||
12
modules/system/packages.nix
Normal file
12
modules/system/packages.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
vim
|
||||
htop
|
||||
tmux
|
||||
fastfetch
|
||||
inxi
|
||||
];
|
||||
}
|
||||
13
modules/system/users.nix
Normal file
13
modules/system/users.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user