Add darwin configuration into
This commit is contained in:
1 parent
80e5d0b8b5
commit
e75b09a750
71 files changed
+562
-151
No files matched your search
File renamed without changes.
@@ -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;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
@@ -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";
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
boot.kernelModules = [
|
||||
"coretemp"
|
||||
"nct6775"
|
||||
];
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
networking.hostName = "nixos";
|
||||
networking.firewall.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Brussels";
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
nix.settings.trusted-users = [
|
||||
# Needed by Devenv
|
||||
"root"
|
||||
"alistreaza"
|
||||
];
|
||||
|
||||
users.users = {
|
||||
alistreaza = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"podman"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user