Evie Litherland-Smith
10a44cbc2d
Move collection expressions from hosts/ into services/ as importable modules Remove service/hostname.nix collections Remove all imports from host/ expressions and include as modules in flake.nix Set sensible defaults that propagate to (I think) everything
248 lines
6.9 KiB
Nix
248 lines
6.9 KiB
Nix
{ pkgs, lib, user, shellConfig, ... }:
|
|
|
|
{
|
|
home.packages = with pkgs; [
|
|
openfortivpn
|
|
nomachine-client
|
|
teams-for-linux
|
|
zoom-us
|
|
];
|
|
programs = {
|
|
git.userEmail = "evie.litherland-smith@ukaea.uk";
|
|
ssh.matchBlocks = {
|
|
"git.ccfe.ac.uk" = { user = "git"; };
|
|
"freia" = {
|
|
hostname = "freia020.hpc.l";
|
|
localForwards = [
|
|
{
|
|
# Jupyter Lab
|
|
bind.port = 6702;
|
|
host.address = "localhost";
|
|
host.port = 6702;
|
|
}
|
|
{
|
|
# Dash/Plotly
|
|
bind.port = 8051;
|
|
host.address = "localhost";
|
|
host.port = 8050;
|
|
}
|
|
];
|
|
};
|
|
"freia???" = lib.hm.dag.entryAfter [ "freia" ] { hostname = "%h.hpc.l"; };
|
|
"heimdall" = {
|
|
hostname = "heimdall003.jet.uk";
|
|
localForwards = [
|
|
{
|
|
# Jupyter Lab
|
|
bind.port = 6703;
|
|
host.address = "localhost";
|
|
host.port = 6702;
|
|
}
|
|
{
|
|
# Dash/Plotly
|
|
bind.port = 8052;
|
|
host.address = "localhost";
|
|
host.port = 8050;
|
|
}
|
|
];
|
|
};
|
|
"heimdall???" =
|
|
lib.hm.dag.entryAfter [ "heimdall" ] { hostname = "%h.jet.uk"; };
|
|
"freia* heimdall*" =
|
|
lib.hm.dag.entryAfter [ "freia" "freia???" "heimdall" "heimdall???" ] {
|
|
user = "elitherl";
|
|
compression = true;
|
|
};
|
|
};
|
|
firefox.profiles.default = {
|
|
settings."browser.startup.homepage" = "https://nucleus.ukaea.uk";
|
|
bookmarks = [{
|
|
name = "toolbar";
|
|
toolbar = true;
|
|
bookmarks = [
|
|
{
|
|
name = "Gitea";
|
|
tags = [ "git" "source" "xenia" ];
|
|
url = "https://git.xenia.me.uk";
|
|
}
|
|
{
|
|
name = "GitHub";
|
|
tags = [ "git" "source" ];
|
|
url = "https://github.com";
|
|
}
|
|
{
|
|
name = "GitLab";
|
|
tags = [ "git" "source" ];
|
|
url = "https://gitlab.com";
|
|
}
|
|
{
|
|
name = "UKAEA GitLab";
|
|
tags = [ "git" "source" ];
|
|
url = "https://git.ccfe.ac.uk";
|
|
}
|
|
{
|
|
name = "Nucleus";
|
|
url = "https://nucleus.ukaea.uk";
|
|
}
|
|
{
|
|
name = "U4BW";
|
|
tags = [ "admin" ];
|
|
url = "https://ubw.unit4cloud.com/uk_aea_prod_web";
|
|
}
|
|
{
|
|
name = "Marval";
|
|
tags = [ "admin" "helpdesk" ];
|
|
url = "https://marval.service.ukaea.uk/MSMSelfService/Index.aspx";
|
|
}
|
|
{
|
|
name = "JET homepage";
|
|
tags = [ "JET" ];
|
|
url = "http://w3.jet.uk/index.shtml";
|
|
}
|
|
{
|
|
name = "Physics Summary";
|
|
tags = [ "JET" "operations" ];
|
|
url =
|
|
"https://users.euro-fusion.org/pages/physics-summary/LatestSession.php";
|
|
}
|
|
{
|
|
name = "JSPO";
|
|
tags = [ "JET" "operations" ];
|
|
url = "https://www.jspo.jet.uk/";
|
|
}
|
|
{
|
|
name = "DRS";
|
|
tags = [ "JET" "operations" ];
|
|
url = "http://jlswebhost.jet.uk:8087/jls/experiments/indexdrs.html";
|
|
}
|
|
{
|
|
name = "pySpec";
|
|
tags = [ "JET" "operations" ];
|
|
url = "http://heimdall003.jet.uk:3060/v1/interactive";
|
|
}
|
|
{
|
|
name = "OpenWikis";
|
|
bookmarks = [
|
|
{
|
|
name = "Home page";
|
|
tags = [ "JET" "operations" "wiki" ];
|
|
url = "https://wiki.jetdata.eu/open/index.php?title=Main_Page";
|
|
}
|
|
{
|
|
name = "Spectroscopy Group";
|
|
tags = [ "JET" "operations" "wiki" ];
|
|
url =
|
|
"https://wiki.jetdata.eu/open/index.php?title=Spectroscopy_Group:index";
|
|
}
|
|
{
|
|
name = "Diagnostic Coordinator";
|
|
tags = [ "JET" "operations" "wiki" ];
|
|
url =
|
|
"https://wiki.jetdata.eu/open/index.php?title=Diagnostic_Coordinator_Wiki";
|
|
}
|
|
{
|
|
name = "KS5";
|
|
tags = [ "JET" "operations" "wiki" ];
|
|
url = "https://wiki.jetdata.eu/open/index.php?title=CXS:Topic3";
|
|
}
|
|
{
|
|
name = "KT3";
|
|
tags = [ "JET" "operations" "wiki" ];
|
|
url =
|
|
"https://wiki.jetdata.eu/open/index.php?title=KT3_Journals";
|
|
}
|
|
];
|
|
}
|
|
{
|
|
name = "JET Mimics";
|
|
bookmarks = [
|
|
{
|
|
name = "Countdown";
|
|
tags = [ "JET" "operations" "mimics" ];
|
|
url = "http://webmimic.jet.uk/mc/codas/countdown";
|
|
}
|
|
{
|
|
name = "KS5";
|
|
tags = [ "JET" "operations" "mimics" ];
|
|
url = "http://webmimic.jet.uk/DG/codas/ks5.mim.html";
|
|
}
|
|
{
|
|
name = "KT3";
|
|
tags = [ "JET" "operations" "mimics" ];
|
|
url = "http://webmimic.jet.uk/DG/codas/kt3spec.mim.html";
|
|
}
|
|
];
|
|
}
|
|
];
|
|
}];
|
|
};
|
|
};
|
|
services.kanshi.profiles = {
|
|
undocked = {
|
|
outputs = [
|
|
{
|
|
criteria = "eDP-1";
|
|
mode = "1920x1080";
|
|
position = "0,0";
|
|
scale = 1.0;
|
|
status = "enable";
|
|
}
|
|
{
|
|
criteria = "*";
|
|
status = "enable";
|
|
}
|
|
];
|
|
};
|
|
work = {
|
|
outputs = [
|
|
{
|
|
criteria = "Iiyama North America PLB2403WS 0574281251316";
|
|
position = "0,0";
|
|
status = "enable";
|
|
}
|
|
{
|
|
criteria = "eDP-1";
|
|
status = "disable";
|
|
}
|
|
{
|
|
criteria = "*";
|
|
status = "enable";
|
|
}
|
|
];
|
|
};
|
|
home = {
|
|
outputs = [
|
|
{
|
|
criteria = "Acer Technologies ED270R TJMEE0043W01";
|
|
position = "0,0";
|
|
status = "enable";
|
|
}
|
|
{
|
|
criteria = "eDP-1";
|
|
status = "disable";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
xdg.configFile."hypr/extra.conf".text = ''
|
|
misc {
|
|
disable_hyprland_logo = true
|
|
disable_splash_rendering = true
|
|
}
|
|
|
|
monitor=eDP-1,preferred,auto,1
|
|
monitor=desc:Iiyama North America PLB2403WS 0574281251316,preferred,0x185,1
|
|
monitor=desc:Dell Inc. DELL U2417H 5K9YD872FY1L,preferred,1920x0,1,transform,1
|
|
monitor=desc:Acer Technologies ED270R TJMEE0043W01,highrr,0x0,1
|
|
|
|
windowrule = nofullscreenrequest,(Nxplayer.bin)
|
|
windowrule = nomaximizerequest,(Nxplayer.bin)
|
|
windowrulev2 = nofullscreenrequest,title:(Zoom|zoom)
|
|
windowrulev2 = nomaximizerequest,title:(Zoom|zoom)
|
|
|
|
windowrule = workspace 6,(teams-for-linux)
|
|
windowrulev2 = workspace 7,title:(Zoom|zoom)
|
|
windowrule = workspace 8,(Nxplayer.bin)
|
|
'';
|
|
}
|