make custom iso have its own home configurations

This commit is contained in:
2025-03-21 19:00:57 +01:00
parent 1fd70894ae
commit 0e2523c2eb
7 changed files with 55 additions and 55 deletions

View File

@ -1,17 +1,21 @@
{ ... }:
{lib, inputs, pkgs, ... }:
{
imports = [ ../packages.nix ];
imports = [
../packages.nix
];
users.users.tom = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "video" ];
initialHashedPassword = "";
};
environment.etc."skel/nix-config".source = "${builtins.fetchGit {
url = "https://github.com/ARandomPig/nix-config";
rev = "6982747ec65962a13dd07948b2317d8d571f39b8";
ref = "master";
}}";
system.activationScripts.populateUser.text = ''
mkdir -p /home/nixos
cp -r /etc/skel/nix-config
chown -R nixos:nixos /home/nixos/nix-config
'';
services.getty.autologinUser = lib.mkForce "tom";
services.getty.helpLine = lib.mkForce "";
home-manager.extraSpecialArgs = { inherit inputs; inherit pkgs; isOs = true;};
home-manager.users.tom = {
imports = [ ../../homeConfigs/home.nix ];
};
}

View File

@ -3,7 +3,6 @@
{
environment.systemPackages = with pkgs; [
home-manager
killall
vim
pciutils
pigz
@ -25,5 +24,6 @@
ffmpeg
cryptsetup
acpi
dconf
];
}