Formatting changes and added dynamic home-manager username

This commit is contained in:
Random936 2024-07-04 18:42:22 -07:00
parent c152d4ac7d
commit 24aeab7505
4 changed files with 11 additions and 11 deletions

View File

@ -1,6 +1,5 @@
{ config, pkgs, inputs, ... }: { config, pkgs, inputs, ... }: {
{
# Enable experimental nix features. # Enable experimental nix features.
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];

View File

@ -23,6 +23,7 @@
./config/omen.nix ./config/omen.nix
home-manager.lib.homeManagerConfiguration { home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux"; pkgs = nixpkgs.legacyPackages."x86_64-linux";
extraSpecialArgs.user = "random";
modules = [ modules = [
./home/headful-nixos.nix ./home/headful-nixos.nix
]; ];
@ -30,14 +31,14 @@
]; ];
}; };
nixosConfigurations.default = nixpkgs.lib.nixosSystem { nixosConfigurations.media = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
./config/shared.nix ./config/media.nix
./config/headless.nix
home-manager.lib.homeManagerConfiguration { home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux"; pkgs = nixpkgs.legacyPackages."x86_64-linux";
extraSpecialArgs.user = "media";
modules = [ modules = [
./home/headless-nixos.nix ./home/headless-nixos.nix
]; ];

View File

@ -1,8 +1,8 @@
{ inputs, config, pkgs, ... }: { { inputs, config, pkgs, user, ... }: {
home = { home = {
username = "random"; username = "${user}";
homeDirectory = "/home/random"; homeDirectory = "/home/${user}";
}; };
imports = [ imports = [

View File

@ -1,8 +1,8 @@
{ inputs, config, pkgs, ... }: { { inputs, config, pkgs, user, ... }: {
home = { home = {
username = "random"; username = "${user}";
homeDirectory = "/home/random"; homeDirectory = "/home/${user}";
}; };
imports = [ imports = [