initial macos setup
This commit is contained in:
28
hosts/macbook-pro/configuration.nix
Normal file
28
hosts/macbook-pro/configuration.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
users.users.remy = {
|
||||
home = "/Users/remy";
|
||||
};
|
||||
system.primaryUser = "remy";
|
||||
|
||||
environment.systemPackages = [ pkgs.git ]; # required because git is hardcoded into mac
|
||||
nix.enable=false;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
# nixpkgs.config.allowUnsupportedSystem = true;
|
||||
security.pam.services.sudo_local.touchIdAuth = true;
|
||||
|
||||
# Necessary for using flakes on this system.
|
||||
nix.settings.experimental-features = "nix-command flakes";
|
||||
|
||||
# Enable alternative shell support in nix-darwin.
|
||||
# programs.fish.enable = true;
|
||||
|
||||
# Set Git commit hash for darwin-version.
|
||||
# system.configurationRevision = self.rev or self.dirtyRev or null;
|
||||
|
||||
# Used for backwards compatibility, please read the changelog before changing.
|
||||
# $ darwin-rebuild changelog
|
||||
system.stateVersion = 6;
|
||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||
}
|
||||
15
hosts/macbook-pro/default.nix
Normal file
15
hosts/macbook-pro/default.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
config = {
|
||||
#nix-config = {
|
||||
# networking.hostName = "nyx";
|
||||
|
||||
# userName = "remy";
|
||||
#};
|
||||
};
|
||||
|
||||
# Merge the configuration and hardware configuration
|
||||
imports = [
|
||||
./configuration.nix
|
||||
../../modules/nixos/macos-tiling
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user