feat: init

This commit is contained in:
Nick 2025-03-29 23:08:26 -05:00
commit 96c6f790fc
804 changed files with 33411 additions and 0 deletions

64
profiles/user1/default.nix Executable file
View file

@ -0,0 +1,64 @@
{
config,
flake,
pkgs,
...
}:
let
inherit (flake) self;
inherit (flake.config.people) user1;
inherit (flake.config.machines) devices;
inherit (flake.config.people.users.${user1}) name;
hostname = config.networking.hostName;
in
{
users = {
users.${user1} = {
description = name;
name = user1;
isNormalUser = true;
shell = pkgs.nushell;
extraGroups = [
"libvirtd"
"disk"
"networkmanager"
"vboxusers"
"wheel"
"adbusers"
"netdev"
];
};
};
home-manager.users = {
${user1} = {
home = {
username = user1;
homeDirectory = "/home/${user1}";
file = {
"./justfile" = {
source = ./files/justfile;
};
"./.config/scripts/get_weather.sh" = {
source = ./files/get_weather.sh;
executable = true;
};
".config/wallpaper" = {
source = ./files/wallpaper;
recursive = true;
};
};
sessionVariables = { };
};
imports = [
{
home.stateVersion = config.system.stateVersion;
}
{
imports = [
self.homeModules."${devices.${hostname}.name}-${user1}"
];
}
];
};
};
}

View file

@ -0,0 +1,19 @@
#!/usr/bin/env bash
for i in {1..5}
do
text=$(curl -s "https://wttr.in/$1?format=1")
if [[ $? == 0 ]]
then
text=$(echo "$text" | sed -E "s/\s+/ /g")
tooltip=$(curl -s "https://wttr.in/$1?format=4")
if [[ $? == 0 ]]
then
tooltip=$(echo "$tooltip" | sed -E "s/\s+/ /g")
echo "{\"text\":\"$text\", \"tooltip\":\"$tooltip\"}"
exit
fi
fi
sleep 2
done
echo "{\"text\":\"error\", \"tooltip\":\"error\"}"

14
profiles/user1/files/justfile Executable file
View file

@ -0,0 +1,14 @@
ewwEdit:
eww --config /home/nick/dotfiles/home-manager/modules/eww/config/ open centerPanel
ewwLaunch:
./home/nick/dotfiles/home-manager/modules/eww/config/scripts/master.sh
gobrrr:
home-manager switch --flake ~/dotfiles#desktop
gobrrrl:
nixos-rebuild switch --use-remote-sudo --flake /home/nick/dotfiles#desktop
fuckoff:
shutdown now

Binary file not shown.

After

Width:  |  Height:  |  Size: 416 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 KiB