Compare commits

...

2 commits

Author SHA1 Message Date
298e727bf7 feat: Comma hacked into darwin 2024-04-03 11:41:50 -07:00
59920a96d0 feat: Add optimise to justfile 2024-04-02 10:43:25 -07:00
6 changed files with 19 additions and 3 deletions

View file

@ -140,6 +140,7 @@
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {inherit inputs outputs;};
}
nix-index-database.darwinModules.nix-index
home-manager.darwinModules.home-manager
stylix.darwinModules.stylix
./hosts/cubert

View file

@ -8,5 +8,6 @@
nodePackages.pnpm # betterdiscord
unrar
pywal
comma # Unfortunate hack
];
}

View file

@ -6,6 +6,10 @@
./p10k.nix
./zprofile.nix
];
# Comma/nix-shell -p
programs.nix-index.enable = true;
programs.zsh = {
enable = true;
enableCompletion = true;

View file

@ -326,6 +326,14 @@ in {
cd $1
}
# OSX comma hack. Eventually needs removed
download_nixpkgs_cache_index () {
filename="index-$(uname -m | sed 's/^arm64$/aarch64/')-$(uname | tr A-Z a-z)"
mkdir -p ~/.cache/nix-index && cd ~/.cache/nix-index
# -N will only download a new version if there is an update.
wget -q -N https://github.com/nix-community/nix-index-database/releases/latest/download/$filename
ln -f $filename files
}
'';
envExtra = ''

View file

@ -12,8 +12,8 @@ in {
stylix = {
image = pkgs.fetchurl {
url = "https://w.wallhaven.cc/full/6k/wallhaven-6kv1ow.png";
sha256 = "sha256-b3EAkJpstDRm3VyJzuT7ACg6K0y2W5EMbf7qBZQBhi4=";
url = "https://git.kdb424.xyz/kdb424/wallpapers/raw/branch/main/wallhaven-zmomkv.jpg";
sha256 = "sha256-vQIFAK9gzFl3DvDbyuM+MIvSW3OLL9IR1qn0hgsqnVU=";
};
};

View file

@ -96,4 +96,6 @@ hm-switch:
# Nuclear option to get space back
gc-full:
sudo nix-env --delete-generations old
sudo nix-store --gc
optimise:
nix store optimise