mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 18:15:13 -05:00
feat: init
This commit is contained in:
commit
c19ea940bd
320 changed files with 23845 additions and 0 deletions
23
profiles/user0/configs/desktop.nix
Executable file
23
profiles/user0/configs/desktop.nix
Executable file
|
@ -0,0 +1,23 @@
|
|||
{flake, ...}: let
|
||||
inherit (flake) self;
|
||||
moduleNames = [
|
||||
"braveHM"
|
||||
"commandLine"
|
||||
"entertainment"
|
||||
"extras"
|
||||
"fileManagement"
|
||||
"firefoxHM"
|
||||
"internet"
|
||||
"jellyfin"
|
||||
"privacy"
|
||||
"productionArt"
|
||||
"productionAudio"
|
||||
"productionCode"
|
||||
"productionVideo"
|
||||
"productionWriting"
|
||||
];
|
||||
|
||||
moduleImports = map (module: self.homeModules.${module}) moduleNames;
|
||||
in {
|
||||
imports = moduleImports;
|
||||
}
|
19
profiles/user0/configs/laptop.nix
Executable file
19
profiles/user0/configs/laptop.nix
Executable file
|
@ -0,0 +1,19 @@
|
|||
{flake, ...}: let
|
||||
inherit (flake) self;
|
||||
moduleNames = [
|
||||
"braveHM"
|
||||
"commandLine"
|
||||
"entertainment"
|
||||
"extras"
|
||||
"fileManagement"
|
||||
"firefoxHM"
|
||||
"internet"
|
||||
"privacy"
|
||||
"productionCode"
|
||||
"productionWriting"
|
||||
];
|
||||
|
||||
moduleImports = map (module: self.homeModules.${module}) moduleNames;
|
||||
in {
|
||||
imports = moduleImports;
|
||||
}
|
13
profiles/user0/configs/server.nix
Executable file
13
profiles/user0/configs/server.nix
Executable file
|
@ -0,0 +1,13 @@
|
|||
{flake, ...}: let
|
||||
inherit (flake) self;
|
||||
moduleNames = [
|
||||
"commandLine"
|
||||
"firefoxHM"
|
||||
"productionCode"
|
||||
"productionVideo"
|
||||
];
|
||||
|
||||
moduleImports = map (module: self.homeModules.${module}) moduleNames;
|
||||
in {
|
||||
imports = moduleImports;
|
||||
}
|
100
profiles/user0/default.nix
Executable file
100
profiles/user0/default.nix
Executable file
|
@ -0,0 +1,100 @@
|
|||
{
|
||||
config,
|
||||
flake,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (flake.config.people) user0;
|
||||
inherit (flake.config.people.user.${user0}) name git;
|
||||
|
||||
hostname = config.networking.hostName;
|
||||
in {
|
||||
users = {
|
||||
users.${user0} = {
|
||||
description = name;
|
||||
isNormalUser = true;
|
||||
shell = pkgs.nushell;
|
||||
extraGroups = [
|
||||
"adbusers"
|
||||
"caddy"
|
||||
"disk"
|
||||
"jellyfin"
|
||||
"libvirtd"
|
||||
"minecraft"
|
||||
"navidrome"
|
||||
"netdev"
|
||||
"networkmanager"
|
||||
"nextcloud"
|
||||
"ollama"
|
||||
"postgres"
|
||||
"redis-mastodon"
|
||||
"samba"
|
||||
"syncthing"
|
||||
"vaultwarden"
|
||||
"vboxusers"
|
||||
"wheel"
|
||||
];
|
||||
};
|
||||
};
|
||||
home-manager.users = {
|
||||
${user0} = {
|
||||
home = {
|
||||
username = user0;
|
||||
homeDirectory = "/home/${user0}";
|
||||
file = {
|
||||
"./.steam/steam/steam_dev.cfg" = {
|
||||
source = ../../nixos/modules/steam/steam_dev.cfg;
|
||||
};
|
||||
"./justfile" = {
|
||||
source = ./justfile;
|
||||
};
|
||||
"./Files/Scripts/list.sh" = {
|
||||
source = ./files/list.sh;
|
||||
executable = true;
|
||||
};
|
||||
"./Files/Scripts/loop.sh" = {
|
||||
source = ./files/loop.sh;
|
||||
executable = true;
|
||||
};
|
||||
};
|
||||
sessionVariables = {};
|
||||
};
|
||||
imports = [
|
||||
{home.stateVersion = config.system.stateVersion;}
|
||||
(
|
||||
import ./configs/${hostname}.nix {flake = flake;}
|
||||
)
|
||||
];
|
||||
};
|
||||
};
|
||||
systemd.tmpfiles = let
|
||||
createDir = [
|
||||
"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"
|
||||
];
|
||||
|
||||
removeDir = [
|
||||
"Desktop"
|
||||
"Documents"
|
||||
"Music"
|
||||
"Pictures"
|
||||
"Public"
|
||||
"Templates"
|
||||
"Videos"
|
||||
];
|
||||
in {
|
||||
rules =
|
||||
["d ${git.path0} 0755 ${user0} users -"]
|
||||
++ (map (path: "d /home/${user0}/${path} 0755 ${user0} users -") createDir)
|
||||
++ (map (path: "R /home/${user0}/${path} 0755 ${user0} users - -") removeDir);
|
||||
};
|
||||
}
|
27
profiles/user0/files/list.sh
Executable file
27
profiles/user0/files/list.sh
Executable file
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Function to list directories recursively and sort them alphabetically
|
||||
list_directories() {
|
||||
local parent_dir=$1
|
||||
local output_file=$2
|
||||
|
||||
# Clear the output file if it exists
|
||||
> "$output_file"
|
||||
|
||||
# Recursively find and list directories, then sort them and write to the output file
|
||||
while IFS= read -r dir; do
|
||||
echo "$dir" >> "$output_file"
|
||||
done < <(find "$parent_dir" -type d | sort)
|
||||
}
|
||||
|
||||
# Main script execution
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "Usage: $0 parent_directory"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
parent_directory=$1
|
||||
output_file="nested_directories.txt"
|
||||
|
||||
list_directories "$parent_directory" "$output_file"
|
||||
echo "Directory paths have been written to $output_file"
|
3
profiles/user0/files/loop.sh
Executable file
3
profiles/user0/files/loop.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
while true ; do date ; natpmpc -a 1 0 udp 60 -g 10.2.0.1 && natpmpc -a 1 0 tcp 60 -g 10.2.0.1 || { echo -e "ERROR with natpmpc command \a" ; break ; } ; sleep 45 ; done
|
14
profiles/user0/justfile
Executable file
14
profiles/user0/justfile
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue