Use Gitea from unstable and switch NixOS state to 19.03
This commit is contained in:
		
							
								
								
									
										12
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								README.md
									
									
									
									
									
								
							@@ -1,5 +1,11 @@
 | 
			
		||||
# 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
 | 
			
		||||
 | 
			
		||||
    parted /dev/vda mklabel msdos
 | 
			
		||||
@@ -8,9 +14,13 @@
 | 
			
		||||
    mount /dev/vda1 /mnt/
 | 
			
		||||
 | 
			
		||||
    nix-env -iA nixos.gitMinimal
 | 
			
		||||
	git clone https://code.dumpstack.io/infra/code.dumpstack.io.git /mnt/etc/nixos/
 | 
			
		||||
    git clone https://code.dumpstack.io/infra/code.dumpstack.io.git /mnt/etc/nixos/
 | 
			
		||||
 | 
			
		||||
    nixos-generate-config --root /mnt
 | 
			
		||||
 | 
			
		||||
    nixos-install
 | 
			
		||||
    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, ... }:
 | 
			
		||||
let
 | 
			
		||||
  unstable = import <unstable> {};
 | 
			
		||||
  secrets = import ./secrets.nix;
 | 
			
		||||
  hostname = "code.dumpstack.io";
 | 
			
		||||
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.version = 2;
 | 
			
		||||
@@ -62,7 +72,7 @@ in {
 | 
			
		||||
    fi
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
  system.stateVersion = "18.09";
 | 
			
		||||
  system.stateVersion = "19.03";
 | 
			
		||||
  system.autoUpgrade.enable = true;
 | 
			
		||||
 | 
			
		||||
  nix = {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user