mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Pass hostname and username to modules
This commit is contained in:
parent
65efd22cb3
commit
70c2dc4e2f
4 changed files with 17 additions and 18 deletions
|
|
@ -1,7 +1,4 @@
|
|||
{ config, pkgs, ... }: let
|
||||
username = "gene";
|
||||
hostname = "rainbow-planet";
|
||||
in {
|
||||
{ config, pkgs, username, ... }: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
|
@ -39,12 +36,9 @@ in {
|
|||
];
|
||||
|
||||
networking = {
|
||||
hostName = "${hostname}";
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
|
||||
nix.settings.allowed-users = [ "${username}" ];
|
||||
|
||||
programs = {
|
||||
_1password.enable = true;
|
||||
_1password-gui = {
|
||||
|
|
@ -104,7 +98,7 @@ in {
|
|||
description = "Gene Liverman";
|
||||
extraGroups = [ "networkmanager" "wheel" "dialout" "input" ];
|
||||
packages = with pkgs; [
|
||||
tailscale-systray
|
||||
tailscale-systray
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue