nixos/hosts/Ronin/home.nix
Evie Litherland-Smith a4c9090d84 Add anyrun plugins, update flake inputs
Update hyprland to latest tagged release

Move hyprland config inside nix expression so variable substitution can
be used
Use kanshi to completely control monitor config
2023-08-08 12:21:23 +01:00

202 lines
5.6 KiB
Nix

{ pkgs, lib, shellConfig, wallpapers, ... }:
let
username = "elitherl";
homeDirectory = "/home/${username}";
in {
imports = [ shellConfig ../../home ];
home = {
inherit username homeDirectory;
stateVersion = "22.11";
packages = with pkgs; [
thunderbird
openfortivpn
nomachine-client
teams-for-linux
zoom-us
];
};
programs = {
git.userEmail = "evie.litherland-smith@ukaea.uk";
ssh.matchBlocks = {
"git.ccfe.ac.uk" = { user = "git"; };
"jupyter" = {
localForwards = [{
bind.port = 6702;
host.address = "localhost";
host.port = 6702;
}];
};
"freia jupyter" = { hostname = "freia020.hpc.l"; };
"freia???" = lib.hm.dag.entryAfter [ "freia" ] { hostname = "%h.hpc.l"; };
"heimdall" = { hostname = "heimdall003.jet.uk"; };
"heimdall???" =
lib.hm.dag.entryAfter [ "heimdall" ] { hostname = "%h.jet.uk"; };
"freia* jupyter" = lib.hm.dag.entryAfter [
"jupyter"
"freia jupyter"
"freia???"
"heimdall"
"heimdall???"
] { user = "elitherl"; };
};
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 = "JET homepage";
tags = [ "JET" ];
url = "w3.jet.uk";
}
{
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 = "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 = "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/kt3.mim.html";
}
];
}
];
}];
};
};
services.kanshi.profiles = {
undocked = {
outputs = [{
criteria = "eDP-1";
mode = "1920x1080";
position = "0,0";
scale = 1.0;
status = "enable";
}];
exec = "${pkgs.swww}/bin/swww img ${wallpapers.outputs.default}";
};
work = {
outputs = [
{
criteria = "eDP-1";
mode = "1920x1080";
position = "0,305";
scale = 1.0;
status = "enable";
}
{
criteria = "Iiyama North America PLB2403WS 0574281251316";
mode = "1920x1200";
position = "1920,185";
scale = 1.0;
status = "enable";
}
{
criteria = "Dell Inc. DELL U2417H 5K9YD872FY1L";
mode = "1920x1080";
position = "3840,0";
scale = 1.0;
status = "enable";
}
];
exec = "${pkgs.swww}/bin/swww img ${wallpapers.outputs.default}";
};
home = {
outputs = [
{
criteria = "Acer Technologies ED270R TJMEE0043W01";
mode = "1920x1080@165.00";
position = "0,0";
scale = 1.0;
status = "enable";
}
{
criteria = "eDP-1";
mode = "1920x1080";
position = "1920,0";
scale = 1.0;
status = "enable";
}
];
exec = "${pkgs.swww}/bin/swww img ${wallpapers.outputs.default}";
};
};
}