Add apps and host-users modules

This commit is contained in:
Tobias Ostner 2023-12-01 08:06:48 +01:00
parent 22e4e8b611
commit f39962f246
4 changed files with 38 additions and 17 deletions

View file

@ -33,6 +33,8 @@
modules = [ modules = [
./modules/nix-core.nix ./modules/nix-core.nix
./modules/system.nix ./modules/system.nix
./modules/apps.nix
./modules/host-users.nix
./modules/darwin ./modules/darwin
home-manager.darwinModules.home-manager home-manager.darwinModules.home-manager
{ {

View file

@ -0,0 +1,19 @@
{ pkgs, ...}: {
homebrew = {
enable = true;
brews = [
"imagemagick"
"trippy"
];
casks = [
"amethyst"
"firefox"
"logseq"
"thunderbird"
"protonvpn"
"protonmail-bridge"
];
};
}

View file

@ -21,22 +21,5 @@
}) })
]; ];
users.users.tobi.description = "Tobias Ostner";
users.users.tobi.home = "/Users/tobi";
users.users.tobi.shell = pkgs.zshInteractive; users.users.tobi.shell = pkgs.zshInteractive;
homebrew = {
enable = true;
brews = [
"imagemagick"
"trippy"
];
casks = [
"amethyst"
"firefox"
"logseq"
"thunderbird"
"protonvpn"
"protonmail-bridge"
];
};
}) })

View file

@ -0,0 +1,17 @@
{ ... }@args:
let
hostname = "TobAir";
username = "tobi";
in
{
networking.hostName = hostname;
networking.computerName = hostname;
system.defaults.smb.NetBIOSName = hostname;
users.users."${username}" = {
home = "/Users/${username}";
description = "Tobias Ostner";
};
nix.settings.trusted-users = [ username ];
}