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

View file

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