secrets: cosmetic changes
This commit is contained in:
parent
3d2c3f4d09
commit
8d06f1a71f
5 changed files with 25 additions and 30 deletions
|
@ -8,8 +8,8 @@ in
|
|||
|
||||
# Home Manager needs a bit of information about you and the
|
||||
# paths it should manage.
|
||||
home.username = secrets.user.name;
|
||||
home.homeDirectory = secrets.user.dir;
|
||||
home.username = secrets.userName;
|
||||
home.homeDirectory = secrets.userDir;
|
||||
|
||||
home.keyboard = {
|
||||
model = "pc105";
|
||||
|
@ -64,10 +64,10 @@ in
|
|||
progs = {
|
||||
alacritty.enable = true;
|
||||
|
||||
git = with secrets.git; {
|
||||
git = {
|
||||
enable = true;
|
||||
gpgKey = gpgSigningKey;
|
||||
inherit userName userEmail;
|
||||
gpgKey = secrets.gpgSigningKey;
|
||||
inherit (secrets) userName userEmail;
|
||||
};
|
||||
|
||||
# password manager
|
||||
|
|
|
@ -3,23 +3,19 @@
|
|||
127.0.0.2 other-localhost
|
||||
'';
|
||||
|
||||
user = {
|
||||
name = "Bob";
|
||||
dir = "/home/bob";
|
||||
};
|
||||
realName = "Bob";
|
||||
userName = "bob";
|
||||
userDir = "/home/bob";
|
||||
userEmail = "bob@example.com";
|
||||
|
||||
git = {
|
||||
userName = "Bob Ross";
|
||||
userEmail = "bross@example.com";
|
||||
# gpg --list-secret-keys
|
||||
gpgSigningKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
|
||||
};
|
||||
# gpg --list-secret-keys
|
||||
gpgSigningKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
|
||||
|
||||
emailAccounts = {
|
||||
"personal" = {
|
||||
flavor = "yandex.com";
|
||||
address = "bross@yandex.ru";
|
||||
passwordCommand = "pass show emails/bross@yandex.ru";
|
||||
};
|
||||
emailAccounts = {
|
||||
"personal" = {
|
||||
flavor = "yandex.com";
|
||||
address = "bross@yandex.ru";
|
||||
passwordCommand = "pass show emails/bross@yandex.ru";
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
BIN
secrets.nix
BIN
secrets.nix
Binary file not shown.
|
@ -74,10 +74,10 @@ in
|
|||
programs.zsh.enable = true;
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.me = with secrets.user; {
|
||||
users.users.me = {
|
||||
isNormalUser = true;
|
||||
inherit name;
|
||||
home = dir;
|
||||
name = secrets.userName;
|
||||
home = secrets.userDir;
|
||||
extraGroups = [
|
||||
"wheel" # Enable ‘sudo’ for the user.
|
||||
"networkmanager"
|
||||
|
|
|
@ -4,11 +4,10 @@ let
|
|||
secrets = import ../../../secrets.nix;
|
||||
in
|
||||
{
|
||||
imports =
|
||||
[
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
boot = {
|
||||
# Use the GRUB 2 boot loader.
|
||||
|
|
Loading…
Reference in a new issue