Remove iosevka-custom

This commit is contained in:
Evie Litherland-Smith 2024-01-19 09:47:14 +00:00
parent 3dcd3ef452
commit f9fd7a716e

326
flake.nix
View file

@ -47,195 +47,169 @@
./hosts/${hostName}/hardware-configuration.nix ./hosts/${hostName}/hardware-configuration.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
stylix.nixosModules.stylix stylix.nixosModules.stylix
({ config, lib, pkgs, ... }: ({ config, lib, pkgs, ... }: {
let boot.loader = {
iosevka-custom = pkgs.iosevka.override { systemd-boot.enable = true;
set = "custom"; efi.canTouchEfiVariables = true;
privateBuildPlan = { };
family = "Iosevka Custom"; programs = {
spacing = "normal"; ${shell}.enable = true;
serifs = "sans"; command-not-found.enable = false;
noCvSs = false; nano = {
exportGlyphNames = false;
variants = { inherits = "ss05"; };
ligations = { inherits = "dlig"; };
widths = {
Condensed = {
shape = 500;
menu = 3;
css = "condensed";
};
Normal = {
shape = 600;
menu = 5;
css = "normal";
};
};
};
};
in {
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
programs = {
${shell}.enable = true;
command-not-found.enable = false;
nano = {
enable = true;
syntaxHighlight = true;
nanorc = ''
set nowrap
set tabstospaces
set tabsize 2
'';
};
};
nix = {
enable = true; enable = true;
settings = { syntaxHighlight = true;
trusted-users = [ "root" user ]; nanorc = ''
experimental-features = [ "nix-command" "flakes" ]; set nowrap
auto-optimise-store = true; set tabstospaces
}; set tabsize 2
channel.enable = true;
registry = {
nixpkgs.flake = nixpkgs;
nixos.flake = self;
};
gc = {
automatic = true;
options = "--delete-older-than 7d";
};
optimise.automatic = true;
extraOptions = ''
keep-outputs = true
keep-derivations = true
min-free = ${toString (100 * 1024 * 1024)}
max-free = ${toString (1024 * 1024 * 1024)}
''; '';
}; };
nixpkgs.config.allowUnfreePredicate = pkg: };
builtins.elem (lib.getName pkg) [ nix = {
"steam" enable = true;
"steam-original" settings = {
"steam-run" trusted-users = [ "root" user ];
"nomachine-client" experimental-features = [ "nix-command" "flakes" ];
]; auto-optimise-store = true;
system = { inherit stateVersion; };
networking = {
inherit hostName;
firewall.enable = true;
}; };
stylix = { channel.enable = true;
autoEnable = false; registry = {
targets = { nixpkgs.flake = nixpkgs;
chromium.enable = true; nixos.flake = self;
console.enable = true;
fish.enable = true;
};
image = ./wallpapers/space.png;
base16Scheme =
"${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
override = {
scheme =
"Catppuccin Mocha, using fg and bg colours from emacs modus-vivdendi-tinted";
base00 = "0d0e1c";
base01 = "1d2235";
base04 = "c6daff";
base05 = "ffffff";
};
polarity = "dark";
opacity = {
popups = 0.5;
terminal = 0.8;
};
fonts = rec {
sizes = {
applications = 16;
desktop = 20;
popups = 18;
terminal = 16;
};
serif = monospace;
sansSerif = monospace;
monospace = {
name = "Iosevka Nerd Font";
package =
(pkgs.nerdfonts.override { fonts = [ "Iosevka" ]; });
};
emoji = {
name = "Noto Color Emoji";
package = pkgs.noto-fonts-emoji;
};
};
homeManagerIntegration.followSystem = true;
}; };
fonts = { gc = {
packages = with pkgs; [ automatic = true;
(nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ]; }) options = "--delete-older-than 7d";
emacs-all-the-icons-fonts
weather-icons
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
];
fontconfig.enable = true;
}; };
users.users = let optimise.automatic = true;
authorizedKeys.keys = [ extraOptions = ''
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINI1dWlS16Keil0MGPWmMsBzx8F9ylfz+fRwxUr8/tZ/ ion" keep-outputs = true
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIANfkqd5lPTsSPU3SRYnAa1UjCYDmDeBTyzq5McmWlm6 xenia@Vanguard" keep-derivations = true
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ/ZSSCN5sqrA+tdoIZr5EUm5DRuBV4dQ7J+QBEtUwUU xenia@Northstar" min-free = ${toString (100 * 1024 * 1024)}
]; max-free = ${toString (1024 * 1024 * 1024)}
in { '';
root.openssh = { inherit authorizedKeys; }; };
${user} = { nixpkgs.config.allowUnfreePredicate = pkg:
inherit group; builtins.elem (lib.getName pkg) [
isNormalUser = true; "steam"
description = "Evie Litherland-Smith"; "steam-original"
extraGroups = "steam-run"
[ "networkmanager" "wheel" "video" "input" "uinput" ]; "nomachine-client"
shell = pkgs.${shell}; ];
initialHashedPassword = system = { inherit stateVersion; };
"$y$j9T$tHIPQt09Kf3KH2eIRze3g/$2mwSlcq27DTGvHNPJ5EP9/1CfL3bXP0F6oS/Vuffmn3"; networking = {
openssh = { inherit authorizedKeys; }; inherit hostName;
firewall.enable = true;
};
stylix = {
autoEnable = false;
targets = {
chromium.enable = true;
console.enable = true;
fish.enable = true;
};
image = ./wallpapers/space.png;
base16Scheme =
"${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
override = {
scheme =
"Catppuccin Mocha, using fg and bg colours from emacs modus-vivdendi-tinted";
base00 = "0d0e1c";
base01 = "1d2235";
base04 = "c6daff";
base05 = "ffffff";
};
polarity = "dark";
opacity = {
popups = 0.5;
terminal = 0.8;
};
fonts = rec {
sizes = {
applications = 16;
desktop = 20;
popups = 18;
terminal = 16;
};
serif = monospace;
sansSerif = monospace;
monospace = {
name = "Iosevka Nerd Font";
package =
(pkgs.nerdfonts.override { fonts = [ "Iosevka" ]; });
};
emoji = {
name = "Noto Color Emoji";
package = pkgs.noto-fonts-emoji;
}; };
}; };
home-manager = { homeManagerIntegration.followSystem = true;
extraSpecialArgs = { inherit hostName; }; };
useGlobalPkgs = true; fonts = {
useUserPackages = true; packages = with pkgs; [
users = { (nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ]; })
root = { emacs-all-the-icons-fonts
imports = [ ./home/default.nix ]; weather-icons
home = { noto-fonts
inherit stateVersion; noto-fonts-cjk
username = "root"; noto-fonts-emoji
homeDirectory = "/root"; ];
}; fontconfig.enable = true;
programs.home-manager.enable = true; };
users.users = let
authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINI1dWlS16Keil0MGPWmMsBzx8F9ylfz+fRwxUr8/tZ/ ion"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIANfkqd5lPTsSPU3SRYnAa1UjCYDmDeBTyzq5McmWlm6 xenia@Vanguard"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ/ZSSCN5sqrA+tdoIZr5EUm5DRuBV4dQ7J+QBEtUwUU xenia@Northstar"
];
in {
root.openssh = { inherit authorizedKeys; };
${user} = {
inherit group;
isNormalUser = true;
description = "Evie Litherland-Smith";
extraGroups =
[ "networkmanager" "wheel" "video" "input" "uinput" ];
shell = pkgs.${shell};
initialHashedPassword =
"$y$j9T$tHIPQt09Kf3KH2eIRze3g/$2mwSlcq27DTGvHNPJ5EP9/1CfL3bXP0F6oS/Vuffmn3";
openssh = { inherit authorizedKeys; };
};
};
home-manager = {
extraSpecialArgs = { inherit hostName; };
useGlobalPkgs = true;
useUserPackages = true;
users = {
root = {
imports = [ ./home/default.nix ];
home = {
inherit stateVersion;
username = "root";
homeDirectory = "/root";
}; };
${user} = let programs.home-manager.enable = true;
username = user; };
homeDirectory = "/home/${user}"; ${user} = let
in { username = user;
imports = homeDirectory = "/home/${user}";
[ ./hosts/${hostName}/home.nix ./home/default.nix ] in {
++ homeModules; imports =
home = { inherit username homeDirectory stateVersion; }; [ ./hosts/${hostName}/home.nix ./home/default.nix ]
programs.home-manager.enable = true; ++ homeModules;
xdg.userDirs = { home = { inherit username homeDirectory stateVersion; };
enable = true; programs.home-manager.enable = true;
createDirectories = true; xdg.userDirs = {
extraConfig = { enable = true;
XDG_PROJECTS_DIR = "${homeDirectory}/Projects"; createDirectories = true;
}; extraConfig = {
XDG_PROJECTS_DIR = "${homeDirectory}/Projects";
}; };
}; };
}; };
}; };
}) };
})
] ++ systemModules ++ serviceModules; ] ++ systemModules ++ serviceModules;
}; };
in { in {