feat: init
91
profiles/user3/default.nix
Executable file
|
@ -0,0 +1,91 @@
|
|||
{
|
||||
config,
|
||||
flake,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake) self;
|
||||
inherit (flake.config.people) user3;
|
||||
inherit (flake.config.machines) devices;
|
||||
inherit (flake.config.people.users.${user3}) name paths;
|
||||
hostname = config.networking.hostName;
|
||||
in
|
||||
{
|
||||
users = {
|
||||
users.${user3} = {
|
||||
description = name;
|
||||
name = user3;
|
||||
isNormalUser = true;
|
||||
shell = pkgs.nushell;
|
||||
extraGroups = [
|
||||
"adbusers"
|
||||
"disk"
|
||||
"libvirtd"
|
||||
"netdev"
|
||||
"networkmanager"
|
||||
"plugdev"
|
||||
"samba"
|
||||
"vboxusers"
|
||||
"wheel"
|
||||
];
|
||||
};
|
||||
};
|
||||
home-manager.users = {
|
||||
${user3} = {
|
||||
home = {
|
||||
username = user3;
|
||||
homeDirectory = "/home/${user3}";
|
||||
file = {
|
||||
"./.config/scripts/get_weather.sh" = {
|
||||
source = ./files/get_weather.sh;
|
||||
executable = true;
|
||||
};
|
||||
".config/wallpaper" = {
|
||||
source = ./files/wallpaper;
|
||||
recursive = true;
|
||||
};
|
||||
"./.config/vesktop/themes/macchiato-theme.css" = {
|
||||
source = ./files/themes/vesktop/macchiato-theme.css;
|
||||
};
|
||||
};
|
||||
sessionVariables = {
|
||||
VISUAL = lib.getExe pkgs.zed-editor;
|
||||
GTK_THEME = "catppuccin-macchiato-mauve-compact";
|
||||
};
|
||||
};
|
||||
imports = [
|
||||
{
|
||||
home.stateVersion = config.system.stateVersion;
|
||||
}
|
||||
{
|
||||
imports = [
|
||||
self.homeModules."${devices.${hostname}.name}-${user3}"
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
systemd.tmpfiles = {
|
||||
rules =
|
||||
[
|
||||
"d ${paths.path0} 0755 ${user3} users -"
|
||||
]
|
||||
++ (map (path: "d /home/${user3}/${path} 0755 ${user3} users -") [
|
||||
"Files"
|
||||
"Files/Scripts"
|
||||
"Files/Games"
|
||||
"Files/Screenshots"
|
||||
])
|
||||
++ (map (path: "R /home/${user3}/${path} 0755 ${user3} users - -") [
|
||||
"Desktop"
|
||||
"Documents"
|
||||
"Music"
|
||||
"Pictures"
|
||||
"Public"
|
||||
"Templates"
|
||||
"Videos"
|
||||
]);
|
||||
};
|
||||
}
|
19
profiles/user3/files/get_weather.sh
Executable 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\"}"
|
1
profiles/user3/files/themes/vesktop/macchiato-theme.css
Executable file
|
@ -0,0 +1 @@
|
|||
@import url("https://catppuccin.github.io/discord/dist/catppuccin-macchiato.theme.css");
|
BIN
profiles/user3/files/wallpaper/7yKtaRij2giAj0s09F6gmB8XIje.jpg
Executable file
After Width: | Height: | Size: 772 KiB |
BIN
profiles/user3/files/wallpaper/FTDCMyaXoAEUn5h.jpg
Executable file
After Width: | Height: | Size: 578 KiB |
BIN
profiles/user3/files/wallpaper/cat-waves.png
Executable file
After Width: | Height: | Size: 1.2 MiB |
BIN
profiles/user3/files/wallpaper/juliemao-1741428128332-6023.jpg
Executable file
After Width: | Height: | Size: 886 KiB |
BIN
profiles/user3/files/wallpaper/pinksky.png
Executable file
After Width: | Height: | Size: 201 KiB |
BIN
profiles/user3/files/wallpaper/u6ne2q214dx71.jpg
Executable file
After Width: | Height: | Size: 808 KiB |
BIN
profiles/user3/files/wallpaper/wallhaven-0wj757.jpg
Executable file
After Width: | Height: | Size: 578 KiB |
BIN
profiles/user3/files/wallpaper/wallhaven-2ege2g.jpg
Executable file
After Width: | Height: | Size: 1.7 MiB |
BIN
profiles/user3/files/wallpaper/wallhaven-4dj2qo.png
Executable file
After Width: | Height: | Size: 3.3 MiB |
BIN
profiles/user3/files/wallpaper/wallhaven-4xq6vv.png
Executable file
After Width: | Height: | Size: 5.1 MiB |
BIN
profiles/user3/files/wallpaper/wallhaven-5dyvy3.jpg
Executable file
After Width: | Height: | Size: 1.2 MiB |
BIN
profiles/user3/files/wallpaper/wallhaven-735xv3.jpg
Executable file
After Width: | Height: | Size: 3.5 MiB |
BIN
profiles/user3/files/wallpaper/wallhaven-8xe25y.jpg
Executable file
After Width: | Height: | Size: 632 KiB |
BIN
profiles/user3/files/wallpaper/wallhaven-eyrj7o.jpg
Executable file
After Width: | Height: | Size: 460 KiB |
BIN
profiles/user3/files/wallpaper/wallhaven-g8ky73.jpg
Executable file
After Width: | Height: | Size: 8.2 MiB |
BIN
profiles/user3/files/wallpaper/wallhaven-j8wzvp.jpg
Executable file
After Width: | Height: | Size: 1.1 MiB |
BIN
profiles/user3/files/wallpaper/wallhaven-nekxjk.png
Executable file
After Width: | Height: | Size: 3.3 MiB |
BIN
profiles/user3/files/wallpaper/wallhaven-nryz87.jpg
Executable file
After Width: | Height: | Size: 833 KiB |
BIN
profiles/user3/files/wallpaper/wallhaven-r7yey1.jpg
Executable file
After Width: | Height: | Size: 467 KiB |
BIN
profiles/user3/files/wallpaper/wallhaven-vge32m.jpg
Executable file
After Width: | Height: | Size: 2 MiB |
BIN
profiles/user3/files/wallpaper/wallhaven-vgxgem.jpg
Executable file
After Width: | Height: | Size: 1.8 MiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (1).jpg
Executable file
After Width: | Height: | Size: 1.6 MiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (10).jpg
Executable file
After Width: | Height: | Size: 257 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (11).jpg
Executable file
After Width: | Height: | Size: 261 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (12).jpg
Executable file
After Width: | Height: | Size: 144 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (13).jpg
Executable file
After Width: | Height: | Size: 501 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (14).jpg
Executable file
After Width: | Height: | Size: 252 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (15).jpg
Executable file
After Width: | Height: | Size: 646 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (16).jpg
Executable file
After Width: | Height: | Size: 422 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (17).jpg
Executable file
After Width: | Height: | Size: 552 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (19).jpg
Executable file
After Width: | Height: | Size: 366 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (2).jpg
Executable file
After Width: | Height: | Size: 1.2 MiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (20).jpg
Executable file
After Width: | Height: | Size: 747 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (21).jpg
Executable file
After Width: | Height: | Size: 1.3 MiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (22).jpg
Executable file
After Width: | Height: | Size: 1.7 MiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (23).jpg
Executable file
After Width: | Height: | Size: 665 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (24).jpg
Executable file
After Width: | Height: | Size: 1.8 MiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (26).jpg
Executable file
After Width: | Height: | Size: 869 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (27).jpg
Executable file
After Width: | Height: | Size: 302 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (28).jpg
Executable file
After Width: | Height: | Size: 457 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (29).jpg
Executable file
After Width: | Height: | Size: 876 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (3).jpg
Executable file
After Width: | Height: | Size: 529 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (30).jpg
Executable file
After Width: | Height: | Size: 258 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (31).jpg
Executable file
After Width: | Height: | Size: 568 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (32).jpg
Executable file
After Width: | Height: | Size: 323 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (34).jpg
Executable file
After Width: | Height: | Size: 720 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (35).jpg
Executable file
After Width: | Height: | Size: 185 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (37).jpg
Executable file
After Width: | Height: | Size: 289 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (38).jpg
Executable file
After Width: | Height: | Size: 405 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (4).jpg
Executable file
After Width: | Height: | Size: 1.6 MiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (5).jpg
Executable file
After Width: | Height: | Size: 1.6 MiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (6).jpg
Executable file
After Width: | Height: | Size: 1.6 MiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (7).jpg
Executable file
After Width: | Height: | Size: 4.1 MiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (8).jpg
Executable file
After Width: | Height: | Size: 787 KiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper (9).jpg
Executable file
After Width: | Height: | Size: 1.3 MiB |
BIN
profiles/user3/files/wallpaper/wallpaperflare.com_wallpaper.jpg
Executable file
After Width: | Height: | Size: 1.7 MiB |