more renaming + some new software
This commit is contained in:
parent
d94b4723d4
commit
02738e65ab
27 changed files with 42 additions and 16 deletions
11
hosts/machines/kidney/default.nix
Normal file
11
hosts/machines/kidney/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
imports = [
|
||||
./wsl.nix
|
||||
./hardware.nix
|
||||
./fonts.nix
|
||||
];
|
||||
|
||||
networking.hostName = "kidney";
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
}
|
33
hosts/machines/kidney/fonts.nix
Normal file
33
hosts/machines/kidney/fonts.nix
Normal 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"];
|
||||
};
|
||||
};
|
||||
}
|
3
hosts/machines/kidney/hardware.nix
Normal file
3
hosts/machines/kidney/hardware.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
nixpkgs.hostPlatform.system = "x86_64-linux";
|
||||
}
|
11
hosts/machines/kidney/wsl.nix
Normal file
11
hosts/machines/kidney/wsl.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{inputs, ...}: {
|
||||
imports = [
|
||||
inputs.nixos-wsl.nixosModules.default
|
||||
];
|
||||
|
||||
wsl = {
|
||||
enable = true;
|
||||
defaultUser = "xun";
|
||||
startMenuLaunchers = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue