Compare commits

...

2 commits

Author SHA1 Message Date
cd63abe198
flake.nix: cleanup 2025-03-08 17:26:54 +01:00
9c7d13c70c
boot/module.nix: switch to systemd-boot 2025-03-08 17:26:49 +01:00
2 changed files with 11 additions and 20 deletions

View file

@ -2,7 +2,6 @@
description = "My NixOS config flake";
outputs = inputs: let
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
user = import ./modules/user {inherit pkgs;};
eachSystem = inputs.nixpkgs.lib.genAttrs (import inputs.systems);
pkgsFor = inputs.nixpkgs.legacyPackages;
in {
@ -11,20 +10,12 @@
devShells.x86_64-linux.default = pkgs.callPackage ./shell.nix {};
formatter.x86_64-linux = pkgs.alejandra;
# packages.x86_64-linux = {inherit (user) packages;};
packages = eachSystem (
system: {
inherit (import ./packages pkgsFor.${system}) helix fish;
}
);
# packages = eachSystem (
# system: let
# user = import ./modules/user {pkgs = pkgsFor.${system};};
# in {
# inherit (user) packages;
# }
# );
apps = eachSystem (system: let
user = import ./modules/user {pkgs = pkgsFor.${system};};
@ -38,12 +29,6 @@
program = "${user.packages.helix}/bin/hx";
};
});
# nixosModules = eachSystem (system: let
# user = import ./modules/user {inherit inputs;};
# in {
# user = user.module;
# });
# nixosModules.user = user.module;
};
inputs = {
# Unstable nixpkgs baby!

View file

@ -1,11 +1,17 @@
{pkgs, ...}: {
{lib, pkgs, ...}:let
inherit (lib.modules) mkForce;
in {
boot.loader = {
efi.canTouchEfiVariables = true;
grub = {
systemd-boot = {
enable = true;
efiSupport = true;
device = "nodev";
configurationLimit = 5;
# security risk, see
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix#L208-L220
editor = mkForce false;
# device = "nodev";
configurationLimit = 15;
};
};
boot.plymouth = {