Add home-manager and fix worf

This commit is contained in:
2023-07-26 10:48:52 +02:00
parent 5418ca30f0
commit fc2f95035d
4 changed files with 112 additions and 21 deletions

View File

@@ -1,12 +1,21 @@
{ pkgs, ... }:
{
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
# Many settings should be handled by home manager. System-wide settings are however managed here.
# System packages for all users
environment.systemPackages = [
pkgs.neovim
pkgs.iterm2
pkgs.ripgrep
pkgs.wget
];
users.users.felixalb = {
home = "/Users/felixalb";
shell = pkgs.zsh;
};
programs.zsh.enable = true;
system.activationScripts.postActivation.text = ''sudo chsh -s ${pkgs.zsh}/bin/zsh''; # Since it's not possible to declare default shell, run this command after build
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
nix.package = pkgs.nix;