This commit is contained in:
xunuwu 2024-10-22 11:51:40 +02:00
parent e77d8b492d
commit 7f7d9af446
No known key found for this signature in database
7 changed files with 75 additions and 16 deletions

View file

@ -166,6 +166,7 @@ in {
flake.nixosConfigurations = let
l = inputs.nixpkgs.lib;
in
## TODO: make use of nixpkgs.pkgs for per-system pkgs without colmena
builtins.mapAttrs (_: v:
l.nixosSystem {
inherit specialArgs;

View file

@ -2,6 +2,7 @@
imports = [
./wsl.nix
./hardware.nix
./fonts.nix
];
networking.hostName = "kidney";

33
hosts/kidney/fonts.nix Normal file
View file

@ -0,0 +1,33 @@
{pkgs, ...}: {
fonts = {
packages = with pkgs; [
font-awesome
iosevka
emacs-all-the-icons-fonts
(stdenv.mkDerivation {
# font piracy? i would never
pname = "Cartograph-CF";
version = "0.1";
src = pkgs.fetchFromGitHub {
owner = "xiyaowong";
repo = "Cartograph-CF";
rev = "619de85c103dbd5c150e1d5df039357f8ac2ed52";
hash = "sha256-NVqHxLQZnHb0lMjODkaDwSoglGPkUVJHL1xTmASoER4=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts
cp -r $src $out/share/fonts
runHook postInstall
'';
})
];
enableDefaultPackages = false;
fontconfig.defaultFonts = {
monospace = ["Iosevka"];
};
};
}

View file

@ -3,6 +3,9 @@
inputs.nixos-wsl.nixosModules.default
];
wsl.enable = true;
wsl.defaultUser = "xun";
wsl = {
enable = true;
defaultUser = "xun";
startMenuLaunchers = true;
};
}