mirror of
https://github.com/Alexandre1a/NixOSDots.git
synced 2026-03-10 08:19:47 +01:00
73 lines
1.4 KiB
Nix
73 lines
1.4 KiB
Nix
{ config, pkgs, inputs, ... }:
|
|
|
|
{
|
|
# All imports go here
|
|
imports =
|
|
[
|
|
./modules.nix
|
|
# HomeManager
|
|
inputs.home-manager.darwinModules.default
|
|
];
|
|
|
|
# All System packages
|
|
environment.systemPackages = with pkgs;
|
|
[
|
|
# Basic text editing for all users
|
|
neovim
|
|
vim
|
|
# General tools
|
|
btop
|
|
eza
|
|
fastfetch
|
|
ffmpeg
|
|
fzf
|
|
git
|
|
git-lfs
|
|
gnupg
|
|
wget
|
|
tree
|
|
netcat
|
|
tmux
|
|
#telnet
|
|
|
|
];
|
|
# Create the user
|
|
users.users.alex = {
|
|
description = "Alexandre Delcamp--Enache";
|
|
home = "/Users/alex";
|
|
shell = pkgs.zsh;
|
|
};
|
|
# HomeManager
|
|
home-manager = {
|
|
extraSpecialArgs = { inherit inputs; };
|
|
usesGlobalPkgs = true;
|
|
usesUserPackages = true;
|
|
backupFileExtension = "backup";
|
|
home-manager.sharedModules = [
|
|
inputs.sops-nix.homeManagerModules.sops
|
|
];
|
|
users = {
|
|
"alex" = import ./home.nix;
|
|
};
|
|
};
|
|
# Use ZSH as the shell
|
|
programs = {
|
|
zsh = {
|
|
enable = true;
|
|
enableAutosuggestions = true;
|
|
};
|
|
};
|
|
# Enable required settings
|
|
# TouchID login
|
|
security.pam.services.sudo_local.touchIdAuth = true;
|
|
# Flakes
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
# Target arch
|
|
nixpkgs.hostPlatform = "aarch64-darwin";
|
|
# Nix-Darwin State Version
|
|
system = {
|
|
stateVersion = 6;
|
|
primaryUser = "alex";
|
|
};
|
|
}
|