This commit is contained in:
RingOfStorms (Joshua Bell) 2025-03-07 18:16:49 -06:00
parent 88f2d95e6a
commit 7bcaca441a
5 changed files with 1920 additions and 68 deletions

View file

@ -1,15 +1,15 @@
{ {
custom_config_key,
config, config,
lib, lib,
... ...
}: }:
let let
cfg = config."${custom_config_key}".boot.grub; ccfg = import ../config.nix;
cfg = config.${ccfg.custom_config_key}.boot.grub;
in in
with lib; with lib;
{ {
options."${custom_config_key}".boot.grub = { options.${ccfg.custom_config_key}.boot.grub = {
enable = mkEnableOption "Grub bootloader"; enable = mkEnableOption "Grub bootloader";
device = mkOption { device = mkOption {
type = types.str; type = types.str;

View file

@ -1,16 +1,16 @@
{ {
custom_config_key,
config, config,
lib, lib,
... ...
}: }:
let let
cfg_path = "${custom_config_key}".boot.systemd; # ccfg = import ../config.nix;
cfg = config.${cfg_path}; # cfg_path = "${custom_config_key}".boot.systemd;
cfg = config.ringofstorms_common.boot.systemd;
in in
with lib; with lib;
{ {
options.${cfg_path} = { options.ringofstorms_common.boot.systemd = {
enable = mkEnableOption "Systemd bootloader"; enable = mkEnableOption "Systemd bootloader";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -13,35 +13,20 @@
outputs = outputs =
{ {
ros-neovim, ros_neovim,
... ...
}: }:
{ {
nixosModules = { nixosModules = {
default = default =
{ {
config,
lib,
pkgs,
... ...
}: }:
let
custom_config_key = "ringofstorms_common";
in
{ {
options = {
};
imports = [ imports = [
./boot/grub.nix # ./boot/grub.nix
./boot/systemd.nix ./boot/systemd.nix
]; ];
config = {
specialArgs = {
inherit custom_config_key;
};
};
}; };
}; };
}; };

1945
hosts/oren/flake.lock generated

File diff suppressed because it is too large Load diff

View file

@ -2,10 +2,15 @@
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
# Use relative to get current version for testing
common.url = "path:../../common";
# Pin to specific version
# common.url = "git+https://git.joshuabell.xyz/dotfiles?rev=88f2d95e6a871f084dccfc4f45ad9d2b31720998";
ros_neovim.url = "git+https://git.joshuabell.xyz/nvim"; ros_neovim.url = "git+https://git.joshuabell.xyz/nvim";
mod_common.url = "git+https://git.joshuabell.xyz/dotfiles?ref=mod_common"; mod_common.url = "git+https://git.joshuabell.xyz/dotfiles?ref=mod_common";
mod_secrets.url = "git+https://git.joshuabell.xyz/dotfiles?ref=mod_secrets"; mod_secrets.url = "git+https://git.joshuabell.xyz/dotfiles?ref=mod_secrets";
mod_boot_systemd.url = "git+https://git.joshuabell.xyz/dotfiles?ref=mod_boot_systemd"; # mod_boot_systemd.url = "git+https://git.joshuabell.xyz/dotfiles?ref=mod_boot_systemd";
mod_de_gnome.url = "git+https://git.joshuabell.xyz/dotfiles?ref=mod_de_gnome"; mod_de_gnome.url = "git+https://git.joshuabell.xyz/dotfiles?ref=mod_de_gnome";
mod_home-manager.url = "git+https://git.joshuabell.xyz/dotfiles?ref=mod_home_manager"; mod_home-manager.url = "git+https://git.joshuabell.xyz/dotfiles?ref=mod_home_manager";
mod_home-manager.inputs.home-manager.url = "github:rycee/home-manager/release-24.11"; mod_home-manager.inputs.home-manager.url = "github:rycee/home-manager/release-24.11";
@ -47,6 +52,9 @@
../../components/nix/qdirstat.nix ../../components/nix/qdirstat.nix
../../components/nix/tailscale.nix ../../components/nix/tailscale.nix
]; ];
ringofstorms_common = {
boot.systemd.enable = true;
};
mods = { mods = {
common = { common = {
systemName = configuration_name; systemName = configuration_name;