Skip to content

Instantly share code, notes, and snippets.

@disassembler
Created September 23, 2017 13:14
Show Gist options
  • Save disassembler/94a957dc75be7c22b2ad6f87e65bd17e to your computer and use it in GitHub Desktop.
Save disassembler/94a957dc75be7c22b2ad6f87e65bd17e to your computer and use it in GitHub Desktop.
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ lib, config, pkgs, fetchgit, ... }:
let
parameters = import ./parameters.nix;
profiles = (import ./modules);
in {
imports =
[ # Include the results of the hardware scan.
(./hardware-configurations + "/${parameters.machine}.nix")
# Machine specific config
(
import (./machines + "/${parameters.machine}.nix") {
inherit lib;
inherit config;
inherit pkgs;
inherit parameters;
}
)
] ++ profiles.profiles;
profiles.zsh.enable = true;
#profiles.passopolis.enable = true;
#profiles.etcd.enable = true;
attributes.private = parameters;
users.extraUsers.sam = {
openssh.authorizedKeys.keys = parameters.sam_ssh_keys;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment