]> Git — Sourcephile - sourcephile-nix.git/blob - members/julm.nix
losurdo: gitolite: update
[sourcephile-nix.git] / members / julm.nix
1 { inputs, pkgs, lib, config, ... }:
2 let
3 userLib = import ./lib.nix { inherit lib; };
4 in
5 {
6 users.users.julm = {
7 openssh.authorizedKeys.keys = [
8 (lib.readFile (inputs.secrets + "/members/ssh/julm.pub"))
9 (lib.readFile (inputs.secrets + "/members/ssh/julm-mob.pub"))
10 (lib.readFile (inputs.secrets + "/members/ssh/julm-losurdo.pub"))
11 (lib.readFile (inputs.secrets + "/members/ssh/julm-oignon.pub"))
12 ];
13 useDefaultShell = true;
14 isNormalUser = true;
15 uid = 1000;
16 #uid = userLib.mkUid "julm";
17 };
18 home-manager.users.julm = {
19 imports = [
20 (inputs.julm-nix + "/homes/julm.nix")
21 ];
22 };
23 systemd.services.home-manager-julm.postStart = ''
24 ${pkgs.nix}/bin/nix-env --delete-generations +1 --profile /nix/var/nix/profiles/per-user/julm/home-manager
25 '';
26 }