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, ... }: { { pkgs, self, ... }:
systemd.user.services.dotfiles = { let
description = "Install/update dotfiles in startup."; mkDotfilesUnit = {
description = "Install/update dotfiles on startup.";
wantedBy = [ "graphical-session-pre.target" ]; wantedBy = [ "graphical-session-pre.target" ];
serviceConfig.Type = "oneshot"; serviceConfig.Type = "oneshot";
script = '' script = ''
cd ~ 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 ${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 = { users.users.dasha = {
hashedPassword = "$y$j9T$WGMPv/bRhGBUidcZLZ7CE/$raZhwFFdI/XvegVZVHLILJLMiBkOxSErc6gao/Cxt33"; # Use `mkpasswd`. hashedPassword = "$y$j9T$WGMPv/bRhGBUidcZLZ7CE/$raZhwFFdI/XvegVZVHLILJLMiBkOxSErc6gao/Cxt33"; # Use `mkpasswd`.
uid = 1001; uid = 1001;

View file

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

2
.gitignore vendored
View file

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