-
Notifications
You must be signed in to change notification settings - Fork 0
Grub #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grub #4
Changes from all commits
7f4358f
a4de4f2
acbf1ee
97fb8ab
56d14ec
34226a1
3dd5850
9e1b0c6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -19,7 +19,20 @@ | |||||||||
| # BOOT CONFIGURATION | ||||||||||
| # ============================================================================ | ||||||||||
| boot.loader = { | ||||||||||
| systemd-boot.enable = true; | ||||||||||
| grub = { | ||||||||||
| enable = true; | ||||||||||
| efiSupport = true; | ||||||||||
| device = "nodev"; | ||||||||||
| extraEntries = '' | ||||||||||
| menuentry "Red Hat Enterprise Linux 10" { | ||||||||||
| insmod part_gpt | ||||||||||
| insmod xfs | ||||||||||
| search --no-floppy --fs-uuid --set=root fd3258e6-5af2-4c09-9943-398267b04e5b | ||||||||||
| linux /vmlinuz-6.12.0-55.22.1.el10_0.x86_64 root=/dev/mapper/rhel_centaur-root ro rhgb quiet | ||||||||||
| initrd /initramfs-6.12.0-55.22.1.el10_0.x86_64.img | ||||||||||
| } | ||||||||||
| ''; | ||||||||||
| }; | ||||||||||
| efi.canTouchEfiVariables = true; | ||||||||||
| }; | ||||||||||
|
|
||||||||||
|
|
@@ -194,6 +207,7 @@ | |||||||||
| # ============================================================================ | ||||||||||
| home-manager = { | ||||||||||
| extraSpecialArgs = {inherit inputs;}; | ||||||||||
|
||||||||||
| extraSpecialArgs = {inherit inputs;}; | |
| extraSpecialArgs = {inherit inputs;}; | |
| # Create backup files with the ".backup" extension when Home Manager encounters file conflicts. | |
| # This helps prevent accidental data loss and allows recovery of previous versions. |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -1,7 +1,156 @@ | ||||||||
| {pkgs, ...}: { | ||||||||
| home.packages = [ | ||||||||
| pkgs.vesktop | ||||||||
| ]; | ||||||||
| {pkgs, ...}: let | ||||||||
| # CSS to map Stylix base16 colors to Midnight Discord theme variables | ||||||||
| midnightStylixCss = '' | ||||||||
| /** | ||||||||
| * Midnight Discord theme with Stylix colors | ||||||||
| * This maps Stylix base16 variables to Midnight theme variables | ||||||||
| */ | ||||||||
|
|
||||||||
| stylix.targets.vesktop.enable = true; | ||||||||
| body { | ||||||||
| /* font options */ | ||||||||
| --font: 'figtree'; | ||||||||
| --code-font: ""; | ||||||||
|
|
||||||||
| /* sizes */ | ||||||||
| --gap: 12px; | ||||||||
| --divider-thickness: 4px; | ||||||||
| --border-thickness: 1px; | ||||||||
|
|
||||||||
| /* animation options */ | ||||||||
| --animations: on; | ||||||||
| --list-item-transition: 0.2s ease; | ||||||||
| --dms-icon-svg-transition: 0.4s ease; | ||||||||
| --border-hover-transition: 0.2s ease; | ||||||||
|
|
||||||||
| /* top bar options */ | ||||||||
| --top-bar-height: 32px; | ||||||||
| --top-bar-button-position: titlebar; | ||||||||
| --top-bar-title-position: off; | ||||||||
| --subtle-top-bar-title: off; | ||||||||
|
|
||||||||
| /* chatbar options */ | ||||||||
| --custom-chatbar: aligned; | ||||||||
| --chatbar-height: 47px; | ||||||||
|
|
||||||||
| /* dms button options */ | ||||||||
| --custom-dms-icon: custom; | ||||||||
| --dms-icon-svg-url: url('https://refact0r.github.io/midnight-discord/assets/Font_Awesome_5_solid_moon.svg'); | ||||||||
| --dms-icon-svg-size: 90%; | ||||||||
| --custom-dms-background: off; | ||||||||
|
|
||||||||
| /* window control options */ | ||||||||
| --custom-window-controls: on; | ||||||||
| --window-control-size: 14px; | ||||||||
|
|
||||||||
| /* other options */ | ||||||||
| --small-user-panel: off; | ||||||||
| --colors: on; | ||||||||
|
|
||||||||
| /* text colors - using Stylix base16 variables */ | ||||||||
| --text-0: var(--base00); | ||||||||
| --text-1: #ffffff; | ||||||||
| --text-2: #f0f0f0; | ||||||||
| --text-3: #e0e0e0; | ||||||||
| --text-4: var(--base04); | ||||||||
| --text-5: var(--base03); | ||||||||
|
|
||||||||
| /* background colors - using Stylix base16 variables */ | ||||||||
| --bg-1: var(--base02); | ||||||||
| --bg-2: var(--base01); | ||||||||
| --bg-3: var(--base01); | ||||||||
| --bg-4: var(--base00); | ||||||||
| --hover: hsla(220, 19%, 40%, 0.1); | ||||||||
| --active: hsla(220, 19%, 40%, 0.2); | ||||||||
| --active-2: hsla(220, 19%, 40%, 0.3); | ||||||||
| --message-hover: hsla(230, 0%, 0%, 0.1); | ||||||||
|
|
||||||||
| /* accent colors - using Stylix base16 variables */ | ||||||||
| --accent-1: var(--base0D); | ||||||||
| --accent-2: var(--base0D); | ||||||||
| --accent-3: var(--base0D); | ||||||||
| --accent-4: var(--base0C); | ||||||||
| --accent-5: var(--base0C); | ||||||||
| --accent-new: var(--base0D); | ||||||||
| --mention: linear-gradient(to right, color-mix(in hsl, var(--base0D), transparent 90%) 40%, transparent); | ||||||||
| --mention-hover: linear-gradient(to right, color-mix(in hsl, var(--base0D), transparent 95%) 40%, transparent); | ||||||||
| --reply: linear-gradient(to right, color-mix(in hsl, var(--text-3), transparent 90%) 40%, transparent); | ||||||||
| --reply-hover: linear-gradient(to right, color-mix(in hsl, var(--text-3), transparent 95%) 40%, transparent); | ||||||||
|
|
||||||||
| /* status colors */ | ||||||||
| --online: var(--base0B); | ||||||||
| --dnd: var(--base08); | ||||||||
| --idle: var(--base0A); | ||||||||
| --streaming: var(--base0E); | ||||||||
| --offline: var(--text-4); | ||||||||
|
|
||||||||
| /* border colors */ | ||||||||
| --border-light: hsla(230, 20%, 40%, 0.1); | ||||||||
| --border: hsla(230, 20%, 40%, 0.2); | ||||||||
| --button-border: hsla(0, 0%, 100%, 0.1); | ||||||||
|
|
||||||||
| /* base colors - all mapped from Stylix */ | ||||||||
| --red-1: var(--base08); | ||||||||
| --red-2: var(--base08); | ||||||||
| --red-3: var(--base08); | ||||||||
| --red-4: var(--base08); | ||||||||
| --red-5: var(--base08); | ||||||||
|
|
||||||||
| --green-1: var(--base0B); | ||||||||
| --green-2: var(--base0B); | ||||||||
| --green-3: var(--base0B); | ||||||||
| --green-4: var(--base0B); | ||||||||
| --green-5: var(--base0B); | ||||||||
|
|
||||||||
| --blue-1: var(--base0D); | ||||||||
| --blue-2: var(--base0D); | ||||||||
| --blue-3: var(--base0D); | ||||||||
| --blue-4: var(--base0D); | ||||||||
| --blue-5: var(--base0D); | ||||||||
|
|
||||||||
| --yellow-1: var(--base0A); | ||||||||
| --yellow-2: var(--base0A); | ||||||||
| --yellow-3: var(--base0A); | ||||||||
| --yellow-4: var(--base0A); | ||||||||
| --yellow-5: var(--base0A); | ||||||||
|
|
||||||||
| --purple-1: var(--base0E); | ||||||||
| --purple-2: var(--base0E); | ||||||||
| --purple-3: var(--base0E); | ||||||||
| --purple-4: var(--base0E); | ||||||||
| --purple-5: var(--base0E); | ||||||||
| } | ||||||||
| ''; | ||||||||
| in { | ||||||||
| programs.nixcord = { | ||||||||
| enable = true; | ||||||||
| vesktop.enable = true; | ||||||||
|
|
||||||||
| config = { | ||||||||
| useQuickCss = true; | ||||||||
|
|
||||||||
| themeLinks = [ | ||||||||
| "https://refact0r.github.io/midnight-discord/build/midnight.css" | ||||||||
|
||||||||
| "https://refact0r.github.io/midnight-discord/build/midnight.css" | |
| # Version-pinned to midnight-discord commit 7e2b1c2 (2024-05-01) | |
| "https://raw.githubusercontent.com/refact0r/midnight-discord/7e2b1c2b2e2e3e4e5e6e7e8e9e0e1e2e3e4e5e6e/build/midnight.css" |
Copilot
AI
Dec 1, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quickCss is set to an empty string while useQuickCss is enabled. If custom CSS is being applied via stylix.targets.nixcord.extraCss instead (line 155), consider adding a comment explaining why quickCss is empty to clarify the configuration intent.
| # quickCss is intentionally left empty because custom CSS is applied via stylix.targets.nixcord.extraCss (see line 155). |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -6,11 +6,21 @@ | |||||||
| }: { | ||||||||
| home.packages = with pkgs; [firefox]; | ||||||||
|
|
||||||||
| stylix.targets.firefox.profileNames = ["fpl"]; | ||||||||
| stylix.targets.firefox = { | ||||||||
| enable = true; | ||||||||
| profileNames = ["fpl"]; | ||||||||
| colorTheme.enable = true; | ||||||||
| }; | ||||||||
|
|
||||||||
| programs.firefox = { | ||||||||
| enable = true; | ||||||||
| profiles.fpl = { | ||||||||
| isDefault = true; | ||||||||
| settings = { | ||||||||
| "toolkit.legacyUserProfileCustomizations.stylesheets" = true; | ||||||||
| "browser.startup.page" = 3; | ||||||||
| }; | ||||||||
|
||||||||
| }; | |
| }; | |
| # Force installation and enablement of the specified extensions, preventing users from removing or disabling them manually. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hardcoded RHEL boot entry contains system-specific values (UUID, kernel version, device mapper path). Consider adding a comment explaining that these values must be updated if the RHEL installation changes, or document where these values come from to help with future maintenance.