Rearrange things
This commit is contained in:
parent
a1902d312d
commit
716a2ce109
6 changed files with 14 additions and 12 deletions
home-manager
lib
nixos
|
@ -1,4 +0,0 @@
|
||||||
{ lib, ... }: {
|
|
||||||
# Requires secrets not available in images
|
|
||||||
programs.atuin.enable = lib.mkDefault false;
|
|
||||||
}
|
|
|
@ -16,7 +16,6 @@
|
||||||
++ lib.optional (builtins.isString desktop) ./common/software/gui # GUI packages
|
++ lib.optional (builtins.isString desktop) ./common/software/gui # GUI packages
|
||||||
++ lib.optional (builtins.isString desktop) ./common/desktops/${desktop} # Machine-agnostic desktop configs
|
++ lib.optional (builtins.isString desktop) ./common/desktops/${desktop} # Machine-agnostic desktop configs
|
||||||
++ lib.optional (builtins.isString desktop) ./hosts/${hostname}/desktops/${desktop} # Machine-specific desktop configs
|
++ lib.optional (builtins.isString desktop) ./hosts/${hostname}/desktops/${desktop} # Machine-specific desktop configs
|
||||||
++ lib.optional (builtins.isString isImage) ./common/image-specific.nix # Image specific items
|
|
||||||
;
|
;
|
||||||
|
|
||||||
programs.atuin.enable = lib.mkDefault false;
|
programs.atuin.enable = lib.mkDefault false;
|
||||||
|
|
|
@ -168,9 +168,17 @@
|
||||||
system ? "x86_64-linux",
|
system ? "x86_64-linux",
|
||||||
gpu ? null,
|
gpu ? null,
|
||||||
theme ? "default",
|
theme ? "default",
|
||||||
|
repo ? "nixpkgs",
|
||||||
|
unfree ? false,
|
||||||
format
|
format
|
||||||
}: inputs.nixos-generators.nixosGenerate {
|
}: inputs.nixos-generators.nixosGenerate {
|
||||||
specialArgs = { inherit inputs outputs desktop hostname username stateVersion hmStateVersion gpu system theme format; };
|
specialArgs = {
|
||||||
|
inherit inputs outputs desktop hostname username stateVersion hmStateVersion gpu system theme format;
|
||||||
|
# Choose whether to pull from stable or unstable
|
||||||
|
pkgs = let packages = (import ./packages.nix { inherit inputs repo system unfree; }); in packages.pkgs;
|
||||||
|
pkgs-unstable = let packages = (import ./packages.nix { inherit inputs repo system unfree; }); in packages.pkgs-unstable;
|
||||||
|
};
|
||||||
|
|
||||||
system = system;
|
system = system;
|
||||||
format = format;
|
format = format;
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,5 @@
|
||||||
{ inputs, lib,hostname, username, desktop, ... }: {
|
{ inputs, lib,hostname, username, desktop, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
# Services
|
|
||||||
./common/services/tailscale.nix
|
|
||||||
./common/services/promtail.nix
|
|
||||||
./common/services/telegraf.nix
|
|
||||||
|
|
||||||
# NixOS Modules
|
# NixOS Modules
|
||||||
./common/modules/networking.nix # Initial Networking configs
|
./common/modules/networking.nix # Initial Networking configs
|
||||||
./common/modules/nixos.nix # Common NixOS Configurations
|
./common/modules/nixos.nix # Common NixOS Configurations
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, desktop, lib, pkgs, username, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
let
|
||||||
install-system = pkgs.writeScriptBin "install-system" "${builtins.readFile ../../../docs/install.sh}";
|
install-system = pkgs.writeScriptBin "install-system" "${builtins.readFile ../../../docs/install.sh}";
|
||||||
in
|
in
|
||||||
|
|
|
@ -7,6 +7,10 @@
|
||||||
# Services
|
# Services
|
||||||
./common/services/openssh.nix
|
./common/services/openssh.nix
|
||||||
./common/services/fail2ban.nix
|
./common/services/fail2ban.nix
|
||||||
|
./common/services/tailscale.nix
|
||||||
|
./common/services/promtail.nix
|
||||||
|
./common/services/telegraf.nix
|
||||||
|
|
||||||
|
|
||||||
# Software
|
# Software
|
||||||
./common/software/cli/scripts.nix
|
./common/software/cli/scripts.nix
|
||||||
|
|
Loading…
Add table
Reference in a new issue