-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
abstract user configuration for general use, reorg, update readme
- Loading branch information
1 parent
84e91b0
commit d52f990
Showing
11 changed files
with
98 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,10 @@ | |
./desktop | ||
]; | ||
|
||
home.packages = [ | ||
pkgs.curl | ||
pkgs.wget | ||
]; | ||
home = { | ||
packages = [ | ||
pkgs.curl | ||
pkgs.wget | ||
]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
imports = [ | ||
./hyprland | ||
./hyprland.nix | ||
./sound.nix | ||
]; | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ system, inputs, packages, config, homeOptions ? { }, ... }: | ||
{ | ||
home-manager = { | ||
useGlobalPkgs = true; | ||
useUserPackages = true; | ||
users.${config.user.name} = { | ||
imports = [ ../home ]; # Home Options | ||
|
||
home.username = config.user.name; | ||
home.homeDirectory = "/home/${config.user.name}"; | ||
} // homeOptions; | ||
|
||
# Optionally, use home-manager.extraSpecialArgs to pass | ||
# arguments to home.nix | ||
extraSpecialArgs = { | ||
inherit (packages.${system}) nvim; | ||
firefox-addons = inputs.firefox-addons.packages.${system}; | ||
theme = import ../../theme; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ lib, config, pkgs, ... }: | ||
with lib; | ||
let | ||
cfg = config.user; | ||
|
||
mkOpt = type: default: description: | ||
mkOption { inherit type default description; }; | ||
in | ||
{ | ||
options.user = with types; { | ||
name = mkOpt str "walawren" "The name to use for the user account"; | ||
}; | ||
|
||
config = { | ||
users.users.${cfg.name} = { | ||
inherit (cfg) name; | ||
shell = pkgs.zsh; | ||
isNormalUser = true; | ||
home = "/home/${cfg.name}"; | ||
group = "users"; | ||
|
||
extraGroups = [ "wheel" "networkmanager" "audio" "sound" "video" "input" "tty" "docker" ]; | ||
}; | ||
|
||
programs.zsh.enable = true; | ||
}; | ||
} |