feat(tyr): setup home manager.
This commit is contained in:
parent
f1f24c8e07
commit
bb8471de68
3 changed files with 36 additions and 6 deletions
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
|
@ -67,16 +68,16 @@
|
|||
users.users.crony = {
|
||||
isNormalUser = true;
|
||||
description = "Crony";
|
||||
# hashedPasswordFile = "${config.age.secrets.crony-passwd.path}";
|
||||
hashedPasswordFile = "${config.age.secrets.crony-passwd.path}";
|
||||
extraGroups = ["networkmanager" "wheel" "video" "input" "audio" "gamemode" "seat" "realtime"];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBJLduAXHWJiglmfRfkBGKffzVWkJP6porxIzw6+Zz3W crony@cronyakatsuki.xyz"
|
||||
];
|
||||
};
|
||||
|
||||
# users.users.root.hashedPasswordFile = "${config.age.secrets.root-passwd.path}";
|
||||
users.users.root.hashedPasswordFile = "${config.age.secrets.root-passwd.path}";
|
||||
|
||||
# users.mutableUsers = false;
|
||||
users.mutableUsers = false;
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
@ -126,11 +127,9 @@
|
|||
|
||||
services.fail2ban = {
|
||||
enable = true;
|
||||
ignoreIP = [
|
||||
"65.21.241.194"
|
||||
];
|
||||
};
|
||||
|
||||
# Enable my specific settings
|
||||
crony.secrets.enable = true;
|
||||
|
||||
# Enable nixd to see nixpkgs path
|
||||
|
|
18
hosts/tyr/home.nix
Normal file
18
hosts/tyr/home.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{inputs, ...}: {
|
||||
imports = [
|
||||
inputs.nvf.homeManagerModules.default
|
||||
inputs.nix-index-database.homeModules.nix-index
|
||||
inputs.nix-flatpak.homeManagerModules.nix-flatpak
|
||||
inputs.agenix.homeManagerModules.default
|
||||
];
|
||||
|
||||
# Some info
|
||||
home.username = "crony";
|
||||
home.homeDirectory = "/home/crony";
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
# DO NOT CHANGE
|
||||
home.stateVersion = "24.11"; # Please read the comment before changing.
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue