nix/hosts/kvothe/configuration.nix (view raw)
1{ self, config, pkgs, lib, ... }:
2
3{
4 programs.bash.enable = true;
5 environment = {
6 shells = [ pkgs.bash ];
7 };
8
9
10 users.users.icy = {
11 name = "icy";
12 home = "/Users/icy";
13 };
14
15 services.nix-daemon.enable = true;
16 nixpkgs.overlays = with self.overlays; [
17 prompt
18 ];
19
20 system.activationScripts.applications.text = pkgs.lib.mkForce (
21 ''
22 echo "setting up ~/Applications..." >&2
23 rm -rf ~/Applications/Nix\ Apps
24 mkdir -p ~/Applications/Nix\ Apps
25 for app in $(find ${config.system.build.applications}/Applications -maxdepth 1 -type l); do
26 src="$(/usr/bin/stat -f%Y "$app")"
27 cp -r "$src" ~/Applications/Nix\ Apps
28 done
29 ''
30 );
31}