diff --git a/common/boot/grub.nix b/common/boot/grub.nix new file mode 100644 index 0000000..6d38292 --- /dev/null +++ b/common/boot/grub.nix @@ -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; + }; + }; +} diff --git a/common/flake.nix b/common/flake.nix new file mode 100644 index 0000000..efa47e1 --- /dev/null +++ b/common/flake.nix @@ -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 = { }; + }; + }; + }; +} diff --git a/flake.lock b/flake.lock index 359a88c..054a066 100644 --- a/flake.lock +++ b/flake.lock @@ -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": {