mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 12:00:14 +00:00
hostnames and user settings
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
|
||||
let
|
||||
cfg = config.nmasur.presets.programs.fish;
|
||||
inherit (config.nmasur.settings) username;
|
||||
in
|
||||
|
||||
{
|
||||
@ -18,7 +19,7 @@ in
|
||||
|
||||
environment.shells = [ pkgs.fish ];
|
||||
|
||||
users.users.${config.user}.shell = pkgs.fish;
|
||||
users.users.${username}.shell = pkgs.fish;
|
||||
|
||||
# Speeds up fish launch time on macOS
|
||||
programs.fish.useBabelfish = true;
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
let
|
||||
cfg = config.nmasur.presets.services.hammerspoon;
|
||||
inherit (config.nmasur.settings) username;
|
||||
in
|
||||
|
||||
{
|
||||
@ -19,7 +20,7 @@ in
|
||||
|
||||
system.activationScripts.postUserActivation.text = ''
|
||||
defaults write org.hammerspoon.Hammerspoon MJConfigFile "${
|
||||
config.home-manager.users.${config.user}.xdg.configHome
|
||||
config.home-manager.users.${username}.xdg.configHome
|
||||
}/hammerspoon/init.lua"
|
||||
sudo killall Dock
|
||||
'';
|
||||
|
14
platforms/nix-darwin/modules/nmasur/settings.nix
Normal file
14
platforms/nix-darwin/modules/nmasur/settings.nix
Normal file
@ -0,0 +1,14 @@
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
options.nmasur.settings = {
|
||||
username = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Primary username for the system";
|
||||
};
|
||||
fullName = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Human readable name of the user";
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user