Introduces non-server home-manager configs
Allows home-manager configs to be done on a server/non-server basis Provides an example config by moving emacs to its own space (behind a lib.optionals so only non-server machines accept it) marks artemision and rhapsody-in-green as explicitly non-server machines Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
@ -1,4 +1,10 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
machineConfig,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
@ -6,7 +12,7 @@
|
||||
./home/doom
|
||||
./home/gammastep.nix
|
||||
./home/git.nix
|
||||
];
|
||||
] ++ lib.optionals (!machineConfig.server) [ ./non-server.nix ];
|
||||
|
||||
home = {
|
||||
# # Adds the 'hello' command to your environment. It prints a friendly
|
||||
@ -100,10 +106,6 @@
|
||||
};
|
||||
|
||||
programs = {
|
||||
emacs = {
|
||||
enable = true;
|
||||
package = pkgs.emacs29-pgtk;
|
||||
};
|
||||
|
||||
starship.enable = true;
|
||||
fzf = {
|
||||
|
8
users/alice/non-server.nix
Normal file
8
users/alice/non-server.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
package = pkgs.emacs29-pgtk;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user