Add hello.sh script + parametrize username

This commit is contained in:
Khaïs COLIN 2024-07-14 19:47:23 +02:00
parent 8792141bfc
commit e098baef28

View file

@ -1,16 +1,25 @@
{ lib, pkgs, ... }:
{
{ lib, pkgs, ... }: let
username = "khais";
in {
home = {
packages = with pkgs; [
htop neofetch
];
file = {
"hello.txt".text = "Hello, World!";
"hello.sh" = {
text = ''
#!/usr/bin/env bash
echo 'Hello, World!'
echo '*slaps roof* This script can fit so many lines in it!'
'';
executable = true;
};
};
username = "khais";
homeDirectory = "/home/khais";
inherit username;
homeDirectory = "/home/${username}";
stateVersion = "23.11";
};