mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Improve: Don't hardcode username for HM
This commit is contained in:
parent
812b7b53a1
commit
11c6bc5bb1
6 changed files with 5 additions and 7 deletions
|
@ -32,7 +32,6 @@
|
|||
with {
|
||||
hostName = builtins.baseNameOf configDirectory;
|
||||
hostPlatform = import (configDirectory + "/platform.nix");
|
||||
userName = import (configDirectory + "/username.nix");
|
||||
};
|
||||
|
||||
{
|
||||
|
@ -46,7 +45,7 @@
|
|||
};
|
||||
|
||||
# Helper function for DRY.
|
||||
homeManagerConfiguration = attrs: {
|
||||
homeManagerConfiguration = userName: attrs: {
|
||||
home-manager.users.${userName} = attrs;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -19,6 +19,6 @@
|
|||
|
||||
//
|
||||
|
||||
(homeManagerConfiguration {
|
||||
(homeManagerConfiguration "nixos" {
|
||||
home.stateVersion = "22.11";
|
||||
})
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ homeManagerConfiguration, ... }:
|
||||
|
||||
homeManagerConfiguration {
|
||||
homeManagerConfiguration "nixos" {
|
||||
programs.git.enable = true;
|
||||
programs.git = {
|
||||
userName = "RGBCube";
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
//
|
||||
|
||||
(homeManagerConfiguration {
|
||||
(homeManagerConfiguration "nixos" {
|
||||
programs.neovim.enable = true;
|
||||
programs.neovim = {
|
||||
defaultEditor = true;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ homeManagerConfiguration, ... }:
|
||||
|
||||
homeManagerConfiguration {
|
||||
homeManagerConfiguration "nixos" {
|
||||
programs.nushell.enable = true;
|
||||
programs.nushell = {
|
||||
configFile.source = ./config.nu;
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
"nixos"
|
Loading…
Add table
Add a link
Reference in a new issue