Formatting changes and added dynamic home-manager username
This commit is contained in:
parent
c152d4ac7d
commit
24aeab7505
@ -1,6 +1,5 @@
|
||||
{ config, pkgs, inputs, ... }:
|
||||
{ config, pkgs, inputs, ... }: {
|
||||
|
||||
{
|
||||
# Enable experimental nix features.
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
|
@ -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
|
||||
];
|
||||
|
@ -1,8 +1,8 @@
|
||||
{ inputs, config, pkgs, ... }: {
|
||||
{ inputs, config, pkgs, user, ... }: {
|
||||
|
||||
home = {
|
||||
username = "random";
|
||||
homeDirectory = "/home/random";
|
||||
username = "${user}";
|
||||
homeDirectory = "/home/${user}";
|
||||
};
|
||||
|
||||
imports = [
|
||||
|
@ -1,8 +1,8 @@
|
||||
{ inputs, config, pkgs, ... }: {
|
||||
{ inputs, config, pkgs, user, ... }: {
|
||||
|
||||
home = {
|
||||
username = "random";
|
||||
homeDirectory = "/home/random";
|
||||
username = "${user}";
|
||||
homeDirectory = "/home/${user}";
|
||||
};
|
||||
|
||||
imports = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user