move to directory based layout
This commit is contained in:
@@ -2,21 +2,28 @@
|
||||
# your system. Help is available in the configuration.nix(5) man page, on
|
||||
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./services.nix
|
||||
./packages.nix
|
||||
./security.nix
|
||||
../services.nix
|
||||
../packages.nix
|
||||
../security.nix
|
||||
];
|
||||
|
||||
# Enable flakes and nix-command
|
||||
nix = {
|
||||
settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
};
|
||||
};
|
||||
nixpkgs.config.permittedInsecurePackages = [
|
||||
@@ -64,7 +71,10 @@
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.stobbsm = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "seat" ]; # Enable ‘sudo’ for the user.
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"seat"
|
||||
]; # Enable ‘sudo’ for the user.
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
@@ -6,11 +6,12 @@
|
||||
# Use `nix flake update` to update the flake to the latest revision of the chosen release channel.
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
||||
};
|
||||
outputs = inputs@{ self, nixpkgs, ... }: {
|
||||
outputs =
|
||||
inputs@{ self, nixpkgs, ... }:
|
||||
{
|
||||
# NOTE: 'nixos' is the default hostname
|
||||
nixosConfigurations."demilich" = nixpkgs.lib.nixosSystem {
|
||||
modules = [ ./configuration.nix ];
|
||||
modules = [ ./demilich/configuration.nix ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user