mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-02-13 16:18:57 -05:00
alejandra formatting ftw
This commit is contained in:
parent
ab483276f1
commit
5e29a554ea
22 changed files with 738 additions and 651 deletions
|
|
@ -1,25 +1,30 @@
|
|||
{ pkgs, lib, config, ...}: {
|
||||
config.users.users.crow = lib.mkIf config.user.crow.enable {
|
||||
isNormalUser = true;
|
||||
initialPassword = "changeme";
|
||||
extraGroups = [ "wheel" "networkmanager" "audio" "plugdev" ];
|
||||
};
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
config.users.users.crow = lib.mkIf config.user.crow.enable {
|
||||
isNormalUser = true;
|
||||
initialPassword = "changeme";
|
||||
extraGroups = ["wheel" "networkmanager" "audio" "plugdev"];
|
||||
};
|
||||
|
||||
config.systemd.services.note_sync = {
|
||||
enable = true;
|
||||
description = "Auto sync notes to remote";
|
||||
serviceConfig = {
|
||||
User = "crow";
|
||||
Type = "oneshot";
|
||||
};
|
||||
path = [
|
||||
"/run/current-system/sw"
|
||||
];
|
||||
startAt = [
|
||||
"*:0/5"
|
||||
];
|
||||
script = "cd /home/crow/Notes\ngit pull\ngit add .\ngit diff-index --quiet HEAD || git commit -am 'automatic backup'\ngit push";
|
||||
config.systemd.services.note_sync = {
|
||||
enable = true;
|
||||
description = "Auto sync notes to remote";
|
||||
serviceConfig = {
|
||||
User = "crow";
|
||||
Type = "oneshot";
|
||||
};
|
||||
path = [
|
||||
"/run/current-system/sw"
|
||||
];
|
||||
startAt = [
|
||||
"*:0/5"
|
||||
];
|
||||
script = "cd /home/crow/Notes\ngit pull\ngit add .\ngit diff-index --quiet HEAD || git commit -am 'automatic backup'\ngit push";
|
||||
};
|
||||
|
||||
config.home-manager.users.crow = lib.mkIf config.user.crow.home.enable ./home.nix;
|
||||
config.home-manager.users.crow = lib.mkIf config.user.crow.home.enable ./home.nix;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue