This commit is contained in:
RingOfStorms (Joshua Bell) 2025-03-07 01:02:16 -06:00
parent 451714ad09
commit f993f9fa73
3 changed files with 65 additions and 3 deletions

19
common/boot/grub.nix Normal file
View file

@ -0,0 +1,19 @@
{ config, lib, ... }:
with lib;
{
options.mods.boot_grub = {
device = mkOption {
type = types.str;
default = "/dev/sda";
description = ''
The device to install GRUB on.
'';
};
};
config = {
boot.loader.grub = {
enable = true;
device = config.mods.boot_grub.device;
};
};
}

View file

@ -0,0 +1,43 @@
{
inputs = {
home-manager.url = "github:rycee/home-manager/release-24.11";
ragenix.url = "github:yaxitech/ragenix";
ros_neovim.url = "git+https://git.joshuabell.xyz/nvim";
ringofstorms-stormd.url = "git+ssh://git.joshuabell.xyz:3032/stormd";
# ros_neovim.url = "path:/home/josh/projects/stormd";
hyprland.url = "github:hyprwm/Hyprland";
cosmic.url = "github:lilyinstarlight/nixos-cosmic";
};
outputs =
{
ros-neovim,
...
}:
{
nixosModules = {
default =
{
config,
lib,
pkgs,
...
}:
let
config_key = "ringofstorms_common";
in
{
config = { };
imports = [
./boot/grub.nix
];
options = { };
};
};
};
}

6
flake.lock generated
View file

@ -2,11 +2,11 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1739214665,
"narHash": "sha256-26L8VAu3/1YRxS8MHgBOyOM8xALdo6N0I04PgorE7UM=",
"lastModified": 1741173522,
"narHash": "sha256-k7VSqvv0r1r53nUI/IfPHCppkUAddeXn843YlAC5DR0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "64e75cd44acf21c7933d61d7721e812eac1b5a0a",
"rev": "d69ab0d71b22fa1ce3dbeff666e6deb4917db049",
"type": "github"
},
"original": {