nixos-config/default.nix

24 lines
634 B
Nix
Raw Normal View History

2020-02-17 16:00:59 +03: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 01:30:04 +03:00
# 1. Add your own secret.nix and hardware-configuration/`hostname`.nix to this folder
# 2. Set the hostname to the desired one
2020-04-29 00:05:59 +03:00
# 3. `sudo nixos-rebuild switch --flake .`
2020-04-21 01:30:04 +03:00
# 4. Log in to application and services where neccesary
2020-02-17 16:00:59 +03:00
2020-04-27 04:39:00 +03:00
{ config, pkgs, lib, inputs, name, ... }:
rec {
2020-02-17 16:00:59 +03:00
imports = [
2020-04-27 04:39:00 +03:00
(./hardware-configuration + "/${name}.nix")
inputs.home-manager.nixosModules.home-manager
2020-02-17 16:00:59 +03:00
(import ./modules device)
];
2020-04-27 04:39:00 +03:00
device = name;
2020-02-17 16:00:59 +03:00
system.stateVersion = "18.03";
}