Bootstrap : Start with uppercase letter.

This commit is contained in:
Dmitry Voronin 2024-02-20 15:19:50 +03:00
parent 397d003dba
commit c955373ca5
5 changed files with 11 additions and 11 deletions

View file

@ -1,12 +1,16 @@
{ pkgs, ... }: {
systemd.user.services.dotfiles = {
description = "Install/update dotfiles in startup.";
{ pkgs, self, ... }:
let
mkDotfilesUnit = {
description = "Install/update dotfiles on startup.";
wantedBy = [ "graphical-session-pre.target" ];
serviceConfig.Type = "oneshot";
script = ''
cd ~
${pkgs.curl}/bin/curl https://git.voronind.com/voronind/linux/raw/branch/main/.bootstrap.sh | ${pkgs.bash}/bin/bash || true
test -d .git || { ${pkgs.curl}/bin/curl https://git.voronind.com/voronind/linux/raw/branch/main/.Bootstrap.sh | ${pkgs.bash}/bin/bash; }
${pkgs.git}/bin/git pull
'';
};
in {
systemd.user.services.dotfiles = mkDotfilesUnit;
systemd.services.dotfiles = mkDotfilesUnit;
}

View file

@ -1,6 +1,4 @@
{ pkgs, ... }:
{
{ pkgs, ... }: {
users.users.dasha = {
hashedPassword = "$y$j9T$WGMPv/bRhGBUidcZLZ7CE/$raZhwFFdI/XvegVZVHLILJLMiBkOxSErc6gao/Cxt33"; # Use `mkpasswd`.
uid = 1001;

View file

@ -1,6 +1,4 @@
{ pkgs, specialArgs, ... }:
{
{ pkgs, specialArgs, ... }: {
users.users.voronind = {
hashedPassword = specialArgs.const.hashedPassword;
uid = 1000;

2
.gitignore vendored
View file

@ -1,7 +1,7 @@
*
# Bootstrap.
!/.bootstrap.sh
!/.Bootstrap.sh
# Readme.
!/.README.md