Skip to content

Commit

Permalink
path fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dszakallas committed Feb 3, 2025
1 parent 60ae03d commit b795853
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 36 deletions.
8 changes: 4 additions & 4 deletions devenv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"devenv": {
"locked": {
"dir": "src/modules",
"lastModified": 1737729971,
"lastModified": 1738414267,
"owner": "cachix",
"repo": "devenv",
"rev": "68a6d54dbeb5622b8435d7f1acf9ce239a075635",
"rev": "3f49b4afbb9a80b1e81fb6071f59dac152177efa",
"type": "github"
},
"original": {
Expand Down Expand Up @@ -53,10 +53,10 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1737717945,
"lastModified": 1738452225,
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ecd26a469ac56357fd333946a99086e992452b6a",
"rev": "6c4e0724e0a785a20679b1bca3a46bfce60f05b6",
"type": "github"
},
"original": {
Expand Down
11 changes: 8 additions & 3 deletions hosts/dszakallas--Clownfish/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{ self, davids-dotfiles, ... }:
let myUsername = "dszakallas";
in {
let
myUsername = "dszakallas";
in
{
imports = [
davids-dotfiles.systemModules.default
davids-dotfiles.darwinModules.default
Expand All @@ -13,5 +15,8 @@ in {
version = "29";
};

nix.settings.trusted-users = [ "root" myUsername ];
nix.settings.trusted-users = [
"root"
myUsername
];
}
18 changes: 14 additions & 4 deletions hosts/jellyfish/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{ self, davids-dotfiles, davids-dotfiles-private, ... }@inputs:
let myUsername = "davidszakallas";
in {
{
self,
davids-dotfiles,
davids-dotfiles-private,
...
}@inputs:
let
myUsername = "davidszakallas";
in
{
imports = [
davids-dotfiles.systemModules.default
davids-dotfiles.darwinModules.default
Expand All @@ -11,7 +18,10 @@ in {
davids-dotfiles.users.${myUsername}
];

nix.settings.trusted-users = [ "root" myUsername ];
nix.settings.trusted-users = [
"root"
myUsername
];

davids.emacs = {
enable = true;
Expand Down
41 changes: 28 additions & 13 deletions modules/darwin/default/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{ self, davids-dotfiles, ... }:
{ pkgs, config, system, nixConfig, hostName, lib, ... }: {
{
pkgs,
config,
system,
nixConfig,
hostName,
lib,
...
}:
{
options = with lib; {
davids.emacs = {
enable = mkEnableOption "Emacs configuration (system-wide)";
Expand All @@ -15,26 +24,32 @@

homebrew.enable = true;

homebrew.casks = [ "gpg-suite" "iterm2" "firefox" "keepassxc" ];
homebrew.casks = [
"gpg-suite"
"iterm2"
"firefox"
"keepassxc"
];

homebrew.brews = lib.optionals config.davids.emacs.enable [{
name = "emacs-plus@${config.davids.emacs.version}";
args = [ "with-native-comp" ];
}];
homebrew.brews = lib.optionals config.davids.emacs.enable [
{
name = "emacs-plus@${config.davids.emacs.version}";
args = [ "with-native-comp" ];
}
];

homebrew.taps =
lib.optionals config.davids.emacs.enable [ "d12frosted/emacs-plus" ];
homebrew.taps = lib.optionals config.davids.emacs.enable [ "d12frosted/emacs-plus" ];

# Create /etc/zshrc that loads the nix-darwin environment.
programs.zsh = {
enable = true; # default shell on catalina

# Add back the original contents
shellInit = ''
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi
'';
# shellInit = ''
# if [ -x /usr/libexec/path_helper ]; then
# eval `/usr/libexec/path_helper -s`
# fi
# '';
};

# Set Git commit hash for darwin-version.
Expand Down
9 changes: 7 additions & 2 deletions modules/darwin/p10y/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{ ... }: {
{ ... }:
{
homebrew.brews = [ "podman" ];
homebrew.casks = [ "logseq" "ukelele" "podman-desktop" ];
homebrew.casks = [
"logseq"
"ukelele"
"podman-desktop"
];
}
11 changes: 5 additions & 6 deletions modules/home/default/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ in
EDITOR = "vim";
LANG = "en_US.UTF-8";
};
shellAliases = {
la = "ls -la";
g = "git";
v = "vim";
};
file.".ssh/davids.known_hosts".text = mkIf config.davids.ssh.enable (
davids-dotfiles.lib.textRegion {
name = moduleName;
Expand Down Expand Up @@ -296,12 +301,6 @@ in
];
theme = "clean";
};

shellAliases = {
la = "ls -la";
g = "git";
v = "vim";
};
};
};
};
Expand Down
7 changes: 3 additions & 4 deletions users/davidszakallas/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
username = "davidszakallas";
homeDirectory = "/Users/davidszakallas";
stateVersion = "24.05";
shellAliases = {
docker = "podman";
};
};

programs.home-manager.enable = true;
Expand All @@ -40,9 +43,5 @@
};
davids.jupiter.enable = true;
davids.ssh.enable = true;

programs.zsh.shellAliases = {
docker = "podman";
};
};
}
3 changes: 3 additions & 0 deletions users/dszakallas/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
username = "dszakallas";
homeDirectory = "/Users/dszakallas";
stateVersion = "24.05";
shellAliases = {
docker = "podman";
};
};

programs.home-manager.enable = true;
Expand Down

0 comments on commit b795853

Please sign in to comment.