WIP
This commit is contained in:
parent
b68f8c664b
commit
da35394474
5 changed files with 116 additions and 1 deletions
|
|
@ -7,12 +7,15 @@
|
||||||
url = "github:nix-community/home-manager/release-24.11";
|
url = "github:nix-community/home-manager/release-24.11";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
nix-darwin.url = "github:LnL7/nix-darwin";
|
||||||
|
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
home-manager,
|
home-manager,
|
||||||
|
nix-darwin,
|
||||||
...
|
...
|
||||||
} @ inputs: let
|
} @ inputs: let
|
||||||
inherit (self) outputs;
|
inherit (self) outputs;
|
||||||
|
|
@ -22,5 +25,11 @@
|
||||||
specialArgs = {inherit inputs outputs;};
|
specialArgs = {inherit inputs outputs;};
|
||||||
modules = [./hosts/dnsc-server];
|
modules = [./hosts/dnsc-server];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
darwinConfigurations.dnsc-mac = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "aarch64-darwin";
|
||||||
|
specialArgs = {inherit inputs outputs;};
|
||||||
|
modules = [./hosts/dnsc-mac];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
15
home/darwin.nix
Normal file
15
home/darwin.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.username = "dennis";
|
||||||
|
home.homeDirectory = "/Users/dennis";
|
||||||
|
home.stateVersion = "24.11";
|
||||||
|
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
userName = "Dennis Schoepf";
|
||||||
|
userEmail = "me@dnsc.io";
|
||||||
|
};
|
||||||
|
}
|
||||||
91
hosts/dnsc-mac/default.nix
Normal file
91
hosts/dnsc-mac/default.nix
Normal file
|
|
@ -0,0 +1,91 @@
|
||||||
|
{
|
||||||
|
inputs,
|
||||||
|
outputs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
|
||||||
|
# Setting the user
|
||||||
|
networking.hostName = "dnsc-mac";
|
||||||
|
networking.computerName = "dnsc-mac";
|
||||||
|
system.defaults.smb.NetBIOSName = "dnsc-mac";
|
||||||
|
|
||||||
|
users.users."dennis"= {
|
||||||
|
home = "/Users/dennis";
|
||||||
|
description = username;
|
||||||
|
};
|
||||||
|
|
||||||
|
nix.settings.trusted-users = [ username ];
|
||||||
|
|
||||||
|
# System Packages
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
git
|
||||||
|
neovim
|
||||||
|
];
|
||||||
|
|
||||||
|
# Homebrew
|
||||||
|
homebrew = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
onActivation = {
|
||||||
|
autoUpdate = false;
|
||||||
|
# 'zap': uninstalls all formulae(and related files) not listed here.
|
||||||
|
# cleanup = "zap";
|
||||||
|
};
|
||||||
|
|
||||||
|
taps = [
|
||||||
|
"homebrew/services"
|
||||||
|
];
|
||||||
|
|
||||||
|
# `brew install`
|
||||||
|
# TODO Feel free to add your favorite apps here.
|
||||||
|
brews = [
|
||||||
|
# "aria2" # download tool
|
||||||
|
];
|
||||||
|
|
||||||
|
# `brew install --cask`
|
||||||
|
# TODO Feel free to add your favorite apps here.
|
||||||
|
casks = [
|
||||||
|
# "google-chrome"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Programgs
|
||||||
|
programs.fish.enable = true;
|
||||||
|
|
||||||
|
# System settings
|
||||||
|
system = {
|
||||||
|
stateVersion = 5;
|
||||||
|
activationScripts.postUserActivation.text = ''
|
||||||
|
/System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u
|
||||||
|
'';
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
menuExtraClock.Show24Hour = true; # show 24 hour clock
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Add ability to used TouchID for sudo authentication
|
||||||
|
security.pam.enableSudoTouchIdAuth = true;
|
||||||
|
|
||||||
|
# Home Manager Setup
|
||||||
|
# Home Manager Setup
|
||||||
|
home-manager = {
|
||||||
|
extraSpecialArgs = { inherit inputs outputs; };
|
||||||
|
users = {
|
||||||
|
dennis = import ../../home/server;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Nix settings
|
||||||
|
services.nix-daemon.enable = true;
|
||||||
|
nix.package = pkgs.nix;
|
||||||
|
nix.gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 1w";
|
||||||
|
};
|
||||||
|
nix.settings.auto-optimise-store = true;
|
||||||
|
}
|
||||||
|
|
@ -60,7 +60,7 @@
|
||||||
home-manager = {
|
home-manager = {
|
||||||
extraSpecialArgs = { inherit inputs outputs; };
|
extraSpecialArgs = { inherit inputs outputs; };
|
||||||
users = {
|
users = {
|
||||||
dennis = import ../../home;
|
dennis = import ../../home/server;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue