Compare commits

...

4 Commits

Author SHA1 Message Date
John Lancaster
feae94f042 flake.lock update 2025-04-03 23:57:29 -05:00
John Lancaster
dc608152f7 added some build scripts 2025-04-03 23:57:23 -05:00
John Lancaster
445e08a771 added namespaces to restic ignore 2025-04-03 23:57:00 -05:00
John Lancaster
1c9f2b54df added zsh 2025-04-03 23:56:48 -05:00
5 changed files with 46 additions and 17 deletions

30
flake.lock generated
View File

@@ -39,11 +39,11 @@
]
},
"locked": {
"lastModified": 1742489664,
"narHash": "sha256-fFyOU2/c9rbVbzD4dqf6auEBUx658riCQOHcBhamRYM=",
"lastModified": 1743696273,
"narHash": "sha256-ZqJYdu1yH5CYg5EzS3JEkoLIM4XskAnsScPPy7ijkJQ=",
"owner": "cachix",
"repo": "devenv",
"rev": "c3f0053b68d618d5496be6b881b664437cf918b1",
"rev": "2b42d766fc87f15a5021bf96fd973b9218d0a04b",
"type": "github"
},
"original": {
@@ -178,11 +178,11 @@
]
},
"locked": {
"lastModified": 1742508854,
"narHash": "sha256-vQQTIl4+slrcu7ftVKNBql9ngBdY0dcYGujdT7zIVp0=",
"lastModified": 1743717835,
"narHash": "sha256-LJm6FoIcUoBw3w25ty12/sBfut4zZuNGdN0phYj/ekU=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "da0181819479ddc034a3db9a77ed21ea3bcc0668",
"rev": "66a6ec65f84255b3defb67ff45af86c844dd451b",
"type": "github"
},
"original": {
@@ -264,11 +264,11 @@
]
},
"locked": {
"lastModified": 1733319315,
"narHash": "sha256-cFQBdRmtIZFVjr2P6NkaCOp7dddF93BC0CXBwFZFaN0=",
"lastModified": 1743514126,
"narHash": "sha256-8zYFAsE4zlmc3MRZVLDBSHYF37posV+TxD6CNXqdxG0=",
"owner": "cachix",
"repo": "nixpkgs-python",
"rev": "01263eeb28c09f143d59cd6b0b7c4cc8478efd48",
"rev": "40d2237867f219de1c1362e3d067a1673afa5f82",
"type": "github"
},
"original": {
@@ -295,11 +295,11 @@
},
"nixpkgs_3": {
"locked": {
"lastModified": 1742288794,
"narHash": "sha256-Txwa5uO+qpQXrNG4eumPSD+hHzzYi/CdaM80M9XRLCo=",
"lastModified": 1743583204,
"narHash": "sha256-F7n4+KOIfWrwoQjXrL2wD9RhFYLs2/GGe/MQY1sSdlE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b6eaf97c6960d97350c584de1b6dcff03c9daf42",
"rev": "2c8d3f48d33929642c1c12cd243df4cc7d2ce434",
"type": "github"
},
"original": {
@@ -340,11 +340,11 @@
]
},
"locked": {
"lastModified": 1742406979,
"narHash": "sha256-r0aq70/3bmfjTP+JZs4+XV5SgmCtk1BLU4CQPWGtA7o=",
"lastModified": 1743604509,
"narHash": "sha256-Hf5aYGP3hP+uNbcd4NrEMUAR+1o518uGzoeVyMzzJwo=",
"owner": "Mic92",
"repo": "sops-nix",
"rev": "1770be8ad89e41f1ed5a60ce628dd10877cb3609",
"rev": "4521de68fba1a36fae8caebce3d6e047179661f7",
"type": "github"
},
"original": {

View File

@@ -115,6 +115,9 @@
gdbm
notebook # kinda hacky, but needed so that jupyter notebook has some shared library it needs?
]))
(writeShellScriptBin "docs" "${pkgs.uv}/bin/uv run sphinx-autobuild -E ./docs/ ./docs_build --port 9999")
(writeShellScriptBin "ab" "${pkgs.uv}/bin/uv build --wheel --refresh")
(writeShellScriptBin "adb" "ab && ${pkgs.docker}/bin/docker build -t acockburn/appdaemon:local-dev .")
# (writeShellScriptBin "ad-nb" "cd $(readlink -f /etc/nixos) && devenv up")
];

View File

@@ -18,10 +18,12 @@
home.stateVersion = systemSettings.stateVersion;
home.homeDirectory = lib.mkForce "${userSettings.adHome}";
systemd.user.startServices = "sd-switch"; # helps with handling systemd services when switching
imports = [ (import ./git.nix {inherit userSettings;}) ];
imports = [
(import ./git.nix {inherit userSettings;})
(import ./zsh.nix {inherit userSettings;})
];
programs = {
ssh.enable = true;
bash.enable = true;
};
};
};

23
home-manager/zsh.nix Normal file
View File

@@ -0,0 +1,23 @@
{ config, pkgs, ... }:
{
programs.zsh = {
enable = true;
oh-my-zsh = {
enable = true;
# https://github.com/ohmyzsh/ohmyzsh/wiki/themes
# theme = "robbyrussell";
# theme = "simple";
theme = "risto";
plugins = [
"sudo"
"dotenv"
"git"
"ssh"
"ssh-agent"
];
};
shellAliases = {
ls = "eza -l";
};
};
}

View File

@@ -38,6 +38,7 @@
"dist"
"__pycache__"
"*.egg-info"
"namespaces"
];
};
};