Compare commits
No commits in common. "0863a8a5921415e4f02227169afbba7f7535d71a" and "1b7b1e66f065e99600cc436e8553dda758bb71e3" have entirely different histories.
0863a8a592
...
1b7b1e66f0
8 changed files with 6 additions and 92 deletions
16
flake.lock
generated
16
flake.lock
generated
|
|
@ -978,21 +978,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixos-hardware": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1774465523,
|
|
||||||
"narHash": "sha256-4v7HPm63Q90nNn4fgkgKsjW1AH2Klw7XzPtHJr562nM=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixos-hardware",
|
|
||||||
"rev": "de895be946ad1d8aafa0bb6dfc7e7e0e9e466a29",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixos-hardware",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767313136,
|
"lastModified": 1767313136,
|
||||||
|
|
@ -1159,7 +1144,6 @@
|
||||||
"nix-flatpak": "nix-flatpak",
|
"nix-flatpak": "nix-flatpak",
|
||||||
"nixcats": "nixcats",
|
"nixcats": "nixcats",
|
||||||
"nixcord": "nixcord",
|
"nixcord": "nixcord",
|
||||||
"nixos-hardware": "nixos-hardware",
|
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"nixpkgs-master": "nixpkgs-master",
|
"nixpkgs-master": "nixpkgs-master",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,6 @@
|
||||||
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
nixpkgs-master.url = "github:NixOS/nixpkgs/master";
|
nixpkgs-master.url = "github:NixOS/nixpkgs/master";
|
||||||
|
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-25.11";
|
url = "github:nix-community/home-manager/release-25.11";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,10 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
imports = [
|
||||||
|
../../hosts/modules/core/garbage-collector.nix
|
||||||
|
];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,13 +4,7 @@
|
||||||
# WARNING: for that you need to use `services.ssh-agent.enable`
|
# WARNING: for that you need to use `services.ssh-agent.enable`
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
matchBlocks = {
|
|
||||||
# * block indicates defaults
|
|
||||||
"*" = {
|
|
||||||
forwardAgent = false;
|
forwardAgent = false;
|
||||||
addKeysToAgent = "yes";
|
addKeysToAgent = "yes";
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
../modules/core/t2-firmware.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "MACBOOKI9";
|
networking.hostName = "MACBOOKI9";
|
||||||
|
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
||||||
{
|
|
||||||
inputs,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
|
||||||
inputs.nixos-hardware.nixosModules.apple-t2
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
# t2-firmware dependencies
|
|
||||||
# REF: https://github.com/t2linux/nixos-t2-iso
|
|
||||||
python3
|
|
||||||
dmg2img
|
|
||||||
# get-apple-firmware
|
|
||||||
];
|
|
||||||
|
|
||||||
hardware = {
|
|
||||||
apple.touchBar.enable = true;
|
|
||||||
|
|
||||||
# REF: https://github.com/NixOS/nixos-hardware/blob/master/apple/t2/default.nix
|
|
||||||
apple-t2 = {
|
|
||||||
# the macbook does not have an AMD dGPU (iGPU)
|
|
||||||
enableIGPU = false;
|
|
||||||
|
|
||||||
kernelChannel = "stable";
|
|
||||||
|
|
||||||
firmware = {
|
|
||||||
enable = true;
|
|
||||||
version = "sonoma";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -24,8 +24,6 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
get-apple-firmware = pkgs.callPackage ../packages/get-apple-firmware.nix {};
|
|
||||||
|
|
||||||
sddm-theme-corners = import ../packages/sddm-theme/corners.nix {
|
sddm-theme-corners = import ../packages/sddm-theme/corners.nix {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
{
|
|
||||||
stdenvNoCC,
|
|
||||||
fetchurl,
|
|
||||||
lib,
|
|
||||||
}:
|
|
||||||
stdenvNoCC.mkDerivation (final: {
|
|
||||||
pname = "get-apple-firmware";
|
|
||||||
version = "360156db52c013dbdac0ef9d6e2cebbca46b955b";
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://raw.github.com/t2linux/wiki/${final.version}/docs/tools/firmware.sh";
|
|
||||||
hash = "sha256-IL7omNdXROG402N2K9JfweretTnQujY67wKKC8JgxBo=";
|
|
||||||
};
|
|
||||||
|
|
||||||
dontUnpack = true;
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
cp ${final.src} $out/bin/get-apple-firmware
|
|
||||||
chmod +x $out/bin/get-apple-firmware
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "A script to get needed firmware for T2linux devices";
|
|
||||||
homepage = "https://t2linux.org";
|
|
||||||
license = lib.licenses.mit;
|
|
||||||
maintainers = with lib.maintainers; [soopyc];
|
|
||||||
mainProgram = "get-apple-firmware";
|
|
||||||
};
|
|
||||||
})
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue