Move Nix files back to the root of the project
This commit is contained in:
parent
52044d9995
commit
087153a16d
223 changed files with 12 additions and 12 deletions
35
lib/shared/home-manager-packages.nix
Normal file
35
lib/shared/home-manager-packages.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
headless,
|
||||
pkgs,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
|
||||
with pkgs;
|
||||
[
|
||||
cachix
|
||||
delta
|
||||
entr
|
||||
gcc
|
||||
git
|
||||
git-crypt
|
||||
gnupg
|
||||
inotify-tools
|
||||
jq
|
||||
killall
|
||||
lua
|
||||
mob
|
||||
pv
|
||||
simple-http-server
|
||||
sshs
|
||||
tldr
|
||||
tree
|
||||
tree-sitter
|
||||
unzip
|
||||
w3m
|
||||
watchexec
|
||||
wget
|
||||
xclip
|
||||
xdg-utils
|
||||
zbar
|
||||
]
|
24
lib/shared/home-manager.nix
Normal file
24
lib/shared/home-manager.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ username, ... }:
|
||||
|
||||
{
|
||||
home.username = "${username}";
|
||||
home.homeDirectory = "/home/${username}";
|
||||
|
||||
# Nicely reload system units when changing configs.
|
||||
systemd.user.startServices = "sd-switch";
|
||||
|
||||
# See https://github.com/nix-community/home-manager/issues/2064#issuecomment-2259307514.
|
||||
# This is a workaround for the following errors that appeared when switching back to unstable:
|
||||
# - 1: Failed to start unit flameshot.service
|
||||
# - 2: org.freedesktop.systemd1.NoSuchUnit: Unit tray.target not found.
|
||||
systemd.user.targets.tray = {
|
||||
Unit = {
|
||||
Description = "Home Manager System Tray";
|
||||
Requires = [ "graphical-session-pre.target" ];
|
||||
};
|
||||
};
|
||||
|
||||
home.stateVersion = "22.05";
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue