Compare commits

..

3 commits

Author SHA1 Message Date
8caa4f6d77 firefox: module init 2024-11-03 18:59:29 -08:00
8ab25ee76f snowhawk: no more os-prober 2024-11-03 18:03:01 -08:00
c5d34f3735 snowhawk: nvk specs 2024-11-03 18:01:10 -08:00
4 changed files with 79 additions and 8 deletions

44
home/modules/firefox.nix Normal file
View file

@ -0,0 +1,44 @@
{ lib, config, pkgs, ... }:
let
cfg = config.snowhawk.firefox;
in
{
options.snowhawk.firefox = {
enable = lib.mkEnableOption "firefox home-manager module";
};
config = lib.mkIf cfg.enable {
programs.firefox = {
enable = true;
package = pkgs.firefox;
profiles.default = {
isDefault = true;
path = "x56262ch.default";
userChrome = /* css */ ''
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items {
opacity: 0;
pointer-events: none;
}
#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
visibility: collapse !important;
}
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
display: none;
}
#titlebar {display: none !important;}
#main-window {-moz-appearance:none !important;}
'';
};
profiles.alt = {
id = 1;
path = "05fb1no8.casualypurple";
};
};
};
}

View file

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running `nixos-help`).
{ pkgs, inputs, lib, ... }:
{ pkgs, inputs, lib, config, ... }:
{
imports = [
@ -19,13 +19,32 @@
})
];
specialisation = {
dwl.configuration = {
snowhawk.dwl.enable = true;
specialisation =
let
nvkConfig = {
system.nixos.tags = [ "nouveau-drivers" ];
boot.kernelParams = [ "nouveau.config=NvGspRm=1" ];
services.xserver.videoDrivers = (lib.lists.remove "nvidia" config.services.xserver.videoDrivers);
};
in
{
dwmNVK.configuration = {
snowhawk.dwm.enable = true;
home-manager.sharedModules = [{ snowhawk.dunst.enable = lib.mkDefault true; }];
home-manager.sharedModules = [{ snowhawk.dunst.enable = lib.mkDefault true; }];
} // nvkConfig;
dwl.configuration = {
snowhawk.dwl.enable = true;
home-manager.sharedModules = [{ snowhawk.dunst.enable = lib.mkDefault true; }];
};
dwlNVK.configuration = {
snowhawk.dwl.enable = true;
home-manager.sharedModules = [{ snowhawk.dunst.enable = lib.mkDefault true; }];
} // nvkConfig;
};
};
snowhawk = {
filesystem.enable = true;

View file

@ -132,9 +132,17 @@ in
boot.loader.grub = {
enable = true;
efiSupport = true;
useOSProber = true;
device = "nodev";
theme = pkgs.rose-pine-grub;
extraEntries = ''
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os {
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root 1A0A-CEB2
chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
'';
};
boot.loader.efi.canTouchEfiVariables = true;

View file

@ -7,6 +7,7 @@
snowhawk = {
# Desktop
firefox.enable = true;
dunst.enable = true;
theme.enable = true;
redshift.enable = true;
@ -86,7 +87,6 @@
arandr
brave
firefox
spotify
vesktop