mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
Compare commits
No commits in common. "03111e34617f0c5247269af79f7c01420987a9ed" and "899db63096e40b4903bca16605f7f64b1610a922" have entirely different histories.
03111e3461
...
899db63096
|
@ -56,6 +56,7 @@
|
||||||
# Networking
|
# Networking
|
||||||
networking.hostName = systemSettings.hostname; # Define your hostname.
|
networking.hostName = systemSettings.hostname; # Define your hostname.
|
||||||
networking.networkmanager.enable = true; # Use networkmanager
|
networking.networkmanager.enable = true; # Use networkmanager
|
||||||
|
networking.networkmanager.wifi.backend = "iwd"; # wpa_supplicant broken :(
|
||||||
|
|
||||||
# Timezone and locale
|
# Timezone and locale
|
||||||
time.timeZone = systemSettings.timezone; # time zone
|
time.timeZone = systemSettings.timezone; # time zone
|
||||||
|
|
|
@ -8,9 +8,9 @@
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "radeon" ];
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
boot.initrd.kernelModules = [ "radeon" ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-amd" "radeon" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = with config.boot.kernelPackages; [ zenpower ];
|
boot.extraModulePackages = with config.boot.kernelPackages; [ zenpower ];
|
||||||
hardware.opengl.extraPackages = [ pkgs.amdvlk ];
|
hardware.opengl.extraPackages = [ pkgs.amdvlk ];
|
||||||
hardware.opengl.extraPackages32 = [ pkgs.driversi686Linux.amdvlk ];
|
hardware.opengl.extraPackages32 = [ pkgs.driversi686Linux.amdvlk ];
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
{ inputs, pkgs, lib, ... }: let
|
{ inputs, pkgs, ... }:
|
||||||
pkgs-hyprland = inputs.hyprland.inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
# Import wayland config
|
# Import wayland config
|
||||||
imports = [ ./wayland.nix
|
imports = [ ./wayland.nix
|
||||||
|
@ -31,14 +30,4 @@ in
|
||||||
portalPackage = pkgs.xdg-desktop-portal-hyprland;
|
portalPackage = pkgs.xdg-desktop-portal-hyprland;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# fixes opengl/mesa version mismatch
|
|
||||||
hardware.opengl = {
|
|
||||||
package = pkgs-hyprland.mesa.drivers;
|
|
||||||
|
|
||||||
# if you also want 32-bit support (e.g for Steam)
|
|
||||||
driSupport32Bit = true;
|
|
||||||
package32 = pkgs-hyprland.pkgsi686Linux.mesa.drivers;
|
|
||||||
};
|
|
||||||
services.xserver.displayManager.sddm.package = lib.mkForce pkgs-hyprland.sddm;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -164,9 +164,7 @@ c.tabs.last_close = 'close'
|
||||||
c.tabs.position = 'left'
|
c.tabs.position = 'left'
|
||||||
c.tabs.width = '3%'
|
c.tabs.width = '3%'
|
||||||
c.window.transparent = True
|
c.window.transparent = True
|
||||||
c.colors.webpage.darkmode.enabled = ''+(if (config.stylix.polarity == "dark") then "True" else "False")+''
|
c.colors.webpage.darkmode.enabled = True
|
||||||
|
|
||||||
c.colors.webpage.preferred_color_scheme = "''+config.stylix.polarity+''"
|
|
||||||
c.colors.webpage.darkmode.policy.images = 'never'
|
c.colors.webpage.darkmode.policy.images = 'never'
|
||||||
|
|
||||||
c.url.default_page = str(config.configdir)+'/qute-home.html'
|
c.url.default_page = str(config.configdir)+'/qute-home.html'
|
||||||
|
@ -314,6 +312,7 @@ c.colors.tabs.selected.odd.fg = base05
|
||||||
c.colors.tabs.selected.odd.bg = base02
|
c.colors.tabs.selected.odd.bg = base02
|
||||||
c.colors.tabs.selected.even.fg = base05
|
c.colors.tabs.selected.even.fg = base05
|
||||||
c.colors.tabs.selected.even.bg = base02
|
c.colors.tabs.selected.even.bg = base02
|
||||||
|
c.colors.webpage.bg = base00
|
||||||
|
|
||||||
font = "''+userSettings.font+''"
|
font = "''+userSettings.font+''"
|
||||||
|
|
||||||
|
|
|
@ -626,40 +626,6 @@ If the path from LINK does not exist, nil is returned."
|
||||||
"e" #'org-jekyll-rename-post
|
"e" #'org-jekyll-rename-post
|
||||||
)
|
)
|
||||||
|
|
||||||
(require 'crdt)
|
|
||||||
(setq crdt-default-tls nil)
|
|
||||||
(setq crdt-default-name "Emmet")
|
|
||||||
(if (file-exists-p "~/.emacs.d/crdt-private.el") (load! "~/.emacs.d/crdt-private.el"))
|
|
||||||
(defun crdt-connect-default ()
|
|
||||||
(interactive)
|
|
||||||
(crdt-connect crdt-default-server-address crdt-default-name)
|
|
||||||
)
|
|
||||||
(map! :leader
|
|
||||||
:desc "crdt"
|
|
||||||
:prefix ("C")
|
|
||||||
|
|
||||||
:desc "Connect to a crdt server"
|
|
||||||
"c" #'crdt-connect-default
|
|
||||||
|
|
||||||
:desc "Connect to default crdt server"
|
|
||||||
"C" #'crdt-connect-default
|
|
||||||
|
|
||||||
:desc "Disconnect from a crdt server"
|
|
||||||
"d" #'crdt-disconnect
|
|
||||||
|
|
||||||
:desc "Add buffer to a session"
|
|
||||||
"a" #'crdt-share-buffer
|
|
||||||
|
|
||||||
:desc "Stop sharing buffer to session"
|
|
||||||
"s" #'crdt-stop-share-buffer
|
|
||||||
|
|
||||||
:desc "List crdt buffers in a session"
|
|
||||||
"l" #'crdt-list-buffers
|
|
||||||
|
|
||||||
:desc "List crdt users in a session"
|
|
||||||
"u" #'crdt-list-users
|
|
||||||
)
|
|
||||||
|
|
||||||
;;;------ Org roam configuration ------;;;
|
;;;------ Org roam configuration ------;;;
|
||||||
(require 'org-roam)
|
(require 'org-roam)
|
||||||
(require 'org-roam-dailies)
|
(require 'org-roam-dailies)
|
||||||
|
|
|
@ -756,42 +756,6 @@ exit
|
||||||
"e" #'org-jekyll-rename-post
|
"e" #'org-jekyll-rename-post
|
||||||
)
|
)
|
||||||
|
|
||||||
#+end_src
|
|
||||||
*** Crdt
|
|
||||||
#+begin_src emacs-lisp :tangle config.el
|
|
||||||
(require 'crdt)
|
|
||||||
(setq crdt-default-tls nil)
|
|
||||||
(setq crdt-default-name "Emmet")
|
|
||||||
(if (file-exists-p "~/.emacs.d/crdt-private.el") (load! "~/.emacs.d/crdt-private.el"))
|
|
||||||
(defun crdt-connect-default ()
|
|
||||||
(interactive)
|
|
||||||
(crdt-connect crdt-default-server-address crdt-default-name)
|
|
||||||
)
|
|
||||||
(map! :leader
|
|
||||||
:desc "crdt"
|
|
||||||
:prefix ("C")
|
|
||||||
|
|
||||||
:desc "Connect to a crdt server"
|
|
||||||
"c" #'crdt-connect-default
|
|
||||||
|
|
||||||
:desc "Connect to default crdt server"
|
|
||||||
"C" #'crdt-connect-default
|
|
||||||
|
|
||||||
:desc "Disconnect from a crdt server"
|
|
||||||
"d" #'crdt-disconnect
|
|
||||||
|
|
||||||
:desc "Add buffer to a session"
|
|
||||||
"a" #'crdt-share-buffer
|
|
||||||
|
|
||||||
:desc "Stop sharing buffer to session"
|
|
||||||
"s" #'crdt-stop-share-buffer
|
|
||||||
|
|
||||||
:desc "List crdt buffers in a session"
|
|
||||||
"l" #'crdt-list-buffers
|
|
||||||
|
|
||||||
:desc "List crdt users in a session"
|
|
||||||
"u" #'crdt-list-users
|
|
||||||
)
|
|
||||||
#+end_src
|
#+end_src
|
||||||
** Org Roam Configuration
|
** Org Roam Configuration
|
||||||
*** Standard Org Roam Configuration
|
*** Standard Org Roam Configuration
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
{ inputs, config, lib, pkgs, userSettings, systemSettings, ... }: let
|
{ inputs, config, lib, pkgs, userSettings, systemSettings, ... }:
|
||||||
pkgs-hyprland = inputs.hyprland.inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../app/terminal/alacritty.nix
|
../../app/terminal/alacritty.nix
|
||||||
|
@ -321,7 +320,7 @@ in
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = (with pkgs; [
|
home.packages = with pkgs; [
|
||||||
alacritty
|
alacritty
|
||||||
kitty
|
kitty
|
||||||
feh
|
feh
|
||||||
|
@ -369,6 +368,7 @@ in
|
||||||
hyprland-protocols
|
hyprland-protocols
|
||||||
hyprpicker
|
hyprpicker
|
||||||
hypridle
|
hypridle
|
||||||
|
hyprlock
|
||||||
swaybg
|
swaybg
|
||||||
fnott
|
fnott
|
||||||
fuzzel
|
fuzzel
|
||||||
|
@ -449,9 +449,8 @@ in
|
||||||
terminal = false;
|
terminal = false;
|
||||||
icon = "emacs";
|
icon = "emacs";
|
||||||
type = "Application";
|
type = "Application";
|
||||||
})])
|
})
|
||||||
++
|
];
|
||||||
(with pkgs-hyprland; [ hyprlock ]);
|
|
||||||
home.file.".config/nwg-dock-hyprland/style.css".text = ''
|
home.file.".config/nwg-dock-hyprland/style.css".text = ''
|
||||||
window {
|
window {
|
||||||
background: rgba(''+config.lib.stylix.colors.base00-rgb-r+'',''+config.lib.stylix.colors.base00-rgb-g+'',''+config.lib.stylix.colors.base00-rgb-b+'',0.0);
|
background: rgba(''+config.lib.stylix.colors.base00-rgb-r+'',''+config.lib.stylix.colors.base00-rgb-g+'',''+config.lib.stylix.colors.base00-rgb-b+'',0.0);
|
||||||
|
|
Loading…
Reference in a new issue