dotfiles/nixos/boxes/cushy/default.nix

88 lines
1.9 KiB
Nix
Raw Normal View History

2024-09-27 11:25:11 +01:00
{
config,
pkgs,
inputs,
lib,
nixpkgs-nixos-unstable-and-unfree,
...
2024-10-02 14:38:34 +01:00
}: let
username = "Cyryl.Plotnicki";
in {
2024-09-27 11:25:11 +01:00
imports = [
2024-10-02 14:38:34 +01:00
(import ../../zsh {
inherit pkgs;
inherit lib;
inherit config;
cyplo.username = username;
})
(import ../../git {
inherit pkgs;
inherit lib;
inherit config;
cyplo.username = username;
})
2024-10-02 15:32:22 +01:00
(import ../../helix {
inherit pkgs;
inherit lib;
inherit config;
cyplo.username = username;
})
2024-09-27 11:25:11 +01:00
];
services.nix-daemon.enable = true;
nix.settings.experimental-features = "nix-command flakes";
2024-10-02 13:25:26 +01:00
nix.settings.ssl-cert-file = "/etc/nix/ca_cert.pem";
2024-09-27 11:25:11 +01:00
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"
];
2024-10-02 13:25:26 +01:00
home-manager.users."Cyryl.Plotnicki" = {...}: {
2024-09-27 11:25:11 +01:00
imports = [
../../home-manager/programs/kitty.nix
];
2024-10-02 13:25:26 +01:00
programs.kitty.settings.hide_window_decorations = lib.mkForce false;
2024-10-02 14:38:34 +01:00
home.sessionPath = ["$HOME/bin" "/Users/Cyryl.Plotnicki/Library/Application Support/JetBrains/Toolbox/scripts"];
2024-09-27 11:25:11 +01:00
home.packages = with pkgs; [];
programs = {
2024-10-02 14:38:34 +01:00
git.userEmail = "cyryl.plotnicki@cushon.co.uk";
2024-09-27 11:25:11 +01:00
};
};
}