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

84 lines
2.5 KiB
Nix
Raw Normal View History

2025-01-09 13:49:22 +00:00
{
2025-01-13 19:53:42 +00:00
withSystem,
inputs,
...
}: {
2025-01-09 13:49:22 +00:00
# perSystem = { ... }: { config.packages.hello = ...; };
flake.homeConfigurations.crash = withSystem "x86_64-linux" (
2025-01-13 19:53:42 +00:00
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
../../modules/programs/desktop.nix
2025-01-29 02:43:02 +00:00
../../modules/programs/media.nix
2025-01-14 20:03:23 +00:00
../../modules/programs/games.nix
2025-01-13 19:53:42 +00:00
];
home.username = "nathan";
home.homeDirectory = "/home/nathan/";
programs.command-not-found.enable = true;
home.stateVersion = "24.11";
programs.home-manager.enable = true;
2025-01-09 13:49:22 +00:00
2025-01-13 19:53:42 +00:00
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
2025-01-09 13:49:22 +00:00
2025-01-13 19:53:42 +00:00
# Machine specific configuration
services.emacs.defaultEditor = true;
2025-01-09 17:03:03 +00:00
2025-01-13 19:53:42 +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-10 20:50:29 +00:00
};
};
2025-01-13 22:54:43 +00:00
home.packages = with pkgs; [
# Stylus note taking
xournalpp
2025-01-14 19:25:30 +00:00
rnote
2025-01-19 20:35:08 +00:00
# Drawing and image editing
krita
inkscape
gimp
2025-01-14 19:25:30 +00:00
# System monitoring
nvtopPackages.full
2025-01-23 06:01:06 +00:00
# RSS reader for testing
kdePackages.akregator
2025-01-13 22:54:43 +00:00
];
2025-01-13 19:53:42 +00:00
}
)
];
}
2025-01-09 13:49:22 +00:00
);
}