Testing Variables

This commit is contained in:
Tyler Kelley 2024-01-12 02:00:46 -06:00
parent f2d92f0b37
commit 980f2facae
3 changed files with 6 additions and 6 deletions

View File

@ -27,12 +27,12 @@
home-manager.nixosModules.home-manager { home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.users.zaney = import ./home.nix; home-manager.users.${username} = import ./home.nix;
} }
]; ];
}; };
workstation = nixpkgs.lib.nixosSystem { workstation = nixpkgs.lib.nixosSystem {
specialArgs = { inherit system; inherit inputs; }; specialArgs = { inherit system; inherit inputs; inherit username; inherit hostname; };
modules = [ ./workstation/configuration.nix modules = [ ./workstation/configuration.nix
home-manager.nixosModules.home-manager { home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;

View File

@ -1,8 +1,8 @@
{ config, pkgs, username, ... }: { config, pkgs, username, ... }:
{ {
home.username = ${username}; home.username = "${username}";
home.homeDirectory = "/home/${username}"; home.homeDirectory = "/home/zaney";
home.stateVersion = "23.11"; home.stateVersion = "23.11";
home.file.".config/zaney-stinger.mov".source = ./media/zaney-stinger.mov; home.file.".config/zaney-stinger.mov".source = ./media/zaney-stinger.mov;

View File

@ -16,7 +16,7 @@
boot.kernelModules = [ "v4l2loopback" ]; boot.kernelModules = [ "v4l2loopback" ];
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ]; boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
networking.hostName = ${hostname}; # Define your hostname. networking.hostName = "${hostname}"; # Define your hostname.
# Enable networking # Enable networking
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
@ -40,7 +40,7 @@
}; };
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
users.users.${username} = { users.users."${username}" = {
homeMode = "755"; homeMode = "755";
isNormalUser = true; isNormalUser = true;
description = "Tyler Kelley"; description = "Tyler Kelley";