This commit is contained in:
parent
a87b12fdd5
commit
b8c8f8e597
3 changed files with 94 additions and 0 deletions
24
flake.nix
24
flake.nix
|
@ -167,6 +167,30 @@
|
|||
# Expose the package set, including overlays, for convenience.
|
||||
darwinPackages = self.darwinConfigurations."airy".pkgs;
|
||||
darwinConfigurations = {
|
||||
"cushy" = darwin.lib.darwinSystem rec {
|
||||
system = "aarch64-darwin";
|
||||
modules = [
|
||||
lix-module.nixosModules.default
|
||||
(./. + "/nixos/boxes/cushy")
|
||||
{users.users.cyryl.home = "/Users/Cyryl.Plotnicki";}
|
||||
home-manager.darwinModules.home-manager
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users."Cyryl\.Plotnicki" = {
|
||||
home.homeDirectory = "/Users/Cyryl.Plotnicki";
|
||||
programs.zsh.loginExtra = ''
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
'';
|
||||
imports = [./nixos/home-manager];
|
||||
_module.args.inputs = inputs;
|
||||
_module.args.system = system;
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
"airy" = darwin.lib.darwinSystem rec {
|
||||
system = "aarch64-darwin";
|
||||
modules = [
|
||||
|
|
2
nixos/boxes/cushy/README.md
Normal file
2
nixos/boxes/cushy/README.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
https://discourse.nixos.org/t/ssl-ca-cert-error-on-macos/31171/6
|
||||
|
68
nixos/boxes/cushy/default.nix
Normal file
68
nixos/boxes/cushy/default.nix
Normal file
|
@ -0,0 +1,68 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
lib,
|
||||
nixpkgs-nixos-unstable-and-unfree,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
../../git
|
||||
../../helix
|
||||
../../mercurial
|
||||
../../vim
|
||||
../../zsh
|
||||
];
|
||||
services.nix-daemon.enable = true;
|
||||
|
||||
nix.settings.experimental-features = "nix-command flakes";
|
||||
|
||||
programs.zsh.enable = true; # default shell on catalina
|
||||
|
||||
system.stateVersion = 4;
|
||||
|
||||
# The platform the configuration will be used on.
|
||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
inconsolata
|
||||
(fetchzip {
|
||||
url = "file://" + ../../fonts/berkeley.tar.xz;
|
||||
sha256 = "sha256-nsDqdQikT65vJVMq7r2MAOxd3xqj8vJ0Ky2y9CfI/bg==";
|
||||
})
|
||||
(fetchzip {
|
||||
url = "file://" + ../../fonts/tragicastle.tar.xz;
|
||||
sha256 = "sha256-AjvaPmjlyDjBDxeVp1A1yPin0FrwbBib87ywF4GHqS0=";
|
||||
})
|
||||
];
|
||||
|
||||
homebrew.enable = true;
|
||||
homebrew.casks = [
|
||||
"caffeine"
|
||||
"jetbrains-toolbox"
|
||||
"maccy"
|
||||
"zed"
|
||||
];
|
||||
homebrew.brews = [
|
||||
"autoconf"
|
||||
"automake"
|
||||
"guile"
|
||||
"libtool"
|
||||
{
|
||||
name = "libvirt";
|
||||
restart_service = true;
|
||||
}
|
||||
"qemu"
|
||||
"texinfo"
|
||||
"wget"
|
||||
];
|
||||
home-manager.users."Cyryl\.Plotnicki" = {...}: {
|
||||
imports = [
|
||||
../../home-manager/programs/kitty.nix
|
||||
];
|
||||
home.sessionPath = ["$HOME/bin"];
|
||||
home.packages = with pkgs; [];
|
||||
programs = {
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue