nix flake update

This commit is contained in:
Tobias Ostner 2025-06-14 14:15:51 +02:00
parent 9e83e6c002
commit c3ff3db64f
4 changed files with 29 additions and 15 deletions

18
flake.lock generated
View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1746254942, "lastModified": 1749873626,
"narHash": "sha256-Y062AuRx6l+TJNX8wxZcT59SSLsqD9EedAY0mqgTtQE=", "narHash": "sha256-1Mc/D/1RwwmDKY59f4IpDBgcQttxffm+4o0m67lQ8hc=",
"owner": "lnl7", "owner": "lnl7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "760a11c87009155afa0140d55c40e7c336d62d7a", "rev": "2f140d6ac8840c6089163fb43ba95220c230f22b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -46,11 +46,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1746413188, "lastModified": 1749821119,
"narHash": "sha256-i6BoiQP0PasExESQHszC0reQHfO6D4aI2GzOwZMOI20=", "narHash": "sha256-X3WAS322EsebI4ohJcXhKpiyG1v+7wE4VOiXy1pxM/c=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "8a318641ac13d3bc0a53651feaee9560f9b2d89a", "rev": "79dfd9aa295e53773aad45480b44c131da29f35b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -61,11 +61,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1746328495, "lastModified": 1749794982,
"narHash": "sha256-uKCfuDs7ZM3QpCE/jnfubTg459CnKnJG/LwqEVEdEiw=", "narHash": "sha256-Kh9K4taXbVuaLC0IL+9HcfvxsSUx8dPB5s5weJcc9pc=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "979daf34c8cacebcd917d540070b52a3c2b9b16e", "rev": "ee930f9755f58096ac6e8ca94a1887e0534e2d81",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -1,4 +1,4 @@
{ hostname }: { hostname, username }:
{ {
nix = { nix = {
optimise.automatic = true; optimise.automatic = true;
@ -65,10 +65,8 @@
}; };
system = { system = {
activationScripts.postUserActivation.text = ''
/System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u primaryUser = username;
defaults write com.apple.symbolichotkeys AppleSymbolicHotKeys -dict-add 70 '<dict><key>enabled</key><false/></dict>'
'';
defaults = { defaults = {
dock = { dock = {

View file

@ -113,6 +113,22 @@
}; };
}; };
launchd.agents.disable-hotkey = {
enable = true;
config = {
ProgramArguments = [
"defaults"
"write"
"com.apple.symbolichotkeys"
"AppleSymbolicHotKeys"
"-dict-add"
"70"
"<dict><key>enabled</key><false/></dict>"
];
RunAtLoad = true;
};
};
xdg.configFile."aerospace/aerospace.toml".text = builtins.readFile ../config/aerospace/aerospace.toml; xdg.configFile."aerospace/aerospace.toml".text = builtins.readFile ../config/aerospace/aerospace.toml;
xdg.configFile."ghostty/config".text = builtins.readFile ../config/ghostty/config; xdg.configFile."ghostty/config".text = builtins.readFile ../config/ghostty/config;
} }

View file

@ -7,7 +7,7 @@
, extraHomeManagerModules ? [ ] , extraHomeManagerModules ? [ ]
}: }:
let let
systemConfig = import ../module/configuration.nix { inherit hostname; }; systemConfig = import ../module/configuration.nix { inherit hostname username; };
homeManagerConfig = import ../module/home-manager.nix { inherit email; }; homeManagerConfig = import ../module/home-manager.nix { inherit email; };
in in
inputs.darwin.lib.darwinSystem { inputs.darwin.lib.darwinSystem {