feat: add support for darwin

This commit is contained in:
ryan4yin
2023-05-25 18:51:34 +08:00
parent ab1ecc49ed
commit d86aae96ff
5 changed files with 100 additions and 5 deletions

28
home/home-darwin.nix Normal file
View File

@@ -0,0 +1,28 @@
{ config, pkgs, ... }:
{
imports = [
./programs
./shell
];
# Home Manager needs a bit of information about you and the
# paths it should manage.
home = {
username = "admin";
homeDirectory = "/Users/admin";
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
stateVersion = "22.11";
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
}

View File

@@ -1,13 +1,10 @@
{ config, pkgs, ... }:
{
imports = [
./fcitx5
./hyprland
# ./i3
./programs
./rofi
./shell
];

31
home/home-x11.nix Normal file
View File

@@ -0,0 +1,31 @@
{ config, pkgs, ... }:
{
imports = [
./fcitx5
./i3
./programs
./rofi
./shell
];
# Home Manager needs a bit of information about you and the
# paths it should manage.
home = {
username = "ryan";
homeDirectory = "/home/ryan";
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
stateVersion = "22.11";
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
}