add home-manager
This commit is contained in:
@ -1,8 +1,5 @@
|
||||
{ pkgs, lib, config }:
|
||||
{ pkgs, lib, config, name, ... }:
|
||||
import ../default.nix {
|
||||
inherit pkgs lib config;
|
||||
userName = "AmethystAndroid";
|
||||
pubKeys = {
|
||||
palatine-hill = "ed25516-AAAAAAA";
|
||||
};
|
||||
inherit pkgs lib config name;
|
||||
pubKeys = [ "ed25516-AAAAAAA" ];
|
||||
}
|
7
users/alice/home.nix
Normal file
7
users/alice/home.nix
Normal file
@ -0,0 +1,7 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs = {
|
||||
};
|
||||
|
||||
home.stateVersion = "23.11";
|
||||
}
|
@ -1,5 +1,14 @@
|
||||
{ lib, config, pkgs, userName, pubKeys }:
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
name,
|
||||
pubKeys ? [],
|
||||
defaultShell ? "zsh",
|
||||
}:
|
||||
|
||||
{
|
||||
inherit name;
|
||||
isNormalUser = true;
|
||||
uid = 1000;
|
||||
extraGroups = [
|
||||
@ -8,14 +17,12 @@
|
||||
(lib.mkIf config.networking.networkmanager.enable "networkmanager")
|
||||
(lib.mkIf config.programs.adb.enable "adbusers")
|
||||
(lib.mkIf config.programs.wireshark.enable "wireshark")
|
||||
(lib.mkIf config.programs.virtualisation.docker.enable "docker")
|
||||
(lib.mkIf config.virtualisation.docker.enable "docker")
|
||||
"libvirtd"
|
||||
"dialout"
|
||||
"plugdev"
|
||||
"uaccess"
|
||||
];
|
||||
shell = pkgs.zsh;
|
||||
openssh.authorizedKeys.keys = [
|
||||
(lib.mkIf (pubKeys ? ${config.networking.hostName}) pubKeys.${config.networking.hostName})
|
||||
];
|
||||
shell = pkgs.${defaultShell};
|
||||
openssh.authorizedKeys.keys = pubKeys;
|
||||
}
|
Reference in New Issue
Block a user