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.
nix.settings.experimental-features = [ "nix-command" "flakes" ];

View File

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

View File

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

View File

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