Use Gitea from unstable and switch NixOS state to 19.03
This commit is contained in:
parent
4e87fba917
commit
826e19652e
10
README.md
10
README.md
@ -1,5 +1,11 @@
|
|||||||
# code.dumpstack.io
|
# code.dumpstack.io
|
||||||
|
|
||||||
|
[Download NixOS installation ISO](https://nixos.org/nixos/download.html)
|
||||||
|
|
||||||
|
Notes:
|
||||||
|
1. I assume that latest **stable** (e.g. 19.03) ISO will be used for installation.
|
||||||
|
2. You need to change hostname in `configuration.nix:9`.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
parted /dev/vda mklabel msdos
|
parted /dev/vda mklabel msdos
|
||||||
@ -14,3 +20,7 @@
|
|||||||
|
|
||||||
nixos-install
|
nixos-install
|
||||||
reboot
|
reboot
|
||||||
|
|
||||||
|
## After install
|
||||||
|
|
||||||
|
nix-channel --add https://nixos.org/channels/nixos-unstable unstable
|
||||||
|
@ -1,9 +1,19 @@
|
|||||||
|
# nix-channel --add https://nixos.org/channels/nixos-19.03 nixos
|
||||||
|
# nix-channel --add https://nixos.org/channels/nixos-unstable unstable
|
||||||
|
# nix-channel --update
|
||||||
|
#
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
|
unstable = import <unstable> {};
|
||||||
secrets = import ./secrets.nix;
|
secrets = import ./secrets.nix;
|
||||||
hostname = "code.dumpstack.io";
|
hostname = "code.dumpstack.io";
|
||||||
in {
|
in {
|
||||||
imports = [ ./hardware-configuration.nix ];
|
disabledModules = [ "services/misc/gitea.nix" ];
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
./hardware-configuration.nix
|
||||||
|
<unstable/nixos/modules/services/misc/gitea.nix>
|
||||||
|
];
|
||||||
|
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
boot.loader.grub.version = 2;
|
boot.loader.grub.version = 2;
|
||||||
@ -62,7 +72,7 @@ in {
|
|||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
system.stateVersion = "18.09";
|
system.stateVersion = "19.03";
|
||||||
system.autoUpgrade.enable = true;
|
system.autoUpgrade.enable = true;
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
|
Loading…
Reference in New Issue
Block a user