dotfiles/profiles/user0/files/modnix.sh

9 lines
424 B
Bash
Raw Normal View History

2024-10-12 02:01:18 -05:00
#!/usr/bin/env bash
2024-10-12 03:30:15 -05:00
cp /etc/nixos/configuration.nix /etc/nixos/configuration.nix.backup
2024-10-12 02:01:18 -05:00
2024-10-12 03:30:15 -05:00
sed -i '/services\.printing\.enable = true;/a\ nix.settings.experimental-features = ["nix-command" "flakes"];\n services.openssh.enable = true;' /etc/nixos/configuration.nix
sed -i '/thunderbird/a\ git\n vscode\n tomb' /etc/nixos/configuration.nix
swapoff -a
2024-10-12 02:01:18 -05:00
2024-10-12 03:30:15 -05:00
echo "/etc/nixos/configuration.nix updated successfully."