use zsh on work mac
Some checks failed
use nix / build (push) Failing after 4m4s

This commit is contained in:
Cyryl Płotnicki 2024-10-02 14:38:34 +01:00
parent 530f4023fc
commit aa507c0814
4 changed files with 32 additions and 15 deletions

View file

@ -5,9 +5,22 @@
lib, lib,
nixpkgs-nixos-unstable-and-unfree, nixpkgs-nixos-unstable-and-unfree,
... ...
}: { }: let
username = "Cyryl.Plotnicki";
in {
imports = [ imports = [
(import ../../git { inherit pkgs; inherit lib; inherit config; cyplo.username = "Cyryl.Plotnicki"; }) (import ../../zsh {
inherit pkgs;
inherit lib;
inherit config;
cyplo.username = username;
})
(import ../../git {
inherit pkgs;
inherit lib;
inherit config;
cyplo.username = username;
})
]; ];
services.nix-daemon.enable = true; services.nix-daemon.enable = true;
@ -33,8 +46,6 @@
}) })
]; ];
homebrew.enable = true; homebrew.enable = true;
homebrew.casks = [ homebrew.casks = [
"caffeine" "caffeine"
@ -61,7 +72,7 @@
]; ];
programs.kitty.settings.hide_window_decorations = lib.mkForce false; programs.kitty.settings.hide_window_decorations = lib.mkForce false;
home.sessionPath = ["$HOME/bin"]; home.sessionPath = ["$HOME/bin" "/Users/Cyryl.Plotnicki/Library/Application Support/JetBrains/Toolbox/scripts"];
home.packages = with pkgs; []; home.packages = with pkgs; [];
programs = { programs = {
git.userEmail = "cyryl.plotnicki@cushon.co.uk"; git.userEmail = "cyryl.plotnicki@cushon.co.uk";

View file

@ -4,11 +4,11 @@
lib, lib,
cyplo, cyplo,
... ...
}: }: let
let username =
username = if cyplo ? username then "${cyplo.username}" else "cyryl"; if cyplo ? username
in then "${cyplo.username}"
{ else "cyryl";
in {
home-manager.users."${username}" = {...}: {imports = [./home.nix];}; home-manager.users."${username}" = {...}: {imports = [./home.nix];};
} }

View file

@ -2,8 +2,14 @@
config, config,
pkgs, pkgs,
lib, lib,
cyplo,
... ...
}: { }: let
username =
if cyplo ? username
then "${cyplo.username}"
else "cyryl";
in {
programs.zsh.enable = true; programs.zsh.enable = true;
home-manager.users.cyryl = {...}: {imports = [./home.nix];}; home-manager.users."${username}" = {...}: {imports = [./home.nix];};
} }