move to directory based layout

This commit is contained in:
2026-08-14 08:45:50 -05:00
parent 77c6f4fa83
commit efad2c82e8
4 changed files with 30 additions and 19 deletions

0
demilich. Normal file
View File

View File

@@ -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;
};

View File

@@ -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 ];
};
};
}