{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixops/issues/990","repository_url":"https://api.github.com/repos/NixOS/nixops","labels_url":"https://api.github.com/repos/NixOS/nixops/issues/990/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixops/issues/990/comments","events_url":"https://api.github.com/repos/NixOS/nixops/issues/990/events","html_url":"https://github.com/NixOS/nixops/issues/990","id":351627345,"node_id":"MDU6SXNzdWUzNTE2MjczNDU=","number":990,"title":"system.autoUpgrade undoes nixops deployments","user":{"login":"costrouc","id":1740337,"node_id":"MDQ6VXNlcjE3NDAzMzc=","avatar_url":"https://avatars1.githubusercontent.com/u/1740337?v=4","gravatar_id":"","url":"https://api.github.com/users/costrouc","html_url":"https://github.com/costrouc","followers_url":"https://api.github.com/users/costrouc/followers","following_url":"https://api.github.com/users/costrouc/following{/other_user}","gists_url":"https://api.github.com/users/costrouc/gists{/gist_id}","starred_url":"https://api.github.com/users/costrouc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/costrouc/subscriptions","organizations_url":"https://api.github.com/users/costrouc/orgs","repos_url":"https://api.github.com/users/costrouc/repos","events_url":"https://api.github.com/users/costrouc/events{/privacy}","received_events_url":"https://api.github.com/users/costrouc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-17T14:56:40Z","updated_at":"2018-10-08T14:45:43Z","closed_at":null,"author_association":"NONE","body":"Nixops does not actually seem to update the /etc/nixos/configuration.nix file. I had a weird issue where overnight all of my nixos deployments would suddenly revert to a really old configuration (the existing one in `/etc/nixos/configuration.nix` ). This caused me quite the headache since I am quite new to nixos. Looking at my journalctl logs I saw\r\n\r\n```\r\nAug 17 04:41:10 nixos systemd[1]: Started NixOS Upgrade.\r\n```\r\n\r\nSo it looks like `system.autoUpgrade.enable = true` causes the `/etc/nixos/configuration.nix` file to be used for an update. Thus `system.autoUpgrade` should not be used with nixops deployments. Anyways I found this counter intuitive and I figure someone else may run into this same issue.\r\n  "},"comment":{"url":"https://api.github.com/repos/NixOS/nixops/issues/comments/427863268","html_url":"https://github.com/NixOS/nixops/issues/990#issuecomment-427863268","issue_url":"https://api.github.com/repos/NixOS/nixops/issues/990","id":427863268,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzg2MzI2OA==","user":{"login":"costrouc","id":1740337,"node_id":"MDQ6VXNlcjE3NDAzMzc=","avatar_url":"https://avatars1.githubusercontent.com/u/1740337?v=4","gravatar_id":"","url":"https://api.github.com/users/costrouc","html_url":"https://github.com/costrouc","followers_url":"https://api.github.com/users/costrouc/followers","following_url":"https://api.github.com/users/costrouc/following{/other_user}","gists_url":"https://api.github.com/users/costrouc/gists{/gist_id}","starred_url":"https://api.github.com/users/costrouc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/costrouc/subscriptions","organizations_url":"https://api.github.com/users/costrouc/orgs","repos_url":"https://api.github.com/users/costrouc/repos","events_url":"https://api.github.com/users/costrouc/events{/privacy}","received_events_url":"https://api.github.com/users/costrouc/received_events","type":"User","site_admin":false},"created_at":"2018-10-08T14:45:43Z","updated_at":"2018-10-08T14:45:43Z","author_association":"NONE","body":"I think that this problem would be solved if nixops optionally wrote the system configuration to `/etc/nixos/configuration.nix`. I will post an issue on `nixops` since it seems that it is a more appropriate there."}}
{"actor":{"display_login":"costrouc"}}