all repos — dotfiles @ 8c93a76a4b8ab64d54d03f26e1c5f6ad22347a17

my *nix dotfiles

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  security.pam.enableSudoTouchIdAuth = true;
21
22  system.activationScripts.applications.text = pkgs.lib.mkForce (
23    ''
24      echo "setting up ~/Applications..." >&2
25      rm -rf ~/Applications/Nix\ Apps
26      mkdir -p ~/Applications/Nix\ Apps
27      for app in $(find ${config.system.build.applications}/Applications -maxdepth 1 -type l); do
28        src="$(/usr/bin/stat -f%Y "$app")"
29        cp -r "$src" ~/Applications/Nix\ Apps
30      done
31    ''
32  );
33}