summaryrefslogtreecommitdiff
path: root/util/user.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-02-20 01:53:23 -0500
committerseth <[email protected]>2023-02-20 01:53:23 -0500
commit0957b051ef4befd86ce97deef04f5095bea9543b (patch)
treea669111fa7b0123a4e77819ddce0c0c75bef554f /util/user.nix
parenta276cdbfa83425423c096d8049e6e29770018e31 (diff)
start using nixpkgs-fmt
Diffstat (limited to 'util/user.nix')
-rw-r--r--util/user.nix51
1 files changed, 26 insertions, 25 deletions
diff --git a/util/user.nix b/util/user.nix
index 62c29f2..eb12e16 100644
--- a/util/user.nix
+++ b/util/user.nix
@@ -1,26 +1,27 @@
-{home-manager, ...}: {
- mkHMUser = {
- username,
- stateVersion ? "22.11",
- system ? "x86_64-linux",
- channel,
- modules ? [],
- }:
- home-manager.lib.homeManagerConfiguration {
- pkgs = channel.legacyPackages.${system};
- modules =
- [
- ../users/${username}/home.nix
- {
- nixpkgs.config.allowUnfree = true;
- systemd.user.startServices = true;
- home = {
- inherit username stateVersion;
- homeDirectory = "/home/${username}";
- };
- programs.home-manager.enable = true;
- }
- ]
- ++ modules;
- };
+{ home-manager, ... }: {
+ mkHMUser =
+ { username
+ , stateVersion ? "22.11"
+ , system ? "x86_64-linux"
+ , channel
+ , modules ? [ ]
+ ,
+ }:
+ home-manager.lib.homeManagerConfiguration {
+ pkgs = channel.legacyPackages.${system};
+ modules =
+ [
+ ../users/${username}/home.nix
+ {
+ nixpkgs.config.allowUnfree = true;
+ systemd.user.startServices = true;
+ home = {
+ inherit username stateVersion;
+ homeDirectory = "/home/${username}";
+ };
+ programs.home-manager.enable = true;
+ }
+ ]
+ ++ modules;
+ };
}