mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-09 13:24:38 -05:00
Compare commits
No commits in common. "0710d7d059677a9963be693d950f7c9311f0f44d" and "7b5dc571a0a63f41e3d56998ed01108646c66f28" have entirely different histories.
0710d7d059
...
7b5dc571a0
11 changed files with 28 additions and 45 deletions
|
@ -6,9 +6,9 @@ let
|
||||||
readWritePermissions
|
readWritePermissions
|
||||||
sambaPermissions
|
sambaPermissions
|
||||||
userIdForUser0
|
userIdForUser0
|
||||||
ceresIP
|
|
||||||
;
|
;
|
||||||
ceresName = "ceres";
|
ceresName = "ceres";
|
||||||
|
ceresIP = "192.168.50.140";
|
||||||
ceresStorageDriveName = "NAS1";
|
ceresStorageDriveName = "NAS1";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
let
|
let
|
||||||
inherit (devicesFunctions)
|
inherit (devicesFunctions)
|
||||||
ownerExclusiveReadWriteMask
|
ownerExclusiveReadWriteMask
|
||||||
charonIP
|
|
||||||
;
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -12,7 +11,7 @@ in
|
||||||
address0 = "";
|
address0 = "";
|
||||||
};
|
};
|
||||||
ip = {
|
ip = {
|
||||||
address0 = charonIP;
|
address0 = "192.168.50.42";
|
||||||
};
|
};
|
||||||
boot = {
|
boot = {
|
||||||
options = ownerExclusiveReadWriteMask;
|
options = ownerExclusiveReadWriteMask;
|
||||||
|
|
|
@ -2,17 +2,16 @@
|
||||||
let
|
let
|
||||||
inherit (devicesFunctions)
|
inherit (devicesFunctions)
|
||||||
ownerWriteOthersReadMask
|
ownerWriteOthersReadMask
|
||||||
deimosIP
|
|
||||||
;
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
label = "Deimos";
|
label = "Deimos";
|
||||||
name = "deimos";
|
name = "deimos";
|
||||||
sync = {
|
sync = {
|
||||||
address0 = deimosIP;
|
address0 = "";
|
||||||
};
|
};
|
||||||
ip = {
|
ip = {
|
||||||
address0 = deimosIP;
|
address0 = "192.168.50.142";
|
||||||
};
|
};
|
||||||
boot = {
|
boot = {
|
||||||
options = ownerWriteOthersReadMask;
|
options = ownerWriteOthersReadMask;
|
||||||
|
|
|
@ -3,7 +3,6 @@ let
|
||||||
inherit (devicesFunctions)
|
inherit (devicesFunctions)
|
||||||
ownerWriteOthersReadMask
|
ownerWriteOthersReadMask
|
||||||
readWritePermissions
|
readWritePermissions
|
||||||
marsIP
|
|
||||||
;
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -13,7 +12,7 @@ in
|
||||||
address0 = "";
|
address0 = "";
|
||||||
};
|
};
|
||||||
ip = {
|
ip = {
|
||||||
address0 = marsIP;
|
address0 = "192.168.50.196";
|
||||||
};
|
};
|
||||||
boot = {
|
boot = {
|
||||||
options = ownerWriteOthersReadMask;
|
options = ownerWriteOthersReadMask;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{ devicesFunctions }:
|
{ devicesFunctions }:
|
||||||
let
|
let
|
||||||
inherit (devicesFunctions)
|
inherit (devicesFunctions)
|
||||||
phoneIP
|
|
||||||
dummy
|
dummy
|
||||||
;
|
;
|
||||||
in
|
in
|
||||||
|
@ -13,6 +12,6 @@ in
|
||||||
address1 = "RUKSHY4-UCBYRVG-CVYFCMU-M3NLA3Q-JINRF5V-YPR5W32-TEIBJN6-DNQRCAR"; # User2
|
address1 = "RUKSHY4-UCBYRVG-CVYFCMU-M3NLA3Q-JINRF5V-YPR5W32-TEIBJN6-DNQRCAR"; # User2
|
||||||
};
|
};
|
||||||
ip = {
|
ip = {
|
||||||
address0 = phoneIP;
|
address0 = "192.168.50.243";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{ devicesFunctions }:
|
{ devicesFunctions }:
|
||||||
let
|
let
|
||||||
inherit (devicesFunctions)
|
inherit (devicesFunctions)
|
||||||
brotherIP
|
|
||||||
dummy
|
dummy
|
||||||
;
|
;
|
||||||
in
|
in
|
||||||
|
@ -9,6 +8,6 @@ in
|
||||||
name = dummy;
|
name = dummy;
|
||||||
label = "Brother-HL-2170W";
|
label = "Brother-HL-2170W";
|
||||||
ip = {
|
ip = {
|
||||||
address0 = brotherIP;
|
address0 = "192.168.50.195";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,6 @@ let
|
||||||
sambaPermissions
|
sambaPermissions
|
||||||
userIdForUser0
|
userIdForUser0
|
||||||
userIdForUser1
|
userIdForUser1
|
||||||
synologyIP
|
|
||||||
;
|
;
|
||||||
|
|
||||||
user0 = "nick";
|
user0 = "nick";
|
||||||
|
@ -12,6 +11,7 @@ let
|
||||||
user0Name = "Nick";
|
user0Name = "Nick";
|
||||||
user1Name = "Garnet";
|
user1Name = "Garnet";
|
||||||
synologyName = "synology";
|
synologyName = "synology";
|
||||||
|
synologyIP = "192.168.50.209";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
label = "Synology";
|
label = "Synology";
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
let
|
let
|
||||||
inherit (devicesFunctions)
|
inherit (devicesFunctions)
|
||||||
readWritePermissions
|
readWritePermissions
|
||||||
venusIP
|
|
||||||
;
|
;
|
||||||
drivePath = "/run/media";
|
drivePath = "/run/media";
|
||||||
byLabel = "/dev/disk/by-label";
|
byLabel = "/dev/disk/by-label";
|
||||||
|
@ -12,7 +11,7 @@ in
|
||||||
label = "Venus";
|
label = "Venus";
|
||||||
name = "venus";
|
name = "venus";
|
||||||
ip = {
|
ip = {
|
||||||
address0 = venusIP;
|
address0 = "192.168.58.104";
|
||||||
};
|
};
|
||||||
boot = {
|
boot = {
|
||||||
options = [
|
options = [
|
||||||
|
|
|
@ -33,14 +33,6 @@ let
|
||||||
];
|
];
|
||||||
dummy = [
|
dummy = [
|
||||||
];
|
];
|
||||||
ceresIP = "192.168.50.140";
|
|
||||||
charonIP = "192.168.50.42";
|
|
||||||
deimosIP = "192.168.50.142";
|
|
||||||
marsIP = "192.168.50.196";
|
|
||||||
phoneIP = "192.168.50.243";
|
|
||||||
synologyIP = "192.168.50.209";
|
|
||||||
venusIP = "192.168.58.104";
|
|
||||||
brotherIP = "192.168.50.195";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
deviceswithFunctions = builtins.listToAttrs (
|
deviceswithFunctions = builtins.listToAttrs (
|
||||||
|
|
|
@ -26,6 +26,7 @@ in
|
||||||
"jellyfin"
|
"jellyfin"
|
||||||
"libvirtd"
|
"libvirtd"
|
||||||
"minecraft"
|
"minecraft"
|
||||||
|
"navidrome"
|
||||||
"netdev"
|
"netdev"
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
"nextcloud"
|
"nextcloud"
|
||||||
|
@ -48,22 +49,7 @@ in
|
||||||
homeDirectory = "/home/${user0}";
|
homeDirectory = "/home/${user0}";
|
||||||
file = {
|
file = {
|
||||||
"./justfile" = {
|
"./justfile" = {
|
||||||
text = ''
|
source = ./files/justfile;
|
||||||
vpn:
|
|
||||||
sudo protonvpn c --c CA
|
|
||||||
|
|
||||||
vpnoff:
|
|
||||||
sudo protonvpn d
|
|
||||||
|
|
||||||
rebuild:
|
|
||||||
nixos-rebuild switch --use-remote-sudo --flake ~/Files/Projects/dotfiles#${hostname} --show-trace
|
|
||||||
|
|
||||||
elm:
|
|
||||||
cd ~/Files/Projects/website/frontend ; elm-land server
|
|
||||||
|
|
||||||
server:
|
|
||||||
ssh ${devices.ceres.ip.address0}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
"./Files/Scripts/list.sh" = {
|
"./Files/Scripts/list.sh" = {
|
||||||
source = ./files/list.sh;
|
source = ./files/list.sh;
|
||||||
|
@ -73,6 +59,9 @@ in
|
||||||
source = ./files/loop.sh;
|
source = ./files/loop.sh;
|
||||||
executable = true;
|
executable = true;
|
||||||
};
|
};
|
||||||
|
"./.config/vesktop/themes/macchiato-theme.css" = {
|
||||||
|
source = ./files/themes/vesktop/macchiato-theme.css;
|
||||||
|
};
|
||||||
"./.config/scripts/get_weather.sh" = {
|
"./.config/scripts/get_weather.sh" = {
|
||||||
source = ./files/get_weather.sh;
|
source = ./files/get_weather.sh;
|
||||||
executable = true;
|
executable = true;
|
||||||
|
@ -81,12 +70,6 @@ in
|
||||||
source = ./files/wallpaper;
|
source = ./files/wallpaper;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
"./.config/vesktop/themes/macchiato-theme.css" = {
|
|
||||||
source = ./files/themes/vesktop/macchiato-theme.css;
|
|
||||||
};
|
|
||||||
"./.config/qBittorrent/themes/catppuccin-mocha.qbtheme" = {
|
|
||||||
source = ./files/themes/qbittorrent/macchiato.qbtheme;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
VISUAL = lib.getExe pkgs.zed-editor;
|
VISUAL = lib.getExe pkgs.zed-editor;
|
||||||
|
|
14
profiles/user0/files/justfile
Executable file
14
profiles/user0/files/justfile
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
vpn:
|
||||||
|
sudo protonvpn c --c CA
|
||||||
|
|
||||||
|
vpnoff:
|
||||||
|
sudo protonvpn d
|
||||||
|
|
||||||
|
rebuild:
|
||||||
|
nixos-rebuild switch --use-remote-sudo --flake ~/Files/Projects/dotfiles#mars --show-trace
|
||||||
|
|
||||||
|
elm:
|
||||||
|
cd ~/Files/Projects/website/frontend; elm-land server
|
||||||
|
|
||||||
|
server:
|
||||||
|
ssh 192.168.50.140
|
Loading…
Add table
Add a link
Reference in a new issue