feat: removed user1 and tidied up user0 home
|
|
@ -52,11 +52,11 @@ in
|
|||
homeDirectory = "/home/${user0}";
|
||||
file = {
|
||||
"./justfile" = import ./files/misc/justfile.nix { inherit flake config lib; };
|
||||
"./Files/Scripts/list.sh" = {
|
||||
"./.config/scripts/list.sh" = {
|
||||
source = ./files/scripts/list.sh;
|
||||
executable = true;
|
||||
};
|
||||
"./Files/Scripts/loop.sh" = {
|
||||
"./.config/scripts/loop.sh" = {
|
||||
source = ./files/scripts/loop.sh;
|
||||
executable = true;
|
||||
};
|
||||
|
|
@ -97,22 +97,13 @@ in
|
|||
"d ${paths.path0} 0755 ${user0} users -"
|
||||
]
|
||||
++ (map (path: "d /home/${user0}/${path} 0755 ${user0} users -") [
|
||||
"Downloads/Nicotine"
|
||||
"Downloads/Nicotine/Downloads"
|
||||
"Downloads/Nicotine/Incomplete"
|
||||
"Downloads/Nicotine/Received"
|
||||
"Downloads/Qbittorent"
|
||||
"Downloads/Qbittorent/Movies"
|
||||
"Downloads/Qbittorent/Music"
|
||||
"Downloads/Qbittorent/Shows"
|
||||
"Files"
|
||||
"Files/Scripts"
|
||||
"Files/Games"
|
||||
"Files/Screenshots"
|
||||
"projects"
|
||||
"downloads"
|
||||
])
|
||||
++ (map (path: "R /home/${user0}/${path} 0755 ${user0} users - -") [
|
||||
"Desktop"
|
||||
"Documents"
|
||||
"Downloads"
|
||||
"Music"
|
||||
"Pictures"
|
||||
"Public"
|
||||
|
|
|
|||
|
|
@ -33,16 +33,16 @@ in
|
|||
{
|
||||
text = ''
|
||||
rebuildBoot:
|
||||
nixos-rebuild boot --sudo --flake ~/Files/Projects/dotfiles#${hostname} --show-trace
|
||||
nixos-rebuild boot --sudo --flake ~/projects/dotfiles#${hostname} --show-trace
|
||||
|
||||
rebuild:
|
||||
nixos-rebuild switch --sudo --flake ~/Files/Projects/dotfiles#${hostname} --show-trace
|
||||
nixos-rebuild switch --sudo --flake ~/projects/dotfiles#${hostname} --show-trace
|
||||
|
||||
rebuild-server:
|
||||
nixos-rebuild switch --flake ~/Files/Projects/dotfiles#${ceres.name} --target-host ${ceres.ip.address0} --sudo --ask-sudo-password
|
||||
nixos-rebuild switch --flake ~/projects/dotfiles#${ceres.name} --target-host ${ceres.ip.address0} --sudo --ask-sudo-password
|
||||
|
||||
update:
|
||||
nix flake update --flake ~/Files/Projects/dotfiles
|
||||
nix flake update --flake ~/projects/dotfiles
|
||||
|
||||
remove-redundant:
|
||||
ls **/*.hs | each { |file| hlint --refactor --refactor-options="--inplace" $file.name }
|
||||
|
|
|
|||
|
|
@ -1,91 +0,0 @@
|
|||
{
|
||||
config,
|
||||
flake,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake) self;
|
||||
inherit (flake.config.people) user1;
|
||||
inherit (flake.config.machines) devices;
|
||||
inherit (flake.config.people.users.${user1}) name paths;
|
||||
hostname = config.networking.hostName;
|
||||
in
|
||||
{
|
||||
users = {
|
||||
users.${user1} = {
|
||||
description = name;
|
||||
name = user1;
|
||||
isNormalUser = true;
|
||||
shell = pkgs.nushell;
|
||||
extraGroups = [
|
||||
"adbusers"
|
||||
"disk"
|
||||
"libvirtd"
|
||||
"netdev"
|
||||
"networkmanager"
|
||||
"plugdev"
|
||||
"samba"
|
||||
"vboxusers"
|
||||
"wheel"
|
||||
];
|
||||
};
|
||||
};
|
||||
home-manager.users = {
|
||||
${user1} = {
|
||||
home = {
|
||||
username = user1;
|
||||
homeDirectory = "/home/${user1}";
|
||||
file = {
|
||||
"./.config/scripts/get_weather.sh" = {
|
||||
source = ./files/scripts/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}-${user1}"
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
systemd.tmpfiles = {
|
||||
rules =
|
||||
[
|
||||
"d ${paths.path0} 0755 ${user1} users -"
|
||||
]
|
||||
++ (map (path: "d /home/${user1}/${path} 0755 ${user1} users -") [
|
||||
"Files"
|
||||
"Files/Scripts"
|
||||
"Files/Games"
|
||||
"Files/Screenshots"
|
||||
])
|
||||
++ (map (path: "R /home/${user1}/${path} 0755 ${user1} users - -") [
|
||||
"Desktop"
|
||||
"Documents"
|
||||
"Music"
|
||||
"Pictures"
|
||||
"Public"
|
||||
"Templates"
|
||||
"Videos"
|
||||
]);
|
||||
};
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
#!/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 +0,0 @@
|
|||
@import url("https://catppuccin.github.io/discord/dist/catppuccin-macchiato.theme.css");
|
||||
|
Before Width: | Height: | Size: 772 KiB |
|
Before Width: | Height: | Size: 578 KiB |
|
Before Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 886 KiB |
|
Before Width: | Height: | Size: 201 KiB |
|
Before Width: | Height: | Size: 808 KiB |
|
Before Width: | Height: | Size: 578 KiB |
|
Before Width: | Height: | Size: 1.7 MiB |
|
Before Width: | Height: | Size: 3.3 MiB |
|
Before Width: | Height: | Size: 5.1 MiB |
|
Before Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 3.5 MiB |
|
Before Width: | Height: | Size: 632 KiB |
|
Before Width: | Height: | Size: 460 KiB |
|
Before Width: | Height: | Size: 8.2 MiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 3.3 MiB |
|
Before Width: | Height: | Size: 833 KiB |
|
Before Width: | Height: | Size: 467 KiB |
|
Before Width: | Height: | Size: 2 MiB |
|
Before Width: | Height: | Size: 1.8 MiB |
|
Before Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 257 KiB |
|
Before Width: | Height: | Size: 261 KiB |
|
Before Width: | Height: | Size: 144 KiB |
|
Before Width: | Height: | Size: 501 KiB |
|
Before Width: | Height: | Size: 252 KiB |
|
Before Width: | Height: | Size: 646 KiB |
|
Before Width: | Height: | Size: 422 KiB |
|
Before Width: | Height: | Size: 552 KiB |
|
Before Width: | Height: | Size: 366 KiB |
|
Before Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 747 KiB |
|
Before Width: | Height: | Size: 1.3 MiB |
|
Before Width: | Height: | Size: 1.7 MiB |
|
Before Width: | Height: | Size: 665 KiB |
|
Before Width: | Height: | Size: 1.8 MiB |
|
Before Width: | Height: | Size: 869 KiB |
|
Before Width: | Height: | Size: 302 KiB |
|
Before Width: | Height: | Size: 457 KiB |
|
Before Width: | Height: | Size: 876 KiB |
|
Before Width: | Height: | Size: 529 KiB |
|
Before Width: | Height: | Size: 258 KiB |
|
Before Width: | Height: | Size: 568 KiB |
|
Before Width: | Height: | Size: 323 KiB |
|
Before Width: | Height: | Size: 720 KiB |
|
Before Width: | Height: | Size: 185 KiB |
|
Before Width: | Height: | Size: 289 KiB |
|
Before Width: | Height: | Size: 405 KiB |
|
Before Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 4.1 MiB |
|
Before Width: | Height: | Size: 787 KiB |
|
Before Width: | Height: | Size: 1.3 MiB |
|
Before Width: | Height: | Size: 1.7 MiB |