CrOS/modules/users/crow/user.nix
2024-10-03 12:00:48 -04:00

26 lines
755 B
Nix

{ pkgs, lib, config, ...}: {
config.users.users.crow = lib.mkIf config.users.crow.enable {
isNormalUser = true;
initialPassword = "changeme";
extraGroups = [ "wheel" "networkmanager" "audio" ];
};
config.systemd.services.note_sync = {
enable = true;
description = "Auto sync notes to remote";
serviceConfig = {
User = "crow";
Type = "oneshot";
};
path = [
pkgs.git
pkgs.ssh
];
startAt = [
"*:0/5"
];
script = "cd /home/crow/Notes\ngit add .\ngit commit -am 'automatic backup'\ngit push";
};
config.home-manager.users.crow = lib.mkIf config.users.crow.home.enable ./home.nix;
}