make custom iso have its own home configurations
This commit is contained in:
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
@ -3,7 +3,6 @@
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
home-manager
|
||||
killall
|
||||
vim
|
||||
pciutils
|
||||
pigz
|
||||
@ -25,5 +24,6 @@
|
||||
ffmpeg
|
||||
cryptsetup
|
||||
acpi
|
||||
dconf
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user