Add apps and host-users modules
This commit is contained in:
parent
22e4e8b611
commit
f39962f246
4 changed files with 38 additions and 17 deletions
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
19
.config/nix/modules/apps.nix
Normal file
19
.config/nix/modules/apps.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
{ pkgs, ...}: {
|
||||||
|
homebrew = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
brews = [
|
||||||
|
"imagemagick"
|
||||||
|
"trippy"
|
||||||
|
];
|
||||||
|
|
||||||
|
casks = [
|
||||||
|
"amethyst"
|
||||||
|
"firefox"
|
||||||
|
"logseq"
|
||||||
|
"thunderbird"
|
||||||
|
"protonvpn"
|
||||||
|
"protonmail-bridge"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -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"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
})
|
})
|
||||||
|
|
|
||||||
17
.config/nix/modules/host-users.nix
Normal file
17
.config/nix/modules/host-users.nix
Normal 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 ];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue