Add darwin configuration into

This commit is contained in:
Laurent Gueret
2026-02-11 13:15:26 +01:00
parent 80e5d0b8b5
commit e75b09a750
71 changed files with 562 additions and 151 deletions
+18
View File
@@ -0,0 +1,18 @@
{ lib, config, ... }:
with lib;
let
cfg = config.os.shell.neovim;
in
{
options.os.shell.neovim = {
enable = mkEnableOption "System neovim service";
};
config = mkIf cfg.enable {
programs.neovim = {
enable = true;
defaultEditor = true;
};
};
}
-21
View File
@@ -1,21 +0,0 @@
{
pkgs,
lib,
config,
...
}:
with lib;
let
cfg = config.os.shell.dev;
in
{
options.os.shell.dev = {
enable = mkEnableOption "System git service";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
gcc
];
};
}
-26
View File
@@ -1,26 +0,0 @@
{
pkgs,
lib,
config,
...
}:
with lib;
let
cfg = config.os.shell.git;
in
{
options.os.shell.git = {
enable = mkEnableOption "System git service";
};
config = mkIf cfg.enable {
programs.git = {
enable = true;
config = {
init.defaultBranch = "main";
};
};
programs.ssh.enableAskPassword = false;
};
}
-25
View File
@@ -1,25 +0,0 @@
{ lib, config, ... }:
with lib;
let
cfg = config.os.shell.zsh;
in
{
options.os.shell.zsh = {
enable = mkEnableOption "System zsh service";
};
config = mkIf cfg.enable {
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
};
programs.neovim = {
enable = true;
defaultEditor = true;
};
};
}
-42
View File
@@ -1,42 +0,0 @@
{ ... }:
{
nix.settings.experimental-features = "nix-command flakes";
# System services
os.boot.systemd.enable = true;
os.boot.plymouth.enable = true;
os.graphics.nvidia.enable = true;
os.audio.pipewire.enable = true;
# Networks services
os.networks.dns.enable = true;
os.networks.manager.enable = true;
# Printing and sharing
os.networks.printing.enable = true;
os.networks.samba.enable = true;
# System configurations
os.keyboard.apple.enable = true;
# Shell configurations
os.shell.zsh.enable = true;
os.shell.git.enable = true;
os.shell.nh.enable = true;
# Gnome configurations
os.gnome.shell.enable = true;
os.gnome.apps.enable = true;
# Virtualisation Apps
os.virtualisation.cuda.enable = true;
os.virtualisation.podman.enable = true;
# Dev
os.shell.dev.enable = true;
os.shell.devenv.enable = true;
# System version
system.stateVersion = "25.11";
}
-9
View File
@@ -1,9 +0,0 @@
{ pkgs, ... }:
{
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelModules = [
"coretemp"
"nct6775"
];
}
-8
View File
@@ -1,8 +0,0 @@
{ ... }:
{
networking.hostName = "nixos";
networking.firewall.enable = true;
time.timeZone = "Europe/Brussels";
}
-19
View File
@@ -1,19 +0,0 @@
{ ... }:
{
nix.settings.trusted-users = [
# Needed by Devenv
"root"
"alistreaza"
];
users.users = {
alistreaza = {
isNormalUser = true;
extraGroups = [
"wheel"
"podman"
];
};
};
}