Move common work config to home/work.nix

Add Nucleus as firefox homepage for work machines
This commit is contained in:
Evie Litherland-Smith 2024-05-24 07:26:04 +01:00
parent c9ae2d37e8
commit cc4e511a94
3 changed files with 23 additions and 27 deletions

View file

@ -1,14 +1,5 @@
{ {...}: {
config, imports = [./work.nix];
lib,
...
}: {
imports = [./default.nix];
programs.git.userEmail = config.accounts.email.accounts.outlook.address;
accounts.email.accounts = {
proton.primary = lib.mkForce false;
outlook.primary = lib.mkForce true;
};
wayland.windowManager.sway.config.output = { wayland.windowManager.sway.config.output = {
"Dell Inc. DELL P3223QE CCG8YN3" = { "Dell Inc. DELL P3223QE CCG8YN3" = {
pos = "0 0"; pos = "0 0";

View file

@ -1,19 +1,5 @@
{ {...}: {
config, imports = [./work.nix];
lib,
pkgs,
...
}: {
imports = [./default.nix];
home.packages = [
pkgs.freecad
(pkgs.writeShellScriptBin "ukaea-vpn-connect" "sudo ${pkgs.openfortivpn}/bin/openfortivpn -c ${./ukaea-vpn.conf}")
];
programs.git.userEmail = config.accounts.email.accounts.outlook.address;
accounts.email.accounts = {
proton.primary = lib.mkForce false;
outlook.primary = lib.mkForce true;
};
wayland.windowManager.sway.config.output = { wayland.windowManager.sway.config.output = {
"eDP-1".scale = "1.25"; "eDP-1".scale = "1.25";
"Dell Inc. DELL P3223QE CCG8YN3".scale = "1.5"; "Dell Inc. DELL P3223QE CCG8YN3".scale = "1.5";

19
home/work.nix Normal file
View file

@ -0,0 +1,19 @@
{
config,
lib,
pkgs,
...
}: {
imports = [./default.nix];
home.packages = [
(pkgs.writeShellScriptBin "ukaea-vpn-connect" "sudo ${pkgs.openfortivpn}/bin/openfortivpn -c ${./ukaea-vpn.conf}")
];
programs = {
git.userEmail = config.accounts.email.accounts.outlook.address;
firefox.policies.Homepage.URL = "https://nucleus.ukaea.uk";
};
accounts.email.accounts = {
proton.primary = lib.mkForce false;
outlook.primary = lib.mkForce true;
};
}