added nixos configuration and home mananger stuff

This commit is contained in:
2024-09-07 22:22:12 -04:00
parent cfa75cb28a
commit e0daf1276c
14 changed files with 605 additions and 53 deletions
+12 -9
View File
@@ -1,27 +1,30 @@
{
lib,
pkgs,
userName,
hostname,
...
} @ args:
#############################################################
#
# Host & Users configuration
#
#############################################################
{
} @ args: {
# Set up networking configuration
networking.hostName = hostname;
networking.computerName = hostname;
networking.firewall.enable = true; # VERY important, do not touch
# networking.firewall.allowedTCPPorts = [];
# networking.firewall.allowedUDPPorts = [];
networking.networkmanager.enable = pkgs.stdenv.isLinux; # Linux tool for managing network connections
system.defaults.smb.NetBIOSName = hostname;
# Define a user account. Don't forget to set a password with ‘passwd’.
# Set up user accounts
# Don't forget to set a password with ‘passwd’!
users.users."${userName}" = {
home =
if pkgs.stdenv.isDarwin
then "/Users/${userName}"
else "/home/${userName}";
description = userName;
extraGroups =
if pkgs.stdenv.isLinux
then ["wheel" "video"]
else [];
};
nix.settings.trusted-users = [userName];