more refactoring
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
./system-modules/users.nix
|
./system-modules/users.nix
|
||||||
./system-modules/virtualisation.nix
|
./system-modules/virtualisation.nix
|
||||||
./system-modules/ydotool.nix
|
./system-modules/ydotool.nix
|
||||||
] ++ (if (hyper.host == "NxACE") then [
|
] ++ (if hyper.isServer then [
|
||||||
./system-modules/nx2site.nix
|
./system-modules/nx2site.nix
|
||||||
./system-modules/hugo.nix
|
./system-modules/hugo.nix
|
||||||
./system-modules/postgres.nix
|
./system-modules/postgres.nix
|
||||||
|
|||||||
@@ -8,26 +8,34 @@ let hyper-base = rec {
|
|||||||
main-pkgs-version = "25.11";
|
main-pkgs-version = "25.11";
|
||||||
isServer = false;
|
isServer = false;
|
||||||
isMobile = false;
|
isMobile = false;
|
||||||
|
isPersonal = false;
|
||||||
isNOD = false;
|
isNOD = false;
|
||||||
|
isWorkstation = false;
|
||||||
nvidia = {
|
nvidia = {
|
||||||
enable = false;
|
enable = false;
|
||||||
prime = false;
|
prime = false;
|
||||||
};
|
};
|
||||||
}; in host: if host == "NxNORTH" then hyper-base // { inherit host;
|
}; in host: if host == "NxNORTH" then hyper-base // { inherit host;
|
||||||
nvidia.enable = true;
|
nvidia.enable = true;
|
||||||
|
isPersonal = true;
|
||||||
|
isWorkstation = true;
|
||||||
} else if host == "NxXPS" then hyper-base // { inherit host;
|
} else if host == "NxXPS" then hyper-base // { inherit host;
|
||||||
nvidia = {
|
nvidia = {
|
||||||
enable = true;
|
enable = true;
|
||||||
prime = true;
|
prime = true;
|
||||||
};
|
};
|
||||||
isMobile = true;
|
isMobile = true;
|
||||||
|
isPersonal = true;
|
||||||
|
isWorkstation = true;
|
||||||
} else if host == "NxACE" then hyper-base // { inherit host;
|
} else if host == "NxACE" then hyper-base // { inherit host;
|
||||||
isServer = true;
|
isServer = true;
|
||||||
} else if host == "NxDCS" then hyper-base // { inherit host;
|
} else if host == "NxDCS" then hyper-base // { inherit host;
|
||||||
|
isWorkstation = true;
|
||||||
isMobile = true;
|
isMobile = true;
|
||||||
} else if host == "NxS23U" then hyper-base // { inherit host;
|
} else if host == "NxS23U" then hyper-base // { inherit host;
|
||||||
isMobile = true;
|
isMobile = true;
|
||||||
isNOD = true;
|
isNOD = true;
|
||||||
|
isPersonal = true;
|
||||||
main-pkgs-version = "24.05";
|
main-pkgs-version = "24.05";
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
user = "nix-on-droid";
|
user = "nix-on-droid";
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
{ pkgs, ... }@all: with all;
|
{ pkgs, ... }@all: with all; lib.mkIf (hyper.isPersonal) {
|
||||||
lib.mkIf (hyper.host != "NxACE")
|
|
||||||
{
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
thunderbird
|
thunderbird
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -115,7 +115,7 @@
|
|||||||
'';
|
'';
|
||||||
nx_backup = let
|
nx_backup = let
|
||||||
destination = if hyper.host == "NxNORTH" then "${hyper.home}/shared/" else "${hyper.home}/backups/";
|
destination = if hyper.host == "NxNORTH" then "${hyper.home}/shared/" else "${hyper.home}/backups/";
|
||||||
in pkgs.lib.mkIf (hyper.host == "NxXPS" || hyper.host == "NxNORTH") ''
|
in pkgs.lib.mkIf (hyper.isPersonal) ''
|
||||||
set RPATH (curl -s https://${hyper.domain}/latest-backup)
|
set RPATH (curl -s https://${hyper.domain}/latest-backup)
|
||||||
rsync -avz --info=progress2 -e "ssh -p ${builtins.toString secrets.ssh.port}" ${hyper.user}@ssh.${hyper.domain}:"$RPATH" ${destination}
|
rsync -avz --info=progress2 -e "ssh -p ${builtins.toString secrets.ssh.port}" ${hyper.user}@ssh.${hyper.domain}:"$RPATH" ${destination}
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
{ pkgs, ... }@all: with all;
|
{ pkgs, ... }@all: with all; {
|
||||||
lib.mkIf (hyper.host != "NxACE")
|
|
||||||
{
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
texlab # LSP
|
texlab # LSP
|
||||||
(texlive.combine { inherit (texlive) scheme-full xifthen ifmtarg framed paralist titlesec xcolor; })
|
(texlive.combine { inherit (texlive) scheme-full xifthen ifmtarg framed paralist titlesec xcolor; })
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ pkgs, hyper, ... }: {
|
{ pkgs, hyper, ... }: {
|
||||||
home.packages = with pkgs; [
|
home.packages = (with pkgs; [
|
||||||
chromium
|
chromium
|
||||||
gnome-clocks
|
gnome-clocks
|
||||||
gnome-calculator
|
gnome-calculator
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
qbittorrent
|
qbittorrent
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
xfce.thunar
|
xfce.thunar
|
||||||
] ++ (if (hyper.host != "NxACE") then [
|
]) ++ (if hyper.isWorkstation then (with pkgs; [
|
||||||
signal-desktop
|
signal-desktop
|
||||||
unstable.code-cursor-fhs
|
unstable.code-cursor-fhs
|
||||||
latest.antigravity
|
latest.antigravity
|
||||||
@@ -19,5 +19,5 @@
|
|||||||
audacity
|
audacity
|
||||||
gemini-cli
|
gemini-cli
|
||||||
libreoffice
|
libreoffice
|
||||||
] else []);
|
]) else []);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{ ... }: {
|
{ ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./programming/c.nix
|
./programming/c.nix
|
||||||
./programming/gleam.nix
|
# ./programming/gleam.nix
|
||||||
./programming/glsl.nix
|
./programming/glsl.nix
|
||||||
./programming/go.nix
|
./programming/go.nix
|
||||||
./programming/java.nix
|
./programming/java.nix
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
{ pkgs, ... }@all: with all;
|
{ pkgs, ... }@all: with all; {
|
||||||
lib.mkIf (hyper.host != "NxACE")
|
|
||||||
{
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
erlang
|
erlang
|
||||||
rebar3
|
rebar3
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ in {
|
|||||||
{ on = [ "g" "t" ]; run = "cd /tmp"; desc = "Go to the /tmp directory"; }
|
{ on = [ "g" "t" ]; run = "cd /tmp"; desc = "Go to the /tmp directory"; }
|
||||||
{ on = [ "g" "v" ]; run = "cd ~/Videos"; desc = "Go to the Videos directory"; }
|
{ on = [ "g" "v" ]; run = "cd ~/Videos"; desc = "Go to the Videos directory"; }
|
||||||
{ on = [ "g" "<Space>" ]; run = "cd --interactive"; desc = "Go to a directory interactively"; }
|
{ on = [ "g" "<Space>" ]; run = "cd --interactive"; desc = "Go to a directory interactively"; }
|
||||||
(pkgs.lib.mkIf (hyper.host == "NxACE") { on = [ "g" "s" ]; run = "cd /var/lib/hugo/nx2site"; desc = "Go to the Hugo Nx2.Site directory"; })
|
(pkgs.lib.mkIf (hyper.isServer) { on = [ "g" "s" ]; run = "cd /var/lib/hugo/nx2site"; desc = "Go to the Hugo Nx2.Site directory"; })
|
||||||
# Navigation
|
# Navigation
|
||||||
{ on = "h"; run = "leave"; desc = "Go back to the parent directory"; }
|
{ on = "h"; run = "leave"; desc = "Go back to the parent directory"; }
|
||||||
{ on = "l"; run = "enter"; desc = "Enter the child directory"; }
|
{ on = "l"; run = "enter"; desc = "Enter the child directory"; }
|
||||||
|
|||||||
4
home.nix
4
home.nix
@@ -25,7 +25,7 @@
|
|||||||
./home-modules/hyprland-autoname-workspaces.nix
|
./home-modules/hyprland-autoname-workspaces.nix
|
||||||
./home-modules/hyprland.nix
|
./home-modules/hyprland.nix
|
||||||
./home-modules/kitty.nix
|
./home-modules/kitty.nix
|
||||||
./home-modules/latex.nix
|
# ./home-modules/latex.nix
|
||||||
./home-modules/mako.nix
|
./home-modules/mako.nix
|
||||||
# ./home-modules/matrix.nix
|
# ./home-modules/matrix.nix
|
||||||
./home-modules/mpv.nix
|
./home-modules/mpv.nix
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
./home-modules/yazi.nix
|
./home-modules/yazi.nix
|
||||||
./home-modules/zathura.nix
|
./home-modules/zathura.nix
|
||||||
./home-modules/zoxide.nix
|
./home-modules/zoxide.nix
|
||||||
] ++ (if (hyper.host == "NxACE") then [
|
] ++ (if hyper.isServer then [
|
||||||
./home-modules/nx2site.nix
|
./home-modules/nx2site.nix
|
||||||
./home-modules/nx2site-backup.nix
|
./home-modules/nx2site-backup.nix
|
||||||
./home-modules/calendar-campuszeit-fix.nix
|
./home-modules/calendar-campuszeit-fix.nix
|
||||||
|
|||||||
Reference in New Issue
Block a user