From b5519182738c435284873f6f4ee6cce8d906f617 Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Tue, 14 Feb 2023 17:13:25 +0100 Subject: [PATCH] Switch terminal and font --- flake.lock | 17 ------------ flake.nix | 4 +-- modules/base/emacs/base-init.el | 2 +- modules/graphical/default.nix | 29 -------------------- modules/graphical/sway/default.nix | 10 +++---- modules/graphical/sway/launcher.zsh | 2 +- modules/graphical/terminal/default.nix | 27 +++++++++++++++++-- modules/graphical/terminal/wezterm.lua | 37 -------------------------- modules/graphical/theme/default.nix | 9 +++---- 9 files changed, 37 insertions(+), 100 deletions(-) delete mode 100644 modules/graphical/terminal/wezterm.lua diff --git a/flake.lock b/flake.lock index 1d44d694..cbe319ce 100644 --- a/flake.lock +++ b/flake.lock @@ -300,22 +300,6 @@ "type": "indirect" } }, - "nixpkgs-stable": { - "locked": { - "lastModified": 1676253841, - "narHash": "sha256-jhuI8Mmky8VCD45OoJEuF6HdPLFBwNrHA0ljjZ/zkfw=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "a45a8916243a7d27acc358f4fc18c4491f3eeca8", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixos-22.11", - "repo": "nixpkgs", - "type": "github" - } - }, "nur": { "locked": { "lastModified": 1676385929, @@ -343,7 +327,6 @@ "home-manager": "home-manager", "nixos-mailserver": "nixos-mailserver", "nixpkgs": "nixpkgs", - "nixpkgs-stable": "nixpkgs-stable", "nur": "nur", "tetris": "tetris", "utils": "utils", diff --git a/flake.nix b/flake.nix index ec4038d1..cc2c8c66 100644 --- a/flake.nix +++ b/flake.nix @@ -62,7 +62,6 @@ }; }; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-22.11"; nur.url = "github:nix-community/NUR"; tetris = { url = "github:chvp/tetris"; @@ -88,7 +87,7 @@ }; }; - outputs = inputs@{ self, nixpkgs, nixpkgs-stable, accentor, accentor-api, accentor-web, agenix, devshell, emacs-overlay, flake-utils, home-manager, nixos-mailserver, nur, tetris, utils, www-chvp-be }: + outputs = inputs@{ self, nixpkgs, accentor, accentor-api, accentor-web, agenix, devshell, emacs-overlay, flake-utils, home-manager, nixos-mailserver, nur, tetris, utils, www-chvp-be }: utils.lib.mkFlake { inherit self inputs; channels.nixpkgs = { @@ -101,7 +100,6 @@ (self: super: { tetris = tetris.packages.${self.system}.default; matrix-hookshot = self.callPackage ./packages/matrix-hookshot { }; - wezterm = nixpkgs-stable.legacyPackages.${self.system}.wezterm; }) nur.overlay www-chvp-be.overlay diff --git a/modules/base/emacs/base-init.el b/modules/base/emacs/base-init.el index 60c37a98..9ae41745 100644 --- a/modules/base/emacs/base-init.el +++ b/modules/base/emacs/base-init.el @@ -138,7 +138,7 @@ ;; Font configuration (defun font-settings () "Setup font settings." - (when window-system (set-frame-font "Fira Code 9")) + (when window-system (set-frame-font "Hack 9")) (set-fontset-font t 'symbol "Noto Color Emoji") (set-fontset-font t 'symbol "Symbola" nil 'append)) ;; Make sure DISPLAY is set correctly in env. diff --git a/modules/graphical/default.nix b/modules/graphical/default.nix index 3cbf17d5..55e9323b 100644 --- a/modules/graphical/default.nix +++ b/modules/graphical/default.nix @@ -1,13 +1,5 @@ { config, lib, pkgs, ... }: -let - ligature = pkgs.fetchFromGitHub { - owner = "mickeynp"; - repo = "ligature.el"; - rev = "9357156a917a021a87b33ee391567a5d8e44794a"; - hash = "sha256-Bgb5wFyx0hMilpihxA8cTrRVw71EBOw2DczlM4lSNMs="; - }; -in { imports = [ ./firefox @@ -31,27 +23,6 @@ in users.users.charlotte.extraGroups = [ "input" "video" ]; chvp = { base = { - emacs.extraConfig = [ - '' - ;; Ligatures in GUI mode - (use-package ligature - :load-path "${ligature}" - :config - (ligature-set-ligatures 't '("www" "**" "***" "**/" "*>" "*/" "\\\\" "\\\\\\" "{-" "::" - ":::" ":=" "!!" "!=" "!==" "-}" "----" "-->" "->" "->>" - "-<" "-<<" "-~" "#{" "#[" "##" "###" "####" "#(" "#?" "#_" - "#_(" ".-" ".=" ".." "..<" "..." "?=" "??" ";;" "/*" "/**" - "/=" "/==" "/>" "//" "///" "&&" "||" "||=" "|=" "|>" "^=" "$>" - "++" "+++" "+>" "=:=" "==" "===" "==>" "=>" "=>>" "<=" - "=<<" "=/=" ">-" ">=" ">=>" ">>" ">>-" ">>=" ">>>" "<*" - "<*>" "<|" "<|>" "<$" "<$>" "