fix multi user
This commit is contained in:
gabrielkheisa 2024-11-13 21:56:36 +07:00
parent cb85be417c
commit 30e90c0301
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# flake.nix
{
description = "Portable Ubuntu setup with XFCE, XRDP, and swap";
description = "Portable Ubuntu setup with XFCE, XRDP, Chromium, and swap";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
@ -13,12 +13,13 @@
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in {
# Define the dev shell environment with XFCE, XRDP, and utilities
# Define the dev shell environment with XFCE, XRDP, Chromium, and utilities
devShell.${system} = pkgs.mkShell {
buildInputs = [
pkgs.xfce
pkgs.xfce.xfce4-terminal
pkgs.xrdp
pkgs.chromium # Added Chromium here
];
};
@ -31,6 +32,7 @@
programs.bash.enable = true;
programs.xfce.enable = true;
services.xrdp.enable = true;
programs.chromium.enable = true; # Ensure Chromium is enabled for the user
};
# System-level configuration for creating swap, user, etc.

View File

@ -12,7 +12,7 @@ echo "The generated password is: $PASSWORD"
# Step 4: Install Nix
echo "Installing Nix package manager..."
curl -L https://nixos.org/nix/install | sh
curl -L https://nixos.org/nix/install | sh -s -- --daemon
. ~/.nix-profile/etc/profile.d/nix.sh
# Step 5: Enable Flakes