ZDTZOENLFUOCZZDR7UYBPVPTOI6OXPG7RVX2LG7WQEUIY72MGMMQC
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable sound.
# sound.enable = true;
# hardware.pulseaudio.enable = true;
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with āpasswdā.
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = let
scaffold_pages = pkgs.writeScriptBin "scaffold_pages" ''
#!${pkgs.stdenv.shell}
echo Cloning the repositoryā¦
git clone https://codeberg.org/rocky_fuchsian_frog/pages
echo Changing directoriesā¦
cd pages
echo Initializing flakeā¦
nix flake init -t github:nmattia/naersk
echo Initializing flake lockā¦
nix flake lock
echo Staging changesā¦
git add .
echo Initializing cargoā¦
nix develop -c cargo init
echo Staging changesā¦
git add .
echo Initializing cargo lockā¦
nix-develop -c cargo generate-lockfile
echo Staging changesā¦
git add .
echo Correct package nameā¦
sed 's/hello-world/pages/w flake.nix' flake.nix
echo Staging changesā¦
git add .
echo Buildingā¦
nix build
echo Runningā¦
nix run
echo Your turn! If allās well, you should have seen āHello Worldā written to stdout.
'';
in
[ scaffold_pages ];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Itās perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).