Browse Source

Use Gitea from unstable and switch NixOS state to 19.03

master
dump_stack() 10 months ago
parent
commit
826e19652e
Signed by: Mikhail Klementev <blame@dumpstack.io> GPG Key ID: BE44DA8C062D87DC
2 changed files with 23 additions and 3 deletions
  1. 11
    1
      README.md
  2. 12
    2
      configuration.nix

+ 11
- 1
README.md View File

@@ -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

+ 12
- 2
configuration.nix View File

@@ -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 = {

Loading…
Cancel
Save