feat!: per-user home-manager configuration
This commit is contained in:
parent
53a2609204
commit
5b0e693498
27
flake.nix
27
flake.nix
|
@ -29,8 +29,14 @@
|
||||||
let
|
let
|
||||||
specialArgs = inputs;
|
specialArgs = inputs;
|
||||||
modules = [
|
modules = [
|
||||||
./modules/nixos
|
./specific/desktop/nixos.nix
|
||||||
./specific/wizdesk/nixos.nix
|
home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.extraSpecialArgs = inputs;
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.users.wizardlink = import ./specific/desktop/home-manager.nix;
|
||||||
|
}
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
nixpkgs.lib.nixosSystem { inherit system specialArgs modules; };
|
nixpkgs.lib.nixosSystem { inherit system specialArgs modules; };
|
||||||
|
@ -39,20 +45,19 @@
|
||||||
let
|
let
|
||||||
specialArgs = inputs;
|
specialArgs = inputs;
|
||||||
modules = [
|
modules = [
|
||||||
./modules/nixos
|
./specific/laptop/nixos.nix
|
||||||
./specific/wizlap/nixos.nix
|
home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.extraSpecialArgs = inputs;
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.users.wizardlink = import ./specific/laptop/home-manager.nix;
|
||||||
|
}
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
nixpkgs.lib.nixosSystem { inherit system specialArgs modules; };
|
nixpkgs.lib.nixosSystem { inherit system specialArgs modules; };
|
||||||
};
|
};
|
||||||
|
|
||||||
homeConfigurations.wizardlink = home-manager.lib.homeManagerConfiguration {
|
|
||||||
inherit pkgs;
|
|
||||||
|
|
||||||
extraSpecialArgs = inputs;
|
|
||||||
modules = [ ./specific/home-manager.nix ];
|
|
||||||
};
|
|
||||||
|
|
||||||
formatter."${system}" = pkgs.nixfmt-rfc-style;
|
formatter."${system}" = pkgs.nixfmt-rfc-style;
|
||||||
|
|
||||||
homeManagerModules = {
|
homeManagerModules = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
#
|
#
|
||||||
|
@ -28,4 +28,12 @@
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Add monitor configuration to hyprland
|
||||||
|
modules.hyprland.extraConfig = # hyprlang
|
||||||
|
''
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
|
monitor = DP-3, 1920x1080@74.973, 2560x0, 1
|
||||||
|
monitor = DP-2, 2560x1440@165.00301, 0x0, 1
|
||||||
|
'';
|
||||||
}
|
}
|
38
specific/laptop/home-manager.nix
Normal file
38
specific/laptop/home-manager.nix
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
#
|
||||||
|
## HOME CONFIGURATION #
|
||||||
|
#
|
||||||
|
|
||||||
|
# Import configurations for better modularity.
|
||||||
|
imports = [
|
||||||
|
../../modules/home-manager
|
||||||
|
];
|
||||||
|
|
||||||
|
# Home Manager needs a bit of information about you and the paths it should
|
||||||
|
# manage.
|
||||||
|
home.username = "wizardlink";
|
||||||
|
home.homeDirectory = "/home/wizardlink";
|
||||||
|
|
||||||
|
# This value determines the Home Manager release that your configuration is
|
||||||
|
# compatible with. This helps avoid breakage when a new Home Manager release
|
||||||
|
# introduces backwards incompatible changes.
|
||||||
|
#
|
||||||
|
# You should not change this value, even if you update Home Manager. If you do
|
||||||
|
# want to update the value, then make sure to first check the Home Manager
|
||||||
|
# release notes.
|
||||||
|
home.stateVersion = "23.05"; # Please read the comment before changing.
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
EDITOR = "nvim";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Add monitor configuration to hyprland
|
||||||
|
modules.hyprland.extraConfig = # hyprlang
|
||||||
|
''
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
|
monitor = DP-3, 1920x1080@74.973, 2561x0, 1
|
||||||
|
monitor = DP-2, 2560x1440@165.00301, 0x0, 1
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue