nixos-config/default.nix

26 lines
677 B
Nix
Raw Normal View History

2020-02-17 17:00:59 +04:00
# This is balsoft's configuration file.
#
# https://github.com/balsoft/nixos-config
#
# This is main nixos configuration
# To use this configuration:
# 1. Add your own secret.nix to this folder
# 2. Replace /etc/nixos/configuration.nix with the following:
# import /path/to/this/nixos-config "Vendor-Type"
# 3. Log in to application and services where neccesary
device: # This is the device we're on now
{ config, pkgs, lib, ... }:
let sources = import ./nix/sources.nix;
in {
imports = [
"${./hardware-configuration}/${device}.nix"
"${sources.home-manager}/nixos"
(import ./modules device)
];
inherit device;
system.stateVersion = "18.03";
}