rename
This commit is contained in:
48
iso/common.nix
Normal file
48
iso/common.nix
Normal file
@@ -0,0 +1,48 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
sovranSource = builtins.path { path = ../.; name = "sovran-systemsos"; };
|
||||
installer = pkgs.writeShellScriptBin "sovran-install" (builtins.readFile ./installer.sh);
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
"${pkgs.path}/nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix"
|
||||
./branding.nix
|
||||
];
|
||||
|
||||
isoImage.isoName = "Sovran_SystemsOS.iso";
|
||||
|
||||
users.users.free = {
|
||||
isNormalUser = true;
|
||||
description = "free";
|
||||
extraGroups = [ "wheel" "networkmanager" ];
|
||||
initialPassword = "free";
|
||||
};
|
||||
|
||||
services.displayManager.autoLogin.enable = true;
|
||||
services.displayManager.autoLogin.user = "free";
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
installer
|
||||
zenity
|
||||
util-linux
|
||||
parted
|
||||
dosfstools
|
||||
e2fsprogs
|
||||
gptfdisk
|
||||
nixos-install-tools
|
||||
git
|
||||
curl
|
||||
];
|
||||
|
||||
environment.etc."sovran/flake".source = sovranSource;
|
||||
|
||||
environment.etc."xdg/autostart/sovran-installer.desktop".text = ''
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Sovran Guided Installer
|
||||
Exec=${installer}/bin/sovran-install
|
||||
Terminal=false
|
||||
X-GNOME-Autostart-enabled=true
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user