nix/home.nix

26 lines
464 B
Nix

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