mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
config: update default home-manager config
This commit is contained in:
parent
198ded079b
commit
53d2e10607
16
flake.nix
16
flake.nix
@ -384,31 +384,31 @@
|
|||||||
pkgs = import nixpkgs { inherit overlays; };
|
pkgs = import nixpkgs { inherit overlays; };
|
||||||
path = ./users/home-manager/${name};
|
path = ./users/home-manager/${name};
|
||||||
extraModules = [
|
extraModules = [
|
||||||
({ pkgs, config, ... }: {
|
({ lib, pkgs, config, ... }: {
|
||||||
# Don't create the user directories since they are assumed to
|
# Don't create the user directories since they are assumed to
|
||||||
# be already created by a pre-installed system (which should
|
# be already created by a pre-installed system (which should
|
||||||
# already handle them).
|
# already handle them).
|
||||||
xdg.userDirs.createDirectories = false;
|
xdg.userDirs.createDirectories = lib.mkDefault false;
|
||||||
|
|
||||||
# To be able to use the most of our config as possible, we want
|
# To be able to use the most of our config as possible, we want
|
||||||
# both to use the same overlays.
|
# both to use the same overlays.
|
||||||
nixpkgs.overlays = overlays;
|
nixpkgs.overlays = overlays;
|
||||||
|
|
||||||
# Stallman-senpai will be disappointed. :/
|
# Stallman-senpai will be disappointed. :/
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = lib.mkDefault true;
|
||||||
|
|
||||||
# Find Nix files with these! Even if nix-index is already enabled, it
|
# Find Nix files with these! Even if nix-index is already enabled, it
|
||||||
# is better to make it explicit.
|
# is better to make it explicit.
|
||||||
programs.nix-index.enable = true;
|
programs.nix-index.enable = lib.mkDefault true;
|
||||||
|
|
||||||
# Setting the homely options.
|
# Setting the homely options.
|
||||||
home.username = name;
|
home.username = lib.mkForce name;
|
||||||
home.homeDirectory = metadata.home-directory or "/home/${config.home.username}";
|
home.homeDirectory = lib.mkForce metadata.home-directory or "/home/${config.home.username}";
|
||||||
|
|
||||||
# home-manager configurations are expected to be deployed on
|
# home-manager configurations are expected to be deployed on
|
||||||
# non-NixOS systems so it is safe to set this.
|
# non-NixOS systems so it is safe to set this.
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = lib.mkDefault true;
|
||||||
targets.genericLinux.enable = true;
|
targets.genericLinux.enable = lib.mkDefault true;
|
||||||
})
|
})
|
||||||
userSharedConfig
|
userSharedConfig
|
||||||
nixSettingsSharedConfig
|
nixSettingsSharedConfig
|
||||||
|
Loading…
Reference in New Issue
Block a user