https://github.com/jluttine/deployments
https://github.com/jluttine/deployments
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jluttine/deployments
- Owner: jluttine
- Created: 2017-03-26T07:46:55.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-19T10:17:48.000Z (about 8 years ago)
- Last Synced: 2025-01-11T12:34:35.849Z (5 months ago)
- Language: Nix
- Size: 55.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
* Using the ~none~ backend
When using ~deployment.targetEnv="none"~, you can overwrite
~/etc/nixos/configuration.nix~ and ~/etc/nixos/hardware-configuration.nix~
since they no longer represent the state of the system, and you shouldn't be
running ~nixos-rebuild~ anyway.#+begin_example
[root@kasumi:/etc/nixos]# rm ./configuration.nix ./hardware-configuration.nix[root@kasumi:/etc/nixos]# nixos-generate-config --root /
writing /etc/nixos/hardware-configuration.nix...
writing /etc/nixos/configuration.nix...
#+end_example* ~matrix-synapse~
Create a database:
#+begin_example
[root@kasumi:~]# psql postgres
psql (9.4.9)
Type "help" for help.postgres=#
root=# create user synapse with password 'hunter2';
CREATE ROLEroot=# CREATE DATABASE "matrix-synapse"
root-# ENCODING 'UTF8'
root-# LC_COLLATE='C'
root-# LC_CTYPE='C'
root-# template=template0
root-# OWNER synapse;
CREATE DATABASE
#+end_example