Add hello.sh script + parametrize username
This commit is contained in:
parent
8792141bfc
commit
e098baef28
1 changed files with 14 additions and 5 deletions
19
home.nix
19
home.nix
|
|
@ -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";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue