Move doom flake contents back in

Doom emacs config is still separate repo, but flake contents are back

Remove work firefox profile, switched to chromium instead for Teams fix
This commit is contained in:
Evie Litherland-Smith 2023-07-26 15:45:24 +01:00
parent 272669bcbc
commit 55e72cb9cc
11 changed files with 129 additions and 323 deletions

View file

@ -1,61 +1,5 @@
{ {
"nodes": { "nodes": {
"doom-emacs": {
"inputs": {
"emacs-overlay": "emacs-overlay"
},
"locked": {
"lastModified": 1690365066,
"narHash": "sha256-s/L/tSZYb5+Ijhf7wOaf+rhoW9R8FIdLphMYpr62JeY=",
"ref": "refs/heads/main",
"rev": "5b1259840d7f5e5ac379f7b4cce5fa53974aff52",
"revCount": 11,
"type": "git",
"url": "https://git.xenia.me.uk/xenia/emacs.git"
},
"original": {
"type": "git",
"url": "https://git.xenia.me.uk/xenia/emacs.git"
}
},
"emacs-overlay": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs",
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1690250820,
"narHash": "sha256-1EgvKQJ/rT23kY9SW5t+1vVMt5PqYsR1459TS87ulzg=",
"owner": "nix-community",
"repo": "emacs-overlay",
"rev": "9815e71dd833db0b076072df6f7ea46737854470",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "emacs-overlay",
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1689068808,
"narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -121,38 +65,6 @@
} }
}, },
"nixpkgs": { "nixpkgs": {
"locked": {
"lastModified": 1690031011,
"narHash": "sha256-kzK0P4Smt7CL53YCdZCBbt9uBFFhE0iNvCki20etAf4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "12303c652b881435065a98729eb7278313041e49",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1690148897,
"narHash": "sha256-l/j/AX1d2K79EWslwgWR2+htkzCbtjKZsS5NbWXnhz4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ac1acba43b2f9db073943ff5ed883ce7e8a40a2c",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-23.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1690179384, "lastModified": 1690179384,
"narHash": "sha256-+arbgqFTAtoeKtepW9wCnA0njCOyoiDFyl0Q0SBSOtE=", "narHash": "sha256-+arbgqFTAtoeKtepW9wCnA0njCOyoiDFyl0Q0SBSOtE=",
@ -170,29 +82,13 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"doom-emacs": "doom-emacs",
"home-manager": "home-manager", "home-manager": "home-manager",
"hyprland": "hyprland", "hyprland": "hyprland",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs",
"tokyonight": "tokyonight", "tokyonight": "tokyonight",
"wallpapers": "wallpapers" "wallpapers": "wallpapers"
} }
}, },
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"tokyonight": { "tokyonight": {
"flake": false, "flake": false,
"locked": { "locked": {

View file

@ -11,7 +11,6 @@
url = "github:hyprwm/Hyprland"; url = "github:hyprwm/Hyprland";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
doom-emacs.url = "git+https://git.xenia.me.uk/xenia/emacs.git";
wallpapers.url = "git+https://git.xenia.me.uk/xenia/wallpapers.git"; wallpapers.url = "git+https://git.xenia.me.uk/xenia/wallpapers.git";
tokyonight = { tokyonight = {
url = "github:folke/tokyonight.nvim"; url = "github:folke/tokyonight.nvim";
@ -19,8 +18,7 @@
}; };
}; };
outputs = { self, nixpkgs, home-manager, hyprland, doom-emacs, wallpapers outputs = { self, nixpkgs, home-manager, hyprland, wallpapers, tokyonight, }:
, tokyonight, }:
let shell = "zsh"; let shell = "zsh";
in { in {
nixosConfigurations = let nixosConfigurations = let
@ -42,8 +40,7 @@
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;
config.allowUnfree = true; config.allowUnfree = true;
overlays = overlays = [ waybar-experimental-overlay ];
[ waybar-experimental-overlay doom-emacs.outputs.overlay.default ];
}; };
in { in {
Legion = let hostname = "Legion"; Legion = let hostname = "Legion";
@ -88,10 +85,7 @@
pkgs = self.nixosConfigurations.${hostname}.pkgs; pkgs = self.nixosConfigurations.${hostname}.pkgs;
in home-manager.lib.homeManagerConfiguration { in home-manager.lib.homeManagerConfiguration {
inherit pkgs extraSpecialArgs; inherit pkgs extraSpecialArgs;
modules = [ modules = [ ./hosts/${hostname}/home.nix ];
./hosts/${hostname}/home.nix
doom-emacs.outputs.homeManagerModules.default
];
}; };
# Legacy home configurations # Legacy home configurations
"tux@Monarch" = let "tux@Monarch" = let
@ -100,10 +94,7 @@
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
in home-manager.lib.homeManagerConfiguration { in home-manager.lib.homeManagerConfiguration {
inherit pkgs extraSpecialArgs; inherit pkgs extraSpecialArgs;
modules = [ modules = [ ./hosts/${hostname}/home.nix ];
./hosts/${hostname}/home.nix
doom-emacs.outputs.homeManagerModules.default
];
}; };
}; };
}; };

49
home/emacs/default.nix Normal file
View file

@ -0,0 +1,49 @@
{ pkgs, ... }:
{
# Emacs server service
services.emacs = {
enable = true;
package = pkgs.emacs28NativeComp;
defaultEditor = true;
startWithUserSession = true;
client.enable = true;
};
home.packages = with pkgs; [
# Emacs dependencies
emacs28NativeComp
git
ripgrep
coreutils
cmake
fd
# Language-specific requirements
ispell
sqlite
pandoc
python3
gfortran
texlive.combined.scheme-medium
texlab
# Formatters
nixfmt
beautysh
black
nodePackages.fixjson
fprettify
isort
shellharden
stylua
python3Packages.mdformat
# LSP servers
nil
fortls
nodePackages.pyright
nodePackages.yaml-language-server
nodePackages.bash-language-server
shellcheck
];
}

View file

@ -1,9 +1,10 @@
{pkgs, ...}: { { pkgs, ... }: {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
profiles.default = { profiles.default = {
settings = { settings = {
"app.shield.optoutstudies.enabled" = false; "app.shield.optoutstudies.enabled" = false;
"browser.startup.homepage" = "https://cloud.xenia.me.uk";
"browser.bookmarks.addedImportButton" = true; "browser.bookmarks.addedImportButton" = true;
"browser.bookmarks.showMobileBookmarks" = true; "browser.bookmarks.showMobileBookmarks" = true;
"browser.toolbars.bookmarks.visibility" = "newtab"; "browser.toolbars.bookmarks.visibility" = "newtab";
@ -36,28 +37,84 @@
search = { search = {
default = "DuckDuckGo"; default = "DuckDuckGo";
force = true; force = true;
order = ["DuckDuckGo"]; order = [ "DuckDuckGo" ];
engines = { engines = {
"MyNixOS" = { "MyNixOS" = {
urls = [{template = "https://mynixos.com/search?q={searchTerms}";}]; urls =
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; [{ template = "https://mynixos.com/search?q={searchTerms}"; }];
definedAliases = ["@np"]; icon =
"${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@np" ];
}; };
"NixOS Wiki" = { "NixOS Wiki" = {
urls = [{template = "https://nixos.wiki/index.php?search={searchTerms}";}]; urls = [{
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; template = "https://nixos.wiki/index.php?search={searchTerms}";
definedAliases = ["@nw"]; }];
icon =
"${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@nw" ];
}; };
"Arch Wiki" = { "Arch Wiki" = {
urls = [{template = "https://wiki.archlinux.org/index.php?search={searchTerms}";}]; urls = [{
definedAliases = ["@aw"]; template =
"https://wiki.archlinux.org/index.php?search={searchTerms}";
}];
definedAliases = [ "@aw" ];
}; };
"GitHub" = { "GitHub" = {
urls = [{template = "https://github.com/search?q={searchTerms}";}]; urls =
definedAliases = ["@gh"]; [{ template = "https://github.com/search?q={searchTerms}"; }];
definedAliases = [ "@gh" ];
}; };
}; };
}; };
bookmarks = [{
name = "toolbar";
toolbar = true;
bookmarks = [
{
name = "Wikipedia";
tags = [ "wiki" ];
keyword = "wiki";
url = "https://en.wikipedia.org";
}
{
name = "NixOS Wiki";
tags = [ "wiki" "nix" ];
url = "https://nixos.wiki/";
}
{
name = "Arch Wiki";
tags = [ "wiki" "arch" ];
url = "https://wiki.archlinux.org/";
}
{
name = "Nextcloud";
tags = [ "cloud" "storage" "federation" "xenia" ];
url = "https://cloud.xenia.me.uk";
}
{
name = "Proton Mail";
tags = [ "email" ];
url = "https://mail.proton.me";
}
{
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";
}
];
}];
}; };
}; };
} }

View file

@ -1,55 +0,0 @@
{...}: {
imports = [./default.nix];
programs.firefox.profiles.default = {
settings."browser.startup.homepage" = "https://cloud.xenia.me.uk";
bookmarks = [
{
name = "toolbar";
toolbar = true;
bookmarks = [
{
name = "Wikipedia";
tags = ["wiki"];
keyword = "wiki";
url = "https://en.wikipedia.org";
}
{
name = "NixOS Wiki";
tags = ["wiki" "nix"];
url = "https://nixos.wiki/";
}
{
name = "Arch Wiki";
tags = ["wiki" "arch"];
url = "https://wiki.archlinux.org/";
}
{
name = "Nextcloud";
tags = ["cloud" "storage" "federation" "xenia"];
url = "https://cloud.xenia.me.uk";
}
{
name = "Proton Mail";
tags = ["email"];
url = "https://mail.proton.me";
}
{
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";
}
];
}
];
};
}

View file

@ -1,127 +0,0 @@
{...}: {
imports = [./default.nix];
programs.firefox.profiles.default = {
settings = {
"browser.startup.homepage" = "https://nucleus.ukaea.uk";
};
search.engines."JET Pulse" = {
urls = [{template = "https://data.jet.uk/dashboard/pulses/{searchTerms}/overview";}];
definedAliases = ["@p"];
};
search.engines."JET Dashboard" = {
urls = [{template = "https://data.jet.uk/dashboard/sessions/?search_for={searchTerms}";}];
definedAliases = ["@jd"];
};
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 = ["support" "helpdesk"];
url = "https://marval.service.ukaea.uk/MSMSelfService/Index.aspx";
}
{
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 = "J2 Roster";
url = "https://apps.powerapps.com/play/e/default-c6ac664b-ae27-4d5d-b4e6-bb5717196fc7/a/c403a9ad-95e0-47b7-8c82-752b22a6d6f5?tenantId=c6ac664b-ae27-4d5d-b4e6-bb5717196fc7&source=portal";
}
{
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 = "DCO Wiki";
tags = ["JET" "operations" "wiki"];
url = "https://wiki.jetdata.eu/open/index.php?title=Diagnostic_Coordinator_Wiki";
}
];
}
{
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";
}
];
}
];
}
];
};
}

View file

@ -120,6 +120,7 @@ windowrule = workspace 2,(firefox)
windowrule = workspace 2,(chromium-browser) windowrule = workspace 2,(chromium-browser)
windowrulev2 = float,title:(File|Picture-in-Picture),class:(firefox) windowrulev2 = float,title:(File|Picture-in-Picture),class:(firefox)
windowrulev2 = pin,title:(File|Picture-in-Picture),class:(firefox) windowrulev2 = pin,title:(File|Picture-in-Picture),class:(firefox)
windowrulev2 = float,title:^(about:blank).*,class:(chromium-browser)
# 3: files # 3: files
bind = SUPER, F, workspace, 3 bind = SUPER, F, workspace, 3

View file

@ -1,4 +1,5 @@
{pkgs, ...}: let { pkgs, ... }:
let
username = "tux"; username = "tux";
homeDirectory = "/Users/${username}"; homeDirectory = "/Users/${username}";
in { in {
@ -7,13 +8,13 @@ in {
../../home/git/personal.nix ../../home/git/personal.nix
../../home/ssh/personal.nix ../../home/ssh/personal.nix
../../home/tui ../../home/tui
../../home/wezterm
../../home/emacs ../../home/emacs
../../home/wezterm
]; ];
home = { home = {
inherit username homeDirectory; inherit username homeDirectory;
stateVersion = "23.05"; stateVersion = "23.05";
packages = with pkgs; [gcc]; packages = with pkgs; [ gcc ];
}; };
programs = { programs = {
home-manager.enable = true; home-manager.enable = true;

View file

@ -14,6 +14,7 @@ in {
../../home/ssh/work.nix ../../home/ssh/work.nix
../../home/tui ../../home/tui
../../home/hyprland ../../home/hyprland
../../home/emacs
../../home/wezterm ../../home/wezterm
]; ];
home = { home = {

View file

@ -20,13 +20,6 @@ in {
system.autoUpgrade.flake = flakeURL; system.autoUpgrade.flake = flakeURL;
environment = { environment = {
localBinInPath = true; localBinInPath = true;
shellAliases = {
ll = "ls -laF";
nou = "sudo nixos-rebuild switch --flake \"${flakeURL}\"";
nour = "nou --refresh";
hms = "${pkgs.home-manager}/bin/home-manager switch --flake \"${flakeURL}\"";
hmsr = "hms --refresh";
};
systemPackages = with pkgs; [distrobox]; systemPackages = with pkgs; [distrobox];
}; };
networking.networkmanager.enable = true; networking.networkmanager.enable = true;

View file

@ -14,7 +14,6 @@
grim grim
slurp slurp
signal-desktop signal-desktop
libreoffice
zotero zotero
]; ];
security = { security = {