nixos-config/default.nix

25 lines
701 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:
2020-04-21 02:30:04 +04:00
# 1. Add your own secret.nix and hardware-configuration/`hostname`.nix to this folder
# 2. Set the hostname to the desired one
# 3. ./install or ./bootstrap
# 4. Log in to application and services where neccesary
2020-02-17 17:00:59 +04:00
{ config, pkgs, lib, ... }:
let sources = import ./nix/sources.nix;
2020-04-21 02:29:16 +04:00
in rec {
2020-02-17 17:00:59 +04:00
imports = [
"${./hardware-configuration}/${device}.nix"
"${sources.home-manager}/nixos"
(import ./modules device)
];
2020-04-21 02:29:16 +04:00
device = builtins.replaceStrings ["\n"] [""] (builtins.readFile /etc/hostname);
2020-02-17 17:00:59 +04:00
system.stateVersion = "18.03";
}