Add darwin configuration into
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"ahci"
|
||||
"nvme"
|
||||
"usbhid"
|
||||
"uas"
|
||||
"sd_mod"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/6c7250d7-8a40-4b12-94de-276c4b325473";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/2620-29F6";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0077"
|
||||
"dmask=0077"
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-uuid/7c10a8e6-c396-457e-a66f-577bd217b2e3"; }
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
Executable
+43
@@ -0,0 +1,43 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
# 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;
|
||||
|
||||
# Ssh
|
||||
programs.ssh.enableAskPassword = false; # No-window git push fix
|
||||
|
||||
# System version
|
||||
system.stateVersion = "25.11";
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
boot.kernelModules = [
|
||||
"coretemp"
|
||||
"nct6775"
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
networking.hostName = "nixos";
|
||||
networking.firewall.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Brussels";
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
users.users = {
|
||||
alistreaza = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"podman"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user