up
This commit is contained in:
@@ -5,15 +5,13 @@ YELLOW='\033[1;33m'
|
|||||||
RED='\033[1;31m'
|
RED='\033[1;31m'
|
||||||
NC='\033[0m'
|
NC='\033[0m'
|
||||||
|
|
||||||
# Determine machine name from first argument or hostname
|
|
||||||
if [ $# -gt 0 ]; then
|
if [ $# -gt 0 ]; then
|
||||||
MACHINE_NAME="$1"
|
MACHINE_NAME="$1"
|
||||||
shift # Remove machine name from arguments
|
shift
|
||||||
else
|
else
|
||||||
MACHINE_NAME=$(hostname | cut -d'.' -f1)
|
MACHINE_NAME=$(hostname | cut -d'.' -f1)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Validate machine name
|
|
||||||
if [ ! -d "hosts/darwin/$MACHINE_NAME" ]; then
|
if [ ! -d "hosts/darwin/$MACHINE_NAME" ]; then
|
||||||
echo "${RED}Error: Machine configuration '$MACHINE_NAME' not found in hosts/darwin/${NC}"
|
echo "${RED}Error: Machine configuration '$MACHINE_NAME' not found in hosts/darwin/${NC}"
|
||||||
echo "${YELLOW}Available machines:${NC}"
|
echo "${YELLOW}Available machines:${NC}"
|
||||||
@@ -26,13 +24,12 @@ fi
|
|||||||
|
|
||||||
FLAKE_SYSTEM="darwinConfigurations.${MACHINE_NAME}.system"
|
FLAKE_SYSTEM="darwinConfigurations.${MACHINE_NAME}.system"
|
||||||
|
|
||||||
export NIXPKGS_ALLOW_UNFREE=1
|
|
||||||
|
|
||||||
echo "${YELLOW}Building configuration for machine: ${MACHINE_NAME}${NC}"
|
echo "${YELLOW}Building configuration for machine: ${MACHINE_NAME}${NC}"
|
||||||
nix --extra-experimental-features 'nix-command flakes' build .#$FLAKE_SYSTEM "$@"
|
NIXPKGS_ALLOW_UNFREE=1 nix --extra-experimental-features 'nix-command flakes' build --impure .#$FLAKE_SYSTEM "$@"
|
||||||
|
|
||||||
echo "${YELLOW}Switching to new generation...${NC}"
|
echo "${YELLOW}Switching to new generation...${NC}"
|
||||||
sudo ./result/sw/bin/darwin-rebuild switch --flake .#${MACHINE_NAME}
|
sudo NIXPKGS_ALLOW_UNFREE=1 ./result/sw/bin/darwin-rebuild switch --impure --flake .#${MACHINE_NAME}
|
||||||
|
|
||||||
echo "${YELLOW}Cleaning up...${NC}"
|
echo "${YELLOW}Cleaning up...${NC}"
|
||||||
unlink ./result
|
unlink ./result
|
||||||
|
|||||||
@@ -9,13 +9,6 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
config = {
|
|
||||||
allowUnfree = true;
|
|
||||||
allowBroken = false;
|
|
||||||
allowInsecure = false;
|
|
||||||
allowUnsupportedSystem = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
overlays = let
|
overlays = let
|
||||||
path = ../../overlays;
|
path = ../../overlays;
|
||||||
in
|
in
|
||||||
|
|||||||
@@ -1,15 +1,7 @@
|
|||||||
{pkgs, ...}: {
|
{
|
||||||
programs.mise = {
|
programs.mise = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
globalConfig = {
|
|
||||||
env = {
|
|
||||||
KERL_CONFIGURE_OPTIONS = "--with-termcap --with-ssl=${pkgs.openssl.out}";
|
|
||||||
CPPFLAGS = "-I${pkgs.ncurses.dev}/include -I${pkgs.openssl.dev}/include";
|
|
||||||
LDFLAGS = "-L${pkgs.ncurses.out}/lib -L${pkgs.openssl.out}/lib";
|
|
||||||
PKG_CONFIG_PATH = "${pkgs.ncurses.dev}/lib/pkgconfig:${pkgs.openssl.dev}/lib/pkgconfig";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
programs.zellij = {
|
programs.zellij = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = false;
|
||||||
settings = {
|
settings = {
|
||||||
theme = "catppuccin-latte";
|
theme = "catppuccin-latte";
|
||||||
default_layout = "compact";
|
default_layout = "compact";
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ in {
|
|||||||
imports = [
|
imports = [
|
||||||
nixvim.homeModules.nixvim
|
nixvim.homeModules.nixvim
|
||||||
../base/home-manager
|
../base/home-manager
|
||||||
|
./home-manager/zellij.nix
|
||||||
];
|
];
|
||||||
home = {
|
home = {
|
||||||
packages = pkgs.callPackage ../base/packages.nix {} ++ pkgs.callPackage ./packages.nix {};
|
packages = pkgs.callPackage ../base/packages.nix {} ++ pkgs.callPackage ./packages.nix {};
|
||||||
|
|||||||
5
profiles/nixos/home-manager/zellij.nix
Normal file
5
profiles/nixos/home-manager/zellij.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
programs.zellij = {
|
||||||
|
enableFishIntegration = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user