update
fix multi user
This commit is contained in:
parent
cb85be417c
commit
30e90c0301
@ -1,7 +1,7 @@
|
|||||||
# flake.nix
|
# flake.nix
|
||||||
|
|
||||||
{
|
{
|
||||||
description = "Portable Ubuntu setup with XFCE, XRDP, and swap";
|
description = "Portable Ubuntu setup with XFCE, XRDP, Chromium, and swap";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs";
|
nixpkgs.url = "github:NixOS/nixpkgs";
|
||||||
@ -13,12 +13,13 @@
|
|||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
in {
|
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 {
|
devShell.${system} = pkgs.mkShell {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pkgs.xfce
|
pkgs.xfce
|
||||||
pkgs.xfce.xfce4-terminal
|
pkgs.xfce.xfce4-terminal
|
||||||
pkgs.xrdp
|
pkgs.xrdp
|
||||||
|
pkgs.chromium # Added Chromium here
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -31,6 +32,7 @@
|
|||||||
programs.bash.enable = true;
|
programs.bash.enable = true;
|
||||||
programs.xfce.enable = true;
|
programs.xfce.enable = true;
|
||||||
services.xrdp.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.
|
# System-level configuration for creating swap, user, etc.
|
||||||
|
2
setup.sh
2
setup.sh
@ -12,7 +12,7 @@ echo "The generated password is: $PASSWORD"
|
|||||||
|
|
||||||
# Step 4: Install Nix
|
# Step 4: Install Nix
|
||||||
echo "Installing Nix package manager..."
|
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
|
. ~/.nix-profile/etc/profile.d/nix.sh
|
||||||
|
|
||||||
# Step 5: Enable Flakes
|
# Step 5: Enable Flakes
|
||||||
|
Loading…
Reference in New Issue
Block a user