up
This commit is contained in:
@@ -33,8 +33,7 @@ fi
|
|||||||
|
|
||||||
print_success "Build completed"
|
print_success "Build completed"
|
||||||
|
|
||||||
# Switch - note this requires sudo permissions
|
print_info "Switching to new configuration..."
|
||||||
print_info "Switching to new configuration (requires sudo)..."
|
|
||||||
if [[ "$EUID" -ne 0 ]]; then
|
if [[ "$EUID" -ne 0 ]]; then
|
||||||
sudo nixos-rebuild switch --flake ".#$HOSTNAME" "${@:2}"
|
sudo nixos-rebuild switch --flake ".#$HOSTNAME" "${@:2}"
|
||||||
else
|
else
|
||||||
|
|||||||
40
flake.lock
generated
40
flake.lock
generated
@@ -130,7 +130,9 @@
|
|||||||
},
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1757475826,
|
"lastModified": 1757475826,
|
||||||
@@ -242,16 +244,16 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1757068644,
|
"lastModified": 1757493204,
|
||||||
"narHash": "sha256-NOrUtIhTkIIumj1E/Rsv1J37Yi3xGStISEo8tZm3KW4=",
|
"narHash": "sha256-bwg0O7Xo/T7aTWp0zicklTonSULI33Y1LMsqFBmTIf8=",
|
||||||
"owner": "NixOS",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "8eb28adfa3dc4de28e792e3bf49fcf9007ca8ac9",
|
"rev": "f9e9d45a64c8ff4e9906260804a1679a28819b4e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "nixos",
|
||||||
"ref": "nixos-unstable",
|
"ref": "master",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@@ -272,22 +274,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
|
||||||
"lastModified": 1757493204,
|
|
||||||
"narHash": "sha256-bwg0O7Xo/T7aTWp0zicklTonSULI33Y1LMsqFBmTIf8=",
|
|
||||||
"owner": "nixos",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "f9e9d45a64c8ff4e9906260804a1679a28819b4e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nixos",
|
|
||||||
"ref": "master",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_3": {
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1757034884,
|
"lastModified": 1757034884,
|
||||||
"narHash": "sha256-PgLSZDBEWUHpfTRfFyklmiiLBE1i1aGCtz4eRA3POao=",
|
"narHash": "sha256-PgLSZDBEWUHpfTRfFyklmiiLBE1i1aGCtz4eRA3POao=",
|
||||||
@@ -303,7 +289,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_4": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754800730,
|
"lastModified": 1754800730,
|
||||||
"narHash": "sha256-HfVZCXic9XLBgybP0318ym3cDnGwBs/+H5MgxFVYF4I=",
|
"narHash": "sha256-HfVZCXic9XLBgybP0318ym3cDnGwBs/+H5MgxFVYF4I=",
|
||||||
@@ -322,7 +308,7 @@
|
|||||||
"nixvim": {
|
"nixvim": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts_2",
|
"flake-parts": "flake-parts_2",
|
||||||
"nixpkgs": "nixpkgs_3",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"nuschtosSearch": "nuschtosSearch",
|
"nuschtosSearch": "nuschtosSearch",
|
||||||
"systems": "systems_2"
|
"systems": "systems_2"
|
||||||
},
|
},
|
||||||
@@ -372,7 +358,7 @@
|
|||||||
"homebrew-cask": "homebrew-cask",
|
"homebrew-cask": "homebrew-cask",
|
||||||
"homebrew-core": "homebrew-core",
|
"homebrew-core": "homebrew-core",
|
||||||
"nix-homebrew": "nix-homebrew",
|
"nix-homebrew": "nix-homebrew",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixvim": "nixvim",
|
"nixvim": "nixvim",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
"zjstatus": "zjstatus"
|
"zjstatus": "zjstatus"
|
||||||
@@ -468,7 +454,7 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"crane": "crane",
|
"crane": "crane",
|
||||||
"flake-utils": "flake-utils_2",
|
"flake-utils": "flake-utils_2",
|
||||||
"nixpkgs": "nixpkgs_4",
|
"nixpkgs": "nixpkgs_3",
|
||||||
"rust-overlay": "rust-overlay"
|
"rust-overlay": "rust-overlay"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|||||||
17
flake.nix
17
flake.nix
@@ -8,7 +8,10 @@
|
|||||||
url = "github:Mic92/sops-nix";
|
url = "github:Mic92/sops-nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
home-manager.url = "github:nix-community/home-manager";
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
darwin = {
|
darwin = {
|
||||||
url = "github:LnL7/nix-darwin/master";
|
url = "github:LnL7/nix-darwin/master";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -94,6 +97,18 @@
|
|||||||
(final: prev: {
|
(final: prev: {
|
||||||
zjstatus = inputs.zjstatus.packages.${prev.system}.default;
|
zjstatus = inputs.zjstatus.packages.${prev.system}.default;
|
||||||
})
|
})
|
||||||
|
(_: prev: {
|
||||||
|
tailscale = prev.tailscale.overrideAttrs (old: {
|
||||||
|
checkFlags =
|
||||||
|
builtins.map (
|
||||||
|
flag:
|
||||||
|
if prev.lib.hasPrefix "-skip=" flag
|
||||||
|
then flag + "|^TestGetList$|^TestIgnoreLocallyBoundPorts$|^TestPoller$"
|
||||||
|
else flag
|
||||||
|
)
|
||||||
|
old.checkFlags;
|
||||||
|
});
|
||||||
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
./hosts/nixos/${hostname}
|
./hosts/nixos/${hostname}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
hostname,
|
hostname,
|
||||||
user,
|
user,
|
||||||
...
|
...
|
||||||
@@ -8,25 +7,6 @@
|
|||||||
../../../modules/nixos
|
../../../modules/nixos
|
||||||
];
|
];
|
||||||
|
|
||||||
boot = {
|
|
||||||
loader = {
|
|
||||||
systemd-boot = {
|
|
||||||
enable = true;
|
|
||||||
configurationLimit = 42;
|
|
||||||
};
|
|
||||||
efi.canTouchEfiVariables = true;
|
|
||||||
};
|
|
||||||
initrd.availableKernelModules = [
|
|
||||||
"xhci_pci"
|
|
||||||
"ahci"
|
|
||||||
"nvme"
|
|
||||||
"usbhid"
|
|
||||||
"usb_storage"
|
|
||||||
"sd_mod"
|
|
||||||
];
|
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/disk/by-label/NIXROOT";
|
device = "/dev/disk/by-label/NIXROOT";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
|
|||||||
@@ -62,7 +62,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
username = user;
|
username = user;
|
||||||
entries = [
|
entries = [
|
||||||
{path = "/Applications/Safari.app/";}
|
{path = "/Applications/Orion.app/";}
|
||||||
{path = "/${pkgs.ghostty-bin}/Applications/Ghostty.app/";}
|
{path = "/${pkgs.ghostty-bin}/Applications/Ghostty.app/";}
|
||||||
{path = "/System/Applications/Notes.app/";}
|
{path = "/System/Applications/Notes.app/";}
|
||||||
{path = "/System/Applications/Music.app/";}
|
{path = "/System/Applications/Music.app/";}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
homebrew = {
|
homebrew = {
|
||||||
enable = true;
|
enable = true;
|
||||||
casks = [
|
casks = [
|
||||||
"orbstack"
|
"orion"
|
||||||
];
|
];
|
||||||
masApps = {
|
masApps = {
|
||||||
"wipr2" = 1662217862;
|
"wipr2" = 1662217862;
|
||||||
|
|||||||
@@ -2,8 +2,9 @@
|
|||||||
with pkgs; [
|
with pkgs; [
|
||||||
_1password-gui
|
_1password-gui
|
||||||
dockutil
|
dockutil
|
||||||
xcodes
|
|
||||||
mas
|
mas
|
||||||
raycast
|
raycast
|
||||||
|
tailscale
|
||||||
|
xcodes
|
||||||
# whatsapp-for-mac
|
# whatsapp-for-mac
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -27,6 +27,25 @@
|
|||||||
nixPath = ["nixos-config=/home/${user}/.local/share/src/nixos-config:/etc/nixos"];
|
nixPath = ["nixos-config=/home/${user}/.local/share/src/nixos-config:/etc/nixos"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
loader = {
|
||||||
|
systemd-boot = {
|
||||||
|
enable = true;
|
||||||
|
configurationLimit = 42;
|
||||||
|
};
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
initrd.availableKernelModules = [
|
||||||
|
"xhci_pci"
|
||||||
|
"ahci"
|
||||||
|
"nvme"
|
||||||
|
"usbhid"
|
||||||
|
"usb_storage"
|
||||||
|
"sd_mod"
|
||||||
|
];
|
||||||
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
};
|
||||||
|
|
||||||
users.users = {
|
users.users = {
|
||||||
${user} = {
|
${user} = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|||||||
@@ -1,38 +0,0 @@
|
|||||||
{pkgs, ...}:
|
|
||||||
with pkgs; [
|
|
||||||
(callPackage ./bin/open-project.nix {})
|
|
||||||
age
|
|
||||||
alejandra
|
|
||||||
nodejs_24
|
|
||||||
pnpm
|
|
||||||
ast-grep
|
|
||||||
delta
|
|
||||||
devenv
|
|
||||||
dig
|
|
||||||
docker
|
|
||||||
docker-compose
|
|
||||||
fastfetch
|
|
||||||
fd
|
|
||||||
fira-code
|
|
||||||
gh
|
|
||||||
git
|
|
||||||
gnumake
|
|
||||||
gnupg
|
|
||||||
htop
|
|
||||||
hyperfine
|
|
||||||
jjui
|
|
||||||
jq
|
|
||||||
killall
|
|
||||||
lsof
|
|
||||||
nurl
|
|
||||||
openssh
|
|
||||||
postgresql_17
|
|
||||||
sd
|
|
||||||
sops
|
|
||||||
sqlite
|
|
||||||
tree
|
|
||||||
tree-sitter
|
|
||||||
unzip
|
|
||||||
vivid
|
|
||||||
zip
|
|
||||||
]
|
|
||||||
Reference in New Issue
Block a user