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
|
2020-04-21 02:29:16 +04:00
|
|
|
# 2. ./install or ./bootstrap
|
2020-02-17 17:00:59 +04:00
|
|
|
# 3. Log in to application and services where neccesary
|
|
|
|
|
|
|
|
{ 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";
|
|
|
|
}
|