add a custom iso config

This commit is contained in:
2025-03-10 03:12:58 +01:00
parent 82d1569c8e
commit c4a899eaad
5 changed files with 34 additions and 2 deletions

17
osConfigs/hosts/iso.nix Normal file
View File

@ -0,0 +1,17 @@
{ ... }:
{
imports = [ ../packages.nix ];
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
'';
}