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.
|
# Enable experimental nix features.
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
|
@ -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
|
||||||
];
|
];
|
||||||
|
@ -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 = [
|
||||||
|
@ -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 = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user