refactor: use michaotic username throughout, add cli/kitty/zsh configs and docs
This commit is contained in:
parent
1f960a53a5
commit
5c14cf0539
17 changed files with 509 additions and 36 deletions
|
|
@ -6,10 +6,13 @@
|
|||
"flakes"
|
||||
];
|
||||
|
||||
users.users.mikl = {
|
||||
# Required when using zsh as user shell
|
||||
programs.zsh.enable = true;
|
||||
|
||||
users.users.michaotic = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.zsh;
|
||||
home = "/home/mikl";
|
||||
home = "/home/michaotic";
|
||||
};
|
||||
|
||||
environment.systemPackages = [
|
||||
|
|
|
|||
|
|
@ -31,9 +31,9 @@
|
|||
boot.loader.systemd-boot.enable = lib.mkForce false;
|
||||
boot.loader.efi.canTouchEfiVariables = lib.mkForce false;
|
||||
|
||||
# SSH ключи для mikl: forgejo .keys endpoint с sha256-pinning
|
||||
# SSH ключи для michaotic: forgejo .keys endpoint с sha256-pinning
|
||||
# + hardcoded fallback ключ для восстановления
|
||||
users.users.mikl.openssh.authorizedKeys.keyFiles = [
|
||||
users.users.michaotic.openssh.authorizedKeys.keyFiles = [
|
||||
(pkgs.fetchurl {
|
||||
url = "https://git.iscg.dev/mikl.keys";
|
||||
sha256 = "sha256-4n6QLUPozdhHOmsRCuFn7HR9BU3nF0/GR2E7s5Lpz+Q=";
|
||||
|
|
|
|||
|
|
@ -13,15 +13,25 @@
|
|||
"flakes"
|
||||
];
|
||||
|
||||
# nix daemon (multi-user install)
|
||||
services.nix-daemon.enable = true;
|
||||
|
||||
users.users.mikl = {
|
||||
home = "/Users/mikl";
|
||||
users.users.michaotic = {
|
||||
home = "/Users/michaotic";
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.vim
|
||||
];
|
||||
}
|
||||
|
||||
system.stateVersion = 7;
|
||||
|
||||
# Home-manager configuration specific to poppy
|
||||
home-manager.users.michaotic = {
|
||||
imports = [ ../../home/kitty.nix ];
|
||||
|
||||
programs.zsh.shellAliases = {
|
||||
switch = "darwin-rebuild switch --flake .#poppy";
|
||||
update = "nix flake update && darwin-rebuild switch --flake .#poppy";
|
||||
cleanup = "nix-collect-garbage -d";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue