2023-07-16 16:43:13 +03:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
2023-07-28 15:39:50 +03:00
|
|
|
let
|
|
|
|
secrets = import ../secrets.nix;
|
2023-08-19 11:06:28 +03:00
|
|
|
in rec {
|
|
|
|
users.mutableUsers = false;
|
|
|
|
|
2023-07-16 16:43:13 +03:00
|
|
|
users.users.ivabus = {
|
|
|
|
isNormalUser = true;
|
2023-08-19 11:06:28 +03:00
|
|
|
extraGroups = [ "wheel" "input" "video" "audio" "disk" "libvirtd" "qemu-libvirtd"];
|
2023-07-28 15:39:50 +03:00
|
|
|
uid = 1000;
|
2023-07-16 16:43:13 +03:00
|
|
|
packages = with pkgs; [
|
|
|
|
tree
|
|
|
|
cargo
|
|
|
|
rustc
|
|
|
|
neofetch
|
2023-08-22 19:39:11 +03:00
|
|
|
htop
|
2023-07-16 16:43:13 +03:00
|
|
|
];
|
|
|
|
shell = pkgs.zsh;
|
2023-07-28 15:39:50 +03:00
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
# Air M2 macOS
|
|
|
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC6HY6er37FUz2tPQnwq5SUQZ5KHmMpGQA5yNlxPOyoCV+uvdx/cU8KF7jlFoyBC9xf2FvNyB8H1MZ6t2eUs4m/pVMpoBbNSTZLSxlvv2n4HuxL2Sg3qPdioJOyxDfnXA4OIZ+Tc+z4zM3ZnPJm1ccGW7W+YPhZ7GhBpl5wlMw+m06dCt8wfdDA4fuf4brnLt1ZMs4aOtVM8u4ZEtMs3IVXVUgtRH5m0RXZ94s7RkrUHhl2UOkOclhkQOiQop9RuJMjpi+iYkDYCniuGCKcKPrmi1+qicKM8KyrYGqR7FkUvzr+H8XtJXu++Kvmjcn54jDYqM4sq/MNL2rf8QaIUGLwiq2ljH2dGamElvElWZoXQBGPp4L80IEbaMVISIcvcNj+8cKW3rPvEUK5iT8jCkIOUwm1oo70YawS5VXTPLDsZif12QduTcJhVJekEaP0ZSifO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JYDTGKrgVdO98acVcAjLv8rfKV8/SuODJ1fQafaz6C+O+3W9d5/L/HmCWunYKqDDNp14e8w0IHM2XC4mMYNABHisWkW6fMQ6mZxv2FuiYSITKdIUfFVbpdPOG7GF6jyDb/+LCR4vidNqXAU3ESGVOoyfDOvwm2lS5H7TVvBqEZUSjvIK8rqN5WRAdZ1iolADDoU= ivabus@celerrime"
|
|
|
|
|
2023-07-28 15:39:50 +03:00
|
|
|
];
|
|
|
|
hashedPassword = secrets.hashed-password;
|
2023-07-16 16:43:13 +03:00
|
|
|
};
|
|
|
|
|
2023-08-19 11:06:28 +03:00
|
|
|
|
|
|
|
users.users.root = {
|
|
|
|
hashedPassword = null;
|
|
|
|
openssh.authorizedKeys.keys = users.users.ivabus.openssh.authorizedKeys.keys;
|
|
|
|
};
|
|
|
|
|
2023-07-16 16:43:13 +03:00
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.gnupg.agent.enable = true;
|
|
|
|
programs.ssh.startAgent = true;
|
|
|
|
|
2023-07-28 15:39:50 +03:00
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.ivabus = {
|
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "Ivan Bushchik";
|
|
|
|
userEmail = "ivabus@ivabus.dev";
|
|
|
|
signing.key = "DF1D910360471F0CCF076E449F6DDABE11A2674D";
|
|
|
|
signing.signByDefault = true;
|
|
|
|
package = pkgs.gitAndTools.gitFull;
|
|
|
|
};
|
|
|
|
home.stateVersion = "23.05";
|
2023-07-16 16:43:13 +03:00
|
|
|
};
|
2023-07-30 09:17:06 +03:00
|
|
|
}
|