use new name of the Berkeley font
Some checks failed
use nix / build (push) Failing after 5m29s

This commit is contained in:
Cyryl Płotnicki 2025-01-11 21:45:49 +00:00
parent 0667ad3f9a
commit 95f2738b98
13 changed files with 135 additions and 14 deletions

View file

@ -169,8 +169,6 @@
"aarch64-linux".default = mkShell nixpkgs-stable "aarch64-linux";
};
# Expose the package set, including overlays, for convenience.
darwinPackages = self.darwinConfigurations."airy".pkgs;
darwinConfigurations = {
"cushy" = darwin.lib.darwinSystem rec {
system = "aarch64-darwin";

View file

@ -0,0 +1,14 @@
{
config,
pkgs,
inputs,
system,
resilio3,
...
}: {
config.services.resilio = {
enable = false;
directoryRoot = "/data/resilio";
package = resilio3.legacyPackages."${system}".resilio-sync;
};
}

View file

@ -0,0 +1,100 @@
{
config,
pkgs,
...
}: {
boot.kernelPackages = pkgs.linuxPackages_latest;
nixpkgs.overlays = [
(self: super: {
buildLinux = x:
super.buildLinux ({
ignoreConfigErrors = true;
enableParallelBuilding = true;
}
// x);
})
];
boot.kernelPatches = [
{
name = "foryog";
patch = null;
extraConfig = ''
ACPI_CUSTOM_METHOD n
ACPI_DPTF y
BUG y
CC_STACKPROTECTOR_STRONG y
CPU_IDLE_GOV_HALTPOLL y
CPU_IDLE_GOV_TEO y
DEBUG_CREDENTIALS y
DEBUG_NOTIFIERS y
DEBUG_PI_LIST y
DEBUG_PLIST y
DEBUG_RODATA y
DEBUG_SET_MODULE_RONX y
DEBUG_SG y
DEVMEM y
DPTF_PCH_FIVR m
DPTF_POWER m
ENERGY_MODEL y
FORTIFY_SOURCE y
GCC_PLUGINS y
GCC_PLUGIN_LATENT_ENTROPY y
GCC_PLUGIN_RANDSTRUCT y
GCC_PLUGIN_RANDSTRUCT_PERFORMANCE y
GCC_PLUGIN_STACKLEAK y
GCC_PLUGIN_STRUCTLEAK y
GCC_PLUGIN_STRUCTLEAK_BYREF_ALL y
HARDENED_USERCOPY y
HARDENED_USERCOPY_FALLBACK y
HARDLOCKUP_DETECTOR y
HZ_300 y
INET_DIAG n
INET_DIAG_DESTROY option no
INET_MPTCP_DIAG option no
INET_RAW_DIAG option no
INET_TCP_DIAG option no
INET_UDP_DIAG option no
INIT_ON_ALLOC_DEFAULT_ON y
INIT_ON_FREE_DEFAULT_ON y
INTEL_TXT y
KEXEC n
KFENCE y
LEGACY_VSYSCALL_NONE y
LOCKUP_DETECTOR y
MCORE2 y
NR_CPUS 16
NUMA_BALANCING y
NUMA_BALANCING_DEFAULT_ENABLED y
PAGE_POISONING y
PAGE_POISONING_NO_SANITY y
PAGE_POISONING_ZERO y
PANIC_TIMEOUT -1
PM_AUTOSLEEP y
POWER_EFFICIENT_DEFAULT y
PREEMPT y
PREEMPTION y
PREEMPT_COUNT y
PREEMPT_DYNAMIC y
PREEMPT_RCU y
PROC_KCORE n
RANDOMIZE_KSTACK_OFFSET_DEFAULT y
SCHED_CORE y
SCHED_STACK_END_CHECK y
SECURITY_SAFESETID y
SECURITY_SELINUX_DISABLE n
SECURITY_WRITABLE_HOOKS n
SHUFFLE_PAGE_ALLOCATOR y
SLAB_FREELIST_HARDENED y
SLAB_FREELIST_RANDOM y
SLUB_DEBUG y
STRICT_DEVMEM y
STRICT_KERNEL_RWX y
UNINLINE_SPIN_UNLOCK y
WATCH_QUEUE y
X86_INTEL_TSX_MODE_AUTO y
X86_SGX y
X86_SGX_KVM y
'';
}
];
}

View file

@ -4,7 +4,6 @@
inputs,
lib,
system,
resilio3,
...
}: {
networking.hostName = "foryog";
@ -18,6 +17,7 @@
../../gnome
../../gui
../../helix
../../kitty
../../libvirt.nix
../../mercurial
../../vim
@ -58,10 +58,7 @@
programs.ccache.enable = true;
programs.steam.enable = true;
home-manager.users.cyryl = {...}: {
imports = [
../../home-manager/programs/kitty.nix
];
home-manager.users.cyryl = {config, ...}: {
home.packages =
(with inputs.nixpkgs-master.legacyPackages."${system}"; [zed-editor])
++ (with pkgs; [lutris])

View file

@ -89,7 +89,7 @@ in {
fonts.fontconfig = {
enable = true;
defaultFonts.monospace = ["Berkeley Mono"];
defaultFonts.monospace = [config.local.fontFamily];
};
fonts.packages = with pkgs; [

View file

@ -8,7 +8,7 @@
enable = true;
userSettings = {
editr = {
fontFamily = "'Berkeley Mono', 'Droid Sans Mono', 'monospace', monospace";
fontFamily = "'${config.local.fontFamily}', 'Droid Sans Mono', 'monospace', monospace";
formatOnType = true;
fontSize = 16;
};

View file

@ -12,7 +12,7 @@
dynamicTitle = true;
mouseAutohide = true;
scrollOnKeystroke = false;
font = "BerkeleyMono Nerd Font 12";
font = "${config.local.fontFamily} 12";
backgroundColor = "#002b36";
foregroundColor = "#839496";

View file

@ -7,7 +7,7 @@
enable = true;
settings = {
global = {
font = "BerkeleyMono Nerd Font 10";
font = "${config.local.fontFamily} 10";
sort = "yes";
indicate_hidden = "yes";
word_wrap = "yes";

View file

@ -52,7 +52,7 @@ in {
colors.background = "#001e26";
colors.statusline = "#708183";
fonts = {
names = ["BerkeleyMono Nerd Font"];
names = [config.local.fontFamily];
size = 10.0;
};

View file

@ -5,7 +5,7 @@
}: {
programs.rofi = {
enable = true;
font = "BerkeleyMono Nerd Font 16";
font = "${config.local.fontFamily} 16";
theme = "solarized";
};
}

8
nixos/kitty/default.nix Normal file
View file

@ -0,0 +1,8 @@
{
config,
pkgs,
lib,
...
}: {
home-manager.users."${config.local.username}" = {...}: {imports = [(import ./home.nix {inherit config pkgs;})];};
}

View file

@ -13,7 +13,7 @@
enable_audio_bell = false;
hide_window_decorations = true;
font_size = "12.0";
font_family = "BerkeleyMono Nerd Font";
font_family = config.local.fontFamily;
bold_font = "auto";
italic_font = "auto";
bold_italic_font = "auto";

View file

@ -7,4 +7,8 @@
default = "cyryl";
type = lib.types.str;
};
options.local.fontFamily = lib.mkOption {
default = "TX-02";
type = lib.types.str;
};
}