mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-12 06:19:00 +00:00
chore: update comments
This commit is contained in:
parent
c797766ade
commit
1915a106c9
@ -10,6 +10,7 @@
|
|||||||
{
|
{
|
||||||
setups.home-manager = {
|
setups.home-manager = {
|
||||||
configs = {
|
configs = {
|
||||||
|
# The typical user in desktop environments.
|
||||||
foo-dogsquared = {
|
foo-dogsquared = {
|
||||||
systems = [ "aarch64-linux" "x86_64-linux" ];
|
systems = [ "aarch64-linux" "x86_64-linux" ];
|
||||||
overlays = [
|
overlays = [
|
||||||
@ -35,6 +36,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# The typical user in server environments.
|
||||||
plover.systems = [ "x86_64-linux" ];
|
plover.systems = [ "x86_64-linux" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -12,18 +12,15 @@ in
|
|||||||
lib.mkEnableOption "custom outside dotfiles for other programs";
|
lib.mkEnableOption "custom outside dotfiles for other programs";
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
# Fetching my dotfiles,...
|
|
||||||
home.mutableFile."library/dotfiles" = {
|
home.mutableFile."library/dotfiles" = {
|
||||||
url = "https://github.com/foo-dogsquared/dotfiles.git";
|
url = "https://github.com/foo-dogsquared/dotfiles.git";
|
||||||
type = "git";
|
type = "git";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Add the custom scripts here.
|
|
||||||
home.sessionPath = [
|
home.sessionPath = [
|
||||||
"${config.home.mutableFile."library/dotfiles".path}/bin"
|
"${config.home.mutableFile."library/dotfiles".path}/bin"
|
||||||
];
|
];
|
||||||
|
|
||||||
# All of the personal configurations.
|
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
doom.source =
|
doom.source =
|
||||||
lib.mkIf userCfg.programs.doom-emacs.enable (getDotfiles "emacs");
|
lib.mkIf userCfg.programs.doom-emacs.enable (getDotfiles "emacs");
|
||||||
|
@ -215,7 +215,7 @@ in {
|
|||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
fastfetch # Fetch, fast!
|
fastfetch # Fetch, fast!
|
||||||
asciiquarium-transparent # The closest thing to an actual aquarium (without the responsibility, of course).
|
asciiquarium-transparent # The closest thing to an actual aquarium (without the responsibility, of course).
|
||||||
cowsay # Cow say "WHUT?"
|
cowsay # "WHUUUUUUUUUUUUUUUUUUUUUT?"
|
||||||
krabby # Kapture them Pikachus, bruh.
|
krabby # Kapture them Pikachus, bruh.
|
||||||
lavat # Where the lava at?
|
lavat # Where the lava at?
|
||||||
];
|
];
|
||||||
|
@ -26,12 +26,16 @@ in
|
|||||||
the built-in and the systemd-managed GNOME session.
|
the built-in and the systemd-managed GNOME session.
|
||||||
|
|
||||||
Each of the attribute name will be used as the identifier of the
|
Each of the attribute name will be used as the identifier of the
|
||||||
desktop environment. While you can make identifiers in any way, it is
|
desktop environment.
|
||||||
|
|
||||||
|
::: {.tip}
|
||||||
|
While you can make identifiers in any way, it is
|
||||||
encouraged to stick to a naming scheme. Here's two common ways to name
|
encouraged to stick to a naming scheme. Here's two common ways to name
|
||||||
a desktop environment.
|
a desktop environment.
|
||||||
|
|
||||||
* Reverse DNS-like scheme (e.g., `com.example.MoseyBranch`).
|
* Reverse DNS-like scheme (e.g., `com.example.MoseyBranch`).
|
||||||
* Kebab-case (e.g., `mosey-branch`).
|
* Kebab-case (e.g., `mosey-branch`).
|
||||||
|
:::
|
||||||
'';
|
'';
|
||||||
default = { };
|
default = { };
|
||||||
example = lib.literalExpression ''
|
example = lib.literalExpression ''
|
||||||
|
@ -337,6 +337,9 @@ rec {
|
|||||||
unitConfig.CollectMode = lib.mkForce "inactive-or-failed";
|
unitConfig.CollectMode = lib.mkForce "inactive-or-failed";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Luckily, this script can be flexible both for built-in and
|
||||||
|
# systemd-managed sessions by checking `DESKTOP_AUTOSTART_ID` envvar
|
||||||
|
# that is initialized with the built-in-managed session.
|
||||||
scriptPackage = pkgs.writeShellApplication {
|
scriptPackage = pkgs.writeShellApplication {
|
||||||
name = scriptName;
|
name = scriptName;
|
||||||
runtimeInputs = [ cfg.package pkgs.dbus ];
|
runtimeInputs = [ cfg.package pkgs.dbus ];
|
||||||
@ -526,7 +529,6 @@ rec {
|
|||||||
|
|
||||||
* The display session (`<name>.desktop`) files.
|
* The display session (`<name>.desktop`) files.
|
||||||
* gnome-session `.session` file.
|
* gnome-session `.session` file.
|
||||||
* The gnome-session systemd target drop-in file.
|
|
||||||
* The components `.desktop` file.
|
* The components `.desktop` file.
|
||||||
'';
|
'';
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
@ -546,14 +548,6 @@ rec {
|
|||||||
# Append the session argument.
|
# Append the session argument.
|
||||||
extraArgs = [ "--session=${name}" ];
|
extraArgs = [ "--session=${name}" ];
|
||||||
|
|
||||||
# While it is tempting to have this delegated to `systemd.user.services`
|
|
||||||
# and the like, it does have a future problem regarding how the generated
|
|
||||||
# units will handle reload on change since NixOS systemd units lets you
|
|
||||||
# have that option. Restricting it ourselves prevent it from doing so.
|
|
||||||
#
|
|
||||||
# As a (HUGE) bonus, it also leads to a more elegant solution of making
|
|
||||||
# an entire package of the desktop environment and simply linking them
|
|
||||||
# with various NixOS options like `systemd.packages` and the like.
|
|
||||||
systemdUserUnits =
|
systemdUserUnits =
|
||||||
let
|
let
|
||||||
inherit (utils.systemdUtils.lib)
|
inherit (utils.systemdUtils.lib)
|
||||||
|
Loading…
Reference in New Issue
Block a user