fix: Some nix stuff
This commit is contained in:
parent
d6e397e831
commit
37b30544c1
2 changed files with 16 additions and 7 deletions
|
@ -9,11 +9,16 @@
|
||||||
|
|
||||||
outputs = inputs@{ self, nix-darwin, nixpkgs }:
|
outputs = inputs@{ self, nix-darwin, nixpkgs }:
|
||||||
let
|
let
|
||||||
configuration = { pkgs, ... }: {
|
configuration = { pkgs, ... }: let
|
||||||
|
python = pkgs.python310Full.override {
|
||||||
|
# FIXME: Build failed, maybe override postInstall instead?
|
||||||
|
#enableFramework = true;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
# List packages installed in system profile. To search by name, run:
|
# List packages installed in system profile. To search by name, run:
|
||||||
# $ nix-env -qaP | grep wget
|
# $ nix-env -qaP | grep wget
|
||||||
environment.systemPackages =
|
environment.systemPackages = [
|
||||||
[
|
|
||||||
pkgs.zsh
|
pkgs.zsh
|
||||||
pkgs.git
|
pkgs.git
|
||||||
pkgs.vim
|
pkgs.vim
|
||||||
|
@ -23,11 +28,12 @@
|
||||||
pkgs.pinentry_mac
|
pkgs.pinentry_mac
|
||||||
pkgs.gnupg
|
pkgs.gnupg
|
||||||
pkgs.htop-vim
|
pkgs.htop-vim
|
||||||
pkgs.poetry
|
python
|
||||||
pkgs.python310Full
|
# FIXME: Build failed, dnspython pytest keep returning FAILED caused by timeout. Maybe find a way to bypass check for them
|
||||||
|
# (pkgs.poetry.override { python3 = python; })
|
||||||
pkgs.python310Packages.pip
|
pkgs.python310Packages.pip
|
||||||
pkgs.python310Packages.tkinter
|
pkgs.python310Packages.tkinter
|
||||||
pkgs.pfetch
|
pkgs.fastfetch
|
||||||
pkgs.eza
|
pkgs.eza
|
||||||
pkgs.lf
|
pkgs.lf
|
||||||
pkgs.wimlib
|
pkgs.wimlib
|
||||||
|
@ -62,6 +68,8 @@
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
# TODO: Split configurations
|
||||||
|
|
||||||
# Build darwin flake using:
|
# Build darwin flake using:
|
||||||
# $ darwin-rebuild build --flake .#ThiccBook-Pro
|
# $ darwin-rebuild build --flake .#ThiccBook-Pro
|
||||||
darwinConfigurations."ThiccBook-Pro" = nix-darwin.lib.darwinSystem {
|
darwinConfigurations."ThiccBook-Pro" = nix-darwin.lib.darwinSystem {
|
||||||
|
@ -72,3 +80,4 @@
|
||||||
darwinPackages = self.darwinConfigurations."ThiccBook-Pro".pkgs;
|
darwinPackages = self.darwinConfigurations."ThiccBook-Pro".pkgs;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
# vim:set ts=2 sw=2 et:
|
||||||
|
|
|
@ -76,7 +76,7 @@ alias reUSD='rm -rf /tmp/rate.html /tmp/rateUSD.txt'
|
||||||
#alias mpv='mpv --geometry=1280x720'
|
#alias mpv='mpv --geometry=1280x720'
|
||||||
|
|
||||||
#config shortcuts
|
#config shortcuts
|
||||||
alias cdnixd='cd $XDG_CONFIG_HOME/nix-darwin'
|
alias cdnixd='cd $XDG_CONFIG_HOME/nix/darwin'
|
||||||
alias cdnix='cd $XDG_CONFIG_HOME/nix'
|
alias cdnix='cd $XDG_CONFIG_HOME/nix'
|
||||||
alias config='cd ${DOTFILES:-$HOME/Build/GIT/dotfiles}'
|
alias config='cd ${DOTFILES:-$HOME/Build/GIT/dotfiles}'
|
||||||
alias cfg='config'
|
alias cfg='config'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue