macOS
This commit is contained in:
parent
add9976272
commit
97540d460a
3 changed files with 21 additions and 1 deletions
19
flake.nix
19
flake.nix
|
@ -118,6 +118,25 @@
|
||||||
linux
|
linux
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
work = forAllSystems (
|
||||||
|
system:
|
||||||
|
home-manager.lib.homeManagerConfiguration {
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
extraSpecialArgs = {
|
||||||
|
inherit inputs outputs system;
|
||||||
|
inherit (outputs) colors font;
|
||||||
|
};
|
||||||
|
modules = with outputs.homeManagerModules; [
|
||||||
|
common
|
||||||
|
{
|
||||||
|
home.homeDirectory = "/Users/daniel.flanagan";
|
||||||
|
home.username = "daniel.flanagan";
|
||||||
|
home.stateVersion = "24.05";
|
||||||
|
}
|
||||||
|
macos
|
||||||
|
];
|
||||||
|
}
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
# Disk partition schemes and functions
|
# Disk partition schemes and functions
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
imports = with outputs.homeManagerModules; [
|
imports = with outputs.homeManagerModules; [
|
||||||
common
|
common
|
||||||
desktop
|
desktop
|
||||||
|
pass
|
||||||
];
|
];
|
||||||
|
|
||||||
# TODO: pinentry curses?
|
# TODO: pinentry curses?
|
||||||
|
|
|
@ -141,9 +141,9 @@ in {
|
||||||
|
|
||||||
services.logind = {
|
services.logind = {
|
||||||
lidSwitch = "suspend-then-hibernate";
|
lidSwitch = "suspend-then-hibernate";
|
||||||
|
# HandleLidSwitchDocked=ignore
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
HandlePowerKey=suspend-then-hibernate
|
HandlePowerKey=suspend-then-hibernate
|
||||||
HandleLidSwitchDocked=ignore
|
|
||||||
IdleAction=suspend-then-hibernate
|
IdleAction=suspend-then-hibernate
|
||||||
IdleActionSec=10m
|
IdleActionSec=10m
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue