add boot module
This commit is contained in:
parent
8e33b1b9c5
commit
3fbbe84dca
5 changed files with 29 additions and 2 deletions
22
modules/system/core/boot.nix
Normal file
22
modules/system/core/boot.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ ... }: {
|
||||
flake.nixosModules.boot = {
|
||||
options = {
|
||||
dualBoot = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "wether to enable windows boot entry to limine or not";
|
||||
};
|
||||
};
|
||||
boot.loader = {
|
||||
efi.canTouchEfiVariables = true;
|
||||
limine = {
|
||||
enable = true;
|
||||
extraEntries = lib.mkIf dualBoot ''
|
||||
/Windows 11
|
||||
protocol: efi_boot_entry
|
||||
entry: Windows Boot Manager
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
54
modules/system/core/packages.nix
Normal file
54
modules/system/core/packages.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{ ... }: {
|
||||
flake.nixosModules.packages = { pkgs, ... }: {
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
stow
|
||||
ufetch
|
||||
rbw
|
||||
emacs-pgtk
|
||||
tinty
|
||||
pinentry-gnome3
|
||||
git
|
||||
nixd
|
||||
nixfmt
|
||||
xournalpp
|
||||
rnote
|
||||
btop
|
||||
chromium
|
||||
fuzzel
|
||||
quickshell
|
||||
wl-clipboard
|
||||
adw-gtk3
|
||||
papirus-icon-theme
|
||||
apple-cursor
|
||||
polkit_gnome
|
||||
xwayland-satellite
|
||||
nemo
|
||||
libwacom
|
||||
devenv
|
||||
kdePackages.qt6ct
|
||||
gcc
|
||||
clang-tools
|
||||
clang
|
||||
gdb
|
||||
gnumake
|
||||
libreoffice
|
||||
ripgrep
|
||||
jq
|
||||
nmgui
|
||||
kdePackages.qtdeclarative
|
||||
ghostty
|
||||
rnote
|
||||
gsettings-desktop-schemas
|
||||
glib
|
||||
];
|
||||
fonts.packages = with pkgs; [
|
||||
jetbrains-mono
|
||||
nerd-fonts.jetbrains-mono
|
||||
noto-fonts
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-color-emoji
|
||||
inter
|
||||
];
|
||||
};
|
||||
}
|
||||
12
modules/system/core/user.nix
Normal file
12
modules/system/core/user.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ ... }: {
|
||||
flake.nixosModules.user = { pkgs, ... }: {
|
||||
users.users."lucy" = {
|
||||
isNormalUser = true;
|
||||
description = "lucy";
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue