feat: init

This commit is contained in:
Nick 2024-10-06 15:25:05 -05:00
commit c19ea940bd
320 changed files with 23845 additions and 0 deletions

View 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;
}

View 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;
}

View 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
View 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
View 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
View 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
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

View file

@ -0,0 +1,16 @@
{flake, ...}: let
inherit (flake) self;
moduleNames = [
"commandLine"
"entertainment"
"extras"
"firefoxHM"
"internet"
"privacy"
"productionWriting"
];
moduleImports = map (module: self.homeModules.${module}) moduleNames;
in {
imports = moduleImports;
}

View file

@ -0,0 +1,16 @@
{flake, ...}: let
inherit (flake) self;
moduleNames = [
"commandLine"
"entertainment"
"extras"
"firefoxHM"
"internet"
"privacy"
"productionWriting"
];
moduleImports = map (module: self.homeModules.${module}) moduleNames;
in {
imports = moduleImports;
}

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

@ -0,0 +1,44 @@
{
config,
flake,
pkgs,
...
}: let
hostname = config.networking.hostName;
inherit (flake.config.people) user1;
inherit (flake.config.people.user.${user1}) name;
in {
users = {
users.${user1} = {
description = name;
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 = ./justfile;
"./.steam/steam/steam_dev.cfg".source = ../../nixos/modules/steam/steam_dev.cfg;
};
sessionVariables = {};
};
imports = [
{home.stateVersion = config.system.stateVersion;}
(import ./configs/${hostname}.nix {flake = flake;})
];
};
};
}

0
profiles/user1/justfile Executable file
View file

View file

@ -0,0 +1,22 @@
{flake, ...}: let
inherit (flake) self;
moduleNames = [
"commandLine"
"entertainment"
"extras"
"fileManagement"
"internet"
"internetExtras"
"productionArt"
"productionArtExtras"
"productionAudio"
"productionCode"
"productionVideo"
"productionWriting"
"wpsOffice"
];
moduleImports = map (module: self.homeModules.${module}) moduleNames;
in {
imports = moduleImports;
}

View file

@ -0,0 +1,16 @@
{flake, ...}: let
inherit (flake) self;
moduleNames = [
"commandLine"
"entertainment"
"extras"
"fileManagement"
"internet"
"internetExtras"
"wpsOffice"
];
moduleImports = map (module: self.homeModules.${module}) moduleNames;
in {
imports = moduleImports;
}

44
profiles/user2/default.nix Executable file
View file

@ -0,0 +1,44 @@
{
config,
flake,
pkgs,
...
}: let
hostname = config.networking.hostName;
inherit (flake.config.people) user2;
inherit (flake.config.people.user.${user2}) name;
in {
users = {
users.${user2} = {
description = name;
isNormalUser = true;
shell = pkgs.nushell;
extraGroups = [
"libvirtd"
"disk"
"networkmanager"
"vboxusers"
"wheel"
"adbusers"
"netdev"
];
};
};
home-manager.users = {
${user2} = {
home = {
username = user2;
homeDirectory = "/home/${user2}";
file = {
"./justfile".source = ./justfile;
"./.steam/steam/steam_dev.cfg".source = ../../nixos/modules/steam/steam_dev.cfg;
};
sessionVariables = {};
};
imports = [
{home.stateVersion = config.system.stateVersion;}
(import ./configs/${hostname}.nix {flake = flake;})
];
};
};
}

0
profiles/user2/justfile Executable file
View file