feat(tyr): setup home manager.
This commit is contained in:
parent
f1f24c8e07
commit
bb8471de68
3 changed files with 36 additions and 6 deletions
13
flake.nix
13
flake.nix
|
@ -303,6 +303,19 @@
|
||||||
auto-cpufreq.nixosModules.default
|
auto-cpufreq.nixosModules.default
|
||||||
./hosts/tyr/configuration.nix
|
./hosts/tyr/configuration.nix
|
||||||
./modules/linux/nixos
|
./modules/linux/nixos
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.extraSpecialArgs = {inherit inputs;};
|
||||||
|
home-manager.backupFileExtension = "backup";
|
||||||
|
home-manager.users.crony = {
|
||||||
|
imports = [
|
||||||
|
./modules/linux/home-manager
|
||||||
|
./modules/cross-platform/home-manager
|
||||||
|
./hosts/tyr/home.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
|
@ -67,16 +68,16 @@
|
||||||
users.users.crony = {
|
users.users.crony = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Crony";
|
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"];
|
extraGroups = ["networkmanager" "wheel" "video" "input" "audio" "gamemode" "seat" "realtime"];
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBJLduAXHWJiglmfRfkBGKffzVWkJP6porxIzw6+Zz3W crony@cronyakatsuki.xyz"
|
"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
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
@ -126,11 +127,9 @@
|
||||||
|
|
||||||
services.fail2ban = {
|
services.fail2ban = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ignoreIP = [
|
|
||||||
"65.21.241.194"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Enable my specific settings
|
||||||
crony.secrets.enable = true;
|
crony.secrets.enable = true;
|
||||||
|
|
||||||
# Enable nixd to see nixpkgs path
|
# 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