System/home-manager/machines/crash/home.nix

62 lines
1.9 KiB
Nix
Raw Normal View History

2025-01-09 13:49:22 +00:00
{ withSystem, inputs, ... }:
{
# perSystem = { ... }: { config.packages.hello = ...; };
flake.homeConfigurations.crash = withSystem "x86_64-linux" (
ctx@{ config, inputs', ... }:
inputs.home-manager.lib.homeManagerConfiguration {
pkgs = inputs.nixpkgs.legacyPackages.${"x86_64-linux"};
extraSpecialArgs = {
inherit inputs inputs';
packages = config.packages;
};
modules = [
(
{
config,
lib,
pkgs,
...
}:
{
imports = [
../../modules/programs/shell.nix
../../modules/programs/neovim.nix
(import ../../modules/programs/git.nix { })
../../modules/programs/core.nix
../../modules/programs/devel.nix
../../modules/programs/ssh.nix
(import ../../modules/programs/emacs.nix { })
../../modules/programs/fonts.nix
2025-01-09 17:03:03 +00:00
../../modules/programs/desktop.nix
2025-01-09 13:49:22 +00:00
];
home.username = "nathan";
home.homeDirectory = "/home/nathan/";
programs.command-not-found.enable = true;
home.stateVersion = "24.11";
programs.home-manager.enable = true;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Machine specific configuration
2025-01-09 16:41:29 +00:00
services.emacs.defaultEditor = true;
2025-01-09 17:03:03 +00:00
2025-01-10 20:50:29 +00:00
systemd.user = {
targets.tray = {
Unit = {
Description = "Home Manager System Tray";
Requires = [ "graphical-session.target" ];
};
};
services.syncthingtray = {
Service.ExecStart = lib.mkForce "${pkgs.syncthingtray}/bin/syncthingtray --wait";
2025-01-09 17:03:03 +00:00
};
};
2025-01-09 13:49:22 +00:00
}
)
];
}
);
}