switch back to nixfmt
This commit is contained in:
parent
4e2d3f4d2a
commit
a7f0e767d3
37 changed files with 797 additions and 689 deletions
29
flake.nix
29
flake.nix
|
|
@ -78,7 +78,8 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs =
|
||||||
|
{
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
nixpkgs-unstable,
|
nixpkgs-unstable,
|
||||||
nix-cachyos-kernel,
|
nix-cachyos-kernel,
|
||||||
|
|
@ -97,18 +98,23 @@
|
||||||
catppuccin-btop,
|
catppuccin-btop,
|
||||||
catppuccin-mpv,
|
catppuccin-mpv,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
|
let
|
||||||
# All systems we want to support for the generic VM
|
# All systems we want to support for the generic VM
|
||||||
# to run the vm:
|
# to run the vm:
|
||||||
# nixos-rebuild build-vm --flake ~/nix#$(nix eval --raw --impure --expr 'builtins.currentSystem')
|
# nixos-rebuild build-vm --flake ~/nix#$(nix eval --raw --impure --expr 'builtins.currentSystem')
|
||||||
supportedSystems = ["x86_64-linux" "aarch64-linux"];
|
supportedSystems = [
|
||||||
|
"x86_64-linux"
|
||||||
|
"aarch64-linux"
|
||||||
|
];
|
||||||
|
|
||||||
# Shared config for all package sets
|
# Shared config for all package sets
|
||||||
pkgConfig = {
|
pkgConfig = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
mkNixosSystem = {
|
mkNixosSystem =
|
||||||
|
{
|
||||||
hostname,
|
hostname,
|
||||||
system,
|
system,
|
||||||
extraModules ? [ ],
|
extraModules ? [ ],
|
||||||
|
|
@ -116,8 +122,7 @@
|
||||||
}:
|
}:
|
||||||
nixpkgs.lib.nixosSystem {
|
nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs =
|
specialArgs = {
|
||||||
{
|
|
||||||
inherit catppuccin system;
|
inherit catppuccin system;
|
||||||
pkgs-unstable = import nixpkgs-unstable {
|
pkgs-unstable = import nixpkgs-unstable {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
|
@ -125,8 +130,7 @@
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// extraSpecialArgs;
|
// extraSpecialArgs;
|
||||||
modules =
|
modules = [
|
||||||
[
|
|
||||||
{
|
{
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
config = pkgConfig;
|
config = pkgConfig;
|
||||||
|
|
@ -243,7 +247,8 @@
|
||||||
++ extraModules;
|
++ extraModules;
|
||||||
};
|
};
|
||||||
|
|
||||||
mkHomeConfig = {
|
mkHomeConfig =
|
||||||
|
{
|
||||||
user,
|
user,
|
||||||
hostname,
|
hostname,
|
||||||
system,
|
system,
|
||||||
|
|
@ -270,7 +275,8 @@
|
||||||
nixvim.homeModules.nixvim
|
nixvim.homeModules.nixvim
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
peach = mkNixosSystem {
|
peach = mkNixosSystem {
|
||||||
hostname = "peach";
|
hostname = "peach";
|
||||||
|
|
@ -298,8 +304,7 @@
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
homeConfigurations =
|
homeConfigurations = {
|
||||||
{
|
|
||||||
peach = mkHomeConfig {
|
peach = mkHomeConfig {
|
||||||
user = "sckova";
|
user = "sckova";
|
||||||
hostname = "peach";
|
hostname = "peach";
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,8 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
modulesPath,
|
modulesPath,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
lib,
|
lib,
|
||||||
modulesPath,
|
modulesPath,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,16 @@
|
||||||
lib,
|
lib,
|
||||||
system,
|
system,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
imports = [ ];
|
imports = [ ];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = ["ehci_pci" "xhci_pci" "usbhid" "sr_mod"];
|
boot.initrd.availableKernelModules = [
|
||||||
|
"ehci_pci"
|
||||||
|
"xhci_pci"
|
||||||
|
"usbhid"
|
||||||
|
"sr_mod"
|
||||||
|
];
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/disk/by-label/nixos";
|
device = "/dev/disk/by-label/nixos";
|
||||||
|
|
@ -18,7 +24,10 @@
|
||||||
fileSystems."/boot" = {
|
fileSystems."/boot" = {
|
||||||
device = "/dev/disk/by-label/boot";
|
device = "/dev/disk/by-label/boot";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = ["fmask=0077" "dmask=0077"];
|
options = [
|
||||||
|
"fmask=0077"
|
||||||
|
"dmask=0077"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
|
|
@ -30,7 +39,7 @@
|
||||||
|
|
||||||
# Enable Parallels tools only on aarch64
|
# Enable Parallels tools only on aarch64
|
||||||
hardware.parallels.enable = lib.mkIf (system == "aarch64-linux") true;
|
hardware.parallels.enable = lib.mkIf (system == "aarch64-linux") true;
|
||||||
nixpkgs.config.allowUnfreePredicate =
|
nixpkgs.config.allowUnfreePredicate = lib.mkIf (system == "aarch64-linux") (
|
||||||
lib.mkIf (system == "aarch64-linux")
|
pkg: builtins.elem (lib.getName pkg) [ "prl-tools" ]
|
||||||
(pkg: builtins.elem (lib.getName pkg) ["prl-tools"]);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
|
let
|
||||||
catppuccin-discord = "${pkgs.catppuccin-discord}/share/catppuccin-discord/catppuccin-${config.catppuccin.flavor}-${config.catppuccin.accent}.theme.css";
|
catppuccin-discord = "${pkgs.catppuccin-discord}/share/catppuccin-discord/catppuccin-${config.catppuccin.flavor}-${config.catppuccin.accent}.theme.css";
|
||||||
|
|
||||||
mergedThemes = pkgs.runCommand "mergedConfig" { } ''
|
mergedThemes = pkgs.runCommand "mergedConfig" { } ''
|
||||||
|
|
@ -32,7 +33,8 @@
|
||||||
height = 1071;
|
height = 1071;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
home.packages = with pkgs; [ vesktop ];
|
home.packages = with pkgs; [ vesktop ];
|
||||||
|
|
||||||
home.file.".config/vesktop/settings.json" = {
|
home.file.".config/vesktop/settings.json" = {
|
||||||
|
|
|
||||||
|
|
@ -4,17 +4,20 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
home.file.".librewolf/default/chrome/" = {
|
home.file.".librewolf/default/chrome/" = {
|
||||||
source = ./librewolf_css;
|
source = ./librewolf_css;
|
||||||
force = true;
|
force = true;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".librewolf/default/chrome/colors.css" = let
|
home.file.".librewolf/default/chrome/colors.css" =
|
||||||
|
let
|
||||||
color = pkgs.catppuccin.rgb.${config.catppuccin.flavor};
|
color = pkgs.catppuccin.rgb.${config.catppuccin.flavor};
|
||||||
accent = color.${config.catppuccin.accent};
|
accent = color.${config.catppuccin.accent};
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
text = ''
|
text = ''
|
||||||
* {
|
* {
|
||||||
--accent: ${accent};
|
--accent: ${accent};
|
||||||
|
|
@ -256,10 +259,12 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
search = let
|
search =
|
||||||
|
let
|
||||||
nixIcon = "${pkgs.colloid-icon-theme}/share/icons/Colloid/apps/scalable/nix-snowflake.svg";
|
nixIcon = "${pkgs.colloid-icon-theme}/share/icons/Colloid/apps/scalable/nix-snowflake.svg";
|
||||||
googleIcon = "${pkgs.colloid-icon-theme}/share/icons/Colloid/apps/scalable/google.svg";
|
googleIcon = "${pkgs.colloid-icon-theme}/share/icons/Colloid/apps/scalable/google.svg";
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
force = true;
|
force = true;
|
||||||
default = "google";
|
default = "google";
|
||||||
order = [
|
order = [
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,16 @@
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
|
let
|
||||||
mergedConfig = pkgs.runCommand "mergedConfig" { } ''
|
mergedConfig = pkgs.runCommand "mergedConfig" { } ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
${pkgs.gnused}/bin/sed 's/${pkgs.catppuccin.${config.catppuccin.flavor}.base}/#000000/g' \
|
${pkgs.gnused}/bin/sed 's/${pkgs.catppuccin.${config.catppuccin.flavor}.base}/#000000/g' \
|
||||||
${pkgs.catppuccin-mpv-git}/themes/${config.catppuccin.flavor}/${config.catppuccin.accent}.conf \
|
${pkgs.catppuccin-mpv-git}/themes/${config.catppuccin.flavor}/${config.catppuccin.accent}.conf \
|
||||||
> $out/mpv.conf
|
> $out/mpv.conf
|
||||||
'';
|
'';
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
(mpv.override {
|
(mpv.override {
|
||||||
scripts = with mpvScripts; [
|
scripts = with mpvScripts; [
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,13 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
capitalize = str:
|
let
|
||||||
|
capitalize =
|
||||||
|
str:
|
||||||
(lib.toUpper (builtins.substring 0 1 str)) + (builtins.substring 1 (builtins.stringLength str) str);
|
(lib.toUpper (builtins.substring 0 1 str)) + (builtins.substring 1 (builtins.stringLength str) str);
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
# home.sessionVariables = {
|
# home.sessionVariables = {
|
||||||
# EDITOR = "code";
|
# EDITOR = "code";
|
||||||
# };
|
# };
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,8 @@
|
||||||
pkgs-unstable,
|
pkgs-unstable,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
options = {
|
options = {
|
||||||
catppuccinUpper = {
|
catppuccinUpper = {
|
||||||
accent = lib.mkOption {
|
accent = lib.mkOption {
|
||||||
|
|
@ -106,9 +107,11 @@
|
||||||
default = pkgs.noto-fonts-color-emoji;
|
default = pkgs.noto-fonts-color-emoji;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
cursor = let
|
cursor =
|
||||||
|
let
|
||||||
attrName = config.catppuccin.flavor + config.catppuccinUpper.accent;
|
attrName = config.catppuccin.flavor + config.catppuccinUpper.accent;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
name = lib.mkOption {
|
name = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
(prismlauncher.override {
|
(prismlauncher.override {
|
||||||
jdks = [
|
jdks = [
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
home.packages = with pkgs; [ openmw ];
|
home.packages = with pkgs; [ openmw ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,8 @@
|
||||||
pkgs-unstable,
|
pkgs-unstable,
|
||||||
spicetify-nix,
|
spicetify-nix,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
catppuccin = {
|
catppuccin = {
|
||||||
accent = "blue";
|
accent = "blue";
|
||||||
flavor = "mocha";
|
flavor = "mocha";
|
||||||
|
|
@ -18,9 +19,11 @@
|
||||||
pkgs.daggerfall-unity
|
pkgs.daggerfall-unity
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.spicetify = let
|
programs.spicetify =
|
||||||
|
let
|
||||||
spicePkgs = spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
spicePkgs = spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
enabledExtensions = with spicePkgs.extensions; [
|
enabledExtensions = with spicePkgs.extensions; [
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{pkgs, ...}: {
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
catppuccin = {
|
catppuccin = {
|
||||||
accent = "lavender";
|
accent = "lavender";
|
||||||
flavor = "macchiato";
|
flavor = "macchiato";
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
catppuccin = {
|
catppuccin = {
|
||||||
accent = "green";
|
accent = "green";
|
||||||
flavor = "mocha";
|
flavor = "mocha";
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
programs.ghostwriter = {
|
programs.ghostwriter = {
|
||||||
enable = true;
|
enable = true;
|
||||||
font = {
|
font = {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./gtk.nix
|
./gtk.nix
|
||||||
./qt.nix
|
./qt.nix
|
||||||
|
|
@ -35,10 +36,7 @@
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
colorScheme =
|
colorScheme = if config.userOptions.isDark then "dark" else "light";
|
||||||
if config.userOptions.isDark
|
|
||||||
then "dark"
|
|
||||||
else "light";
|
|
||||||
|
|
||||||
# theme = {
|
# theme = {
|
||||||
# package = pkgs.kdePackages.breeze-gtk;
|
# package = pkgs.kdePackages.breeze-gtk;
|
||||||
|
|
@ -49,10 +47,7 @@
|
||||||
# };
|
# };
|
||||||
|
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
name =
|
name = if config.userOptions.isDark then "Colloid-Dark" else "Colloid-Light";
|
||||||
if config.userOptions.isDark
|
|
||||||
then "Colloid-Dark"
|
|
||||||
else "Colloid-Light";
|
|
||||||
package = pkgs.colloid-icon-theme;
|
package = pkgs.colloid-icon-theme;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,18 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
|
let
|
||||||
colors = pkgs.catppuccin.hex.${config.catppuccin.flavor};
|
colors = pkgs.catppuccin.hex.${config.catppuccin.flavor};
|
||||||
|
|
||||||
mkColorSection = name: value: "@define-color ${name} ${value};";
|
mkColorSection = name: value: "@define-color ${name} ${value};";
|
||||||
|
|
||||||
generateCSS = ''
|
generateCSS = ''
|
||||||
/* Catppuccin ${lib.toUpper (builtins.substring 0 1 config.catppuccin.flavor)}${builtins.substring 1 (-1) config.catppuccin.flavor} ${lib.toUpper (builtins.substring 0 1 config.catppuccin.accent)}${builtins.substring 1 (-1) config.catppuccin.accent} Palette */
|
/* Catppuccin ${lib.toUpper (builtins.substring 0 1 config.catppuccin.flavor)}${
|
||||||
|
builtins.substring 1 (-1) config.catppuccin.flavor
|
||||||
|
} ${lib.toUpper (builtins.substring 0 1 config.catppuccin.accent)}${
|
||||||
|
builtins.substring 1 (-1) config.catppuccin.accent
|
||||||
|
} Palette */
|
||||||
|
|
||||||
/* Base colors */
|
/* Base colors */
|
||||||
${mkColorSection "window_bg_color" colors.base}
|
${mkColorSection "window_bg_color" colors.base}
|
||||||
|
|
@ -116,7 +121,8 @@
|
||||||
${mkColorSection "accent_bg_color" colors.${config.catppuccin.accent}}
|
${mkColorSection "accent_bg_color" colors.${config.catppuccin.accent}}
|
||||||
@define-color accent_fg_color @window_bg_color;
|
@define-color accent_fg_color @window_bg_color;
|
||||||
'';
|
'';
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
home.file = {
|
home.file = {
|
||||||
".config/gtk-4.0/gtk.css" = {
|
".config/gtk-4.0/gtk.css" = {
|
||||||
text = generateCSS;
|
text = generateCSS;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
qt = {
|
qt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
@ -32,11 +33,13 @@
|
||||||
general = "\"${config.userOptions.fontSans.name},${toString config.userOptions.fontSans.size}\"";
|
general = "\"${config.userOptions.fontSans.name},${toString config.userOptions.fontSans.size}\"";
|
||||||
};
|
};
|
||||||
|
|
||||||
ColorScheme = let
|
ColorScheme =
|
||||||
|
let
|
||||||
c = pkgs.catppuccin.bare.${config.catppuccin.flavor};
|
c = pkgs.catppuccin.bare.${config.catppuccin.flavor};
|
||||||
accent = c.${config.catppuccin.accent};
|
accent = c.${config.catppuccin.accent};
|
||||||
mkColors = roles: builtins.concatStringsSep ", " (map (r: "#ff${r}") roles);
|
mkColors = roles: builtins.concatStringsSep ", " (map (r: "#ff${r}") roles);
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
active_colors = mkColors [
|
active_colors = mkColors [
|
||||||
c.text
|
c.text
|
||||||
c.surface0
|
c.surface0
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,8 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
systemd.user.sessionVariables = {
|
systemd.user.sessionVariables = {
|
||||||
XCURSOR_THEME = config.userOptions.cursor.name;
|
XCURSOR_THEME = config.userOptions.cursor.name;
|
||||||
XCURSOR_SIZE = toString config.userOptions.cursor.size;
|
XCURSOR_SIZE = toString config.userOptions.cursor.size;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
|
let
|
||||||
mergedConfig = pkgs.runCommand "mergedConfig" { } ''
|
mergedConfig = pkgs.runCommand "mergedConfig" { } ''
|
||||||
mkdir -p $out/themes
|
mkdir -p $out/themes
|
||||||
${pkgs.gnused}/bin/sed 's/blankFlavor/${config.catppuccin.flavor}/g' \
|
${pkgs.gnused}/bin/sed 's/blankFlavor/${config.catppuccin.flavor}/g' \
|
||||||
|
|
@ -10,7 +11,8 @@
|
||||||
cp ${pkgs.catppuccin-btop-git}/themes/catppuccin_latte.theme $out/themes/
|
cp ${pkgs.catppuccin-btop-git}/themes/catppuccin_latte.theme $out/themes/
|
||||||
cp ${pkgs.catppuccin-btop-git}/themes/catppuccin_${config.catppuccin.flavor}.theme $out/themes/nixos.theme
|
cp ${pkgs.catppuccin-btop-git}/themes/catppuccin_${config.catppuccin.flavor}.theme $out/themes/nixos.theme
|
||||||
'';
|
'';
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
home.file.".config/btop" = {
|
home.file.".config/btop" = {
|
||||||
source = mergedConfig;
|
source = mergedConfig;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,8 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
kdePackages.qttools
|
kdePackages.qttools
|
||||||
eza
|
eza
|
||||||
|
|
@ -44,7 +45,8 @@
|
||||||
programs.man.generateCaches = false;
|
programs.man.generateCaches = false;
|
||||||
|
|
||||||
home.file.".config/fish/colors.fish" = {
|
home.file.".config/fish/colors.fish" = {
|
||||||
text = let
|
text =
|
||||||
|
let
|
||||||
flavor = config.catppuccin.flavor;
|
flavor = config.catppuccin.flavor;
|
||||||
palette = pkgs.catppuccin.bare.${flavor};
|
palette = pkgs.catppuccin.bare.${flavor};
|
||||||
accent = config.catppuccin.accent;
|
accent = config.catppuccin.accent;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
|
let
|
||||||
colors = pkgs.catppuccin.hex.${config.catppuccin.flavor};
|
colors = pkgs.catppuccin.hex.${config.catppuccin.flavor};
|
||||||
accent = colors.${config.catppuccin.accent};
|
accent = colors.${config.catppuccin.accent};
|
||||||
|
|
||||||
|
|
@ -87,7 +88,8 @@
|
||||||
text = kitty-colors;
|
text = kitty-colors;
|
||||||
destination = "/kitty-colors.conf";
|
destination = "/kitty-colors.conf";
|
||||||
};
|
};
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
home.file.".config/kitty/themes" = {
|
home.file.".config/kitty/themes" = {
|
||||||
source = kitty-colors-file;
|
source = kitty-colors-file;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
|
|
@ -109,7 +111,7 @@ in {
|
||||||
};
|
};
|
||||||
shellIntegration.enableFishIntegration = true;
|
shellIntegration.enableFishIntegration = true;
|
||||||
keybindings = {
|
keybindings = {
|
||||||
"ctrl+k" = ''combine : clear_terminal scroll active : clear_terminal scrollback active'';
|
"ctrl+k" = "combine : clear_terminal scroll active : clear_terminal scrollback active";
|
||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
include = "/home/${config.userOptions.username}/.config/kitty/themes/kitty-colors.conf";
|
include = "/home/${config.userOptions.username}/.config/kitty/themes/kitty-colors.conf";
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
};
|
};
|
||||||
|
|
@ -11,7 +12,7 @@
|
||||||
kdePackages.qtdeclarative
|
kdePackages.qtdeclarative
|
||||||
prettier
|
prettier
|
||||||
prettierd
|
prettierd
|
||||||
alejandra
|
nixfmt
|
||||||
stylua
|
stylua
|
||||||
black
|
black
|
||||||
clang-tools
|
clang-tools
|
||||||
|
|
@ -135,7 +136,7 @@
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
lua = [ "stylua" ];
|
lua = [ "stylua" ];
|
||||||
python = [ "black" ];
|
python = [ "black" ];
|
||||||
nix = ["alejandra"];
|
nix = [ "nixfmt" ];
|
||||||
javascript = [ "prettier" ];
|
javascript = [ "prettier" ];
|
||||||
css = [ "prettier" ];
|
css = [ "prettier" ];
|
||||||
json = [ "prettier" ];
|
json = [ "prettier" ];
|
||||||
|
|
@ -185,9 +186,11 @@
|
||||||
nixd.enable = true;
|
nixd.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
lualine = let
|
lualine =
|
||||||
|
let
|
||||||
palette = pkgs.catppuccin.${config.catppuccin.flavor};
|
palette = pkgs.catppuccin.${config.catppuccin.flavor};
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
options = {
|
options = {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{pkgs, ...}: {
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./niri.nix
|
./niri.nix
|
||||||
./noctalia.nix
|
./noctalia.nix
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
# https://github.com/sodiboo/niri-flake/blob/main/docs.md
|
# https://github.com/sodiboo/niri-flake/blob/main/docs.md
|
||||||
programs.niri = {
|
programs.niri = {
|
||||||
# handle package systemwide
|
# handle package systemwide
|
||||||
|
|
@ -88,14 +89,15 @@
|
||||||
theme = config.userOptions.cursor.name;
|
theme = config.userOptions.cursor.name;
|
||||||
};
|
};
|
||||||
layout = {
|
layout = {
|
||||||
gaps = 2;
|
gaps = 4;
|
||||||
background-color = pkgs.catppuccin.${config.catppuccin.flavor}.mantle;
|
background-color = pkgs.catppuccin.${config.catppuccin.flavor}.mantle;
|
||||||
default-column-width = {
|
default-column-width = {
|
||||||
proportion = 0.5;
|
proportion = 0.5;
|
||||||
};
|
};
|
||||||
preset-column-widths = [
|
preset-column-widths = [
|
||||||
{proportion = 1.0 / 3.0;}
|
{ proportion = 4.0 / 12.0; }
|
||||||
{proportion = 2.0 / 3.0;}
|
{ proportion = 6.0 / 12.0; }
|
||||||
|
{ proportion = 8.0 / 12.0; }
|
||||||
];
|
];
|
||||||
border = {
|
border = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -137,10 +139,10 @@
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
geometry-corner-radius = {
|
geometry-corner-radius = {
|
||||||
top-left = 0.0;
|
top-left = 16.0;
|
||||||
top-right = 0.0;
|
top-right = 16.0;
|
||||||
bottom-left = 0.0;
|
bottom-left = 16.0;
|
||||||
bottom-right = 0.0;
|
bottom-right = 16.0;
|
||||||
};
|
};
|
||||||
clip-to-geometry = true;
|
clip-to-geometry = true;
|
||||||
}
|
}
|
||||||
|
|
@ -217,37 +219,68 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
"XF86MonBrightnessUp" = {
|
"XF86MonBrightnessUp" = {
|
||||||
action.spawn = ["noctalia-shell" "ipc" "call" "brightness" "increase"];
|
action.spawn = [
|
||||||
|
"noctalia-shell"
|
||||||
|
"ipc"
|
||||||
|
"call"
|
||||||
|
"brightness"
|
||||||
|
"increase"
|
||||||
|
];
|
||||||
allow-when-locked = true;
|
allow-when-locked = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
"XF86MonBrightnessDown" = {
|
"XF86MonBrightnessDown" = {
|
||||||
action.spawn = ["noctalia-shell" "ipc" "call" "brightness" "decrease"];
|
action.spawn = [
|
||||||
|
"noctalia-shell"
|
||||||
|
"ipc"
|
||||||
|
"call"
|
||||||
|
"brightness"
|
||||||
|
"decrease"
|
||||||
|
];
|
||||||
allow-when-locked = true;
|
allow-when-locked = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
"Shift+XF86MonBrightnessUp" = {
|
"Shift+XF86MonBrightnessUp" = {
|
||||||
action.spawn = ["brightnessctl" "--class=backlight" "set" "+1%"];
|
action.spawn = [
|
||||||
|
"brightnessctl"
|
||||||
|
"--class=backlight"
|
||||||
|
"set"
|
||||||
|
"+1%"
|
||||||
|
];
|
||||||
allow-when-locked = true;
|
allow-when-locked = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
"Shift+XF86MonBrightnessDown" = {
|
"Shift+XF86MonBrightnessDown" = {
|
||||||
action.spawn = ["brightnessctl" "--class=backlight" "set" "1%-"];
|
action.spawn = [
|
||||||
|
"brightnessctl"
|
||||||
|
"--class=backlight"
|
||||||
|
"set"
|
||||||
|
"1%-"
|
||||||
|
];
|
||||||
allow-when-locked = true;
|
allow-when-locked = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
"XF86AudioPrev" = {
|
"XF86AudioPrev" = {
|
||||||
action.spawn = ["playerctl" "previous"];
|
action.spawn = [
|
||||||
|
"playerctl"
|
||||||
|
"previous"
|
||||||
|
];
|
||||||
allow-when-locked = true;
|
allow-when-locked = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
"XF86AudioPlay" = {
|
"XF86AudioPlay" = {
|
||||||
action.spawn = ["playerctl" "play-pause"];
|
action.spawn = [
|
||||||
|
"playerctl"
|
||||||
|
"play-pause"
|
||||||
|
];
|
||||||
allow-when-locked = true;
|
allow-when-locked = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
"XF86AudioNext" = {
|
"XF86AudioNext" = {
|
||||||
action.spawn = ["playerctl" "next"];
|
action.spawn = [
|
||||||
|
"playerctl"
|
||||||
|
"next"
|
||||||
|
];
|
||||||
allow-when-locked = true;
|
allow-when-locked = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -256,12 +289,23 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
"XF86Search" = {
|
"XF86Search" = {
|
||||||
action.spawn = ["noctalia-shell" "ipc" "call" "launcher" "toggle"];
|
action.spawn = [
|
||||||
|
"noctalia-shell"
|
||||||
|
"ipc"
|
||||||
|
"call"
|
||||||
|
"launcher"
|
||||||
|
"toggle"
|
||||||
|
];
|
||||||
allow-when-locked = true;
|
allow-when-locked = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
"XF86LaunchA" = {
|
"XF86LaunchA" = {
|
||||||
action.spawn = ["niri" "msg" "action" "toggle-overview"];
|
action.spawn = [
|
||||||
|
"niri"
|
||||||
|
"msg"
|
||||||
|
"action"
|
||||||
|
"toggle-overview"
|
||||||
|
];
|
||||||
allow-when-locked = true;
|
allow-when-locked = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
programs.noctalia-shell = {
|
programs.noctalia-shell = {
|
||||||
enable = true;
|
enable = true;
|
||||||
colors = {
|
colors = {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
|
let
|
||||||
script = pkgs.writeShellScript "bing-wallpaper" ''
|
script = pkgs.writeShellScript "bing-wallpaper" ''
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
|
@ -62,7 +63,8 @@
|
||||||
|
|
||||||
echo "Wallpaper downloaded and applied successfully."
|
echo "Wallpaper downloaded and applied successfully."
|
||||||
'';
|
'';
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
wpaperd
|
wpaperd
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
copyDesktopItems,
|
copyDesktopItems,
|
||||||
chromium,
|
chromium,
|
||||||
writeShellScriptBin,
|
writeShellScriptBin,
|
||||||
}: let
|
}:
|
||||||
|
let
|
||||||
pname = "spotify-webapp";
|
pname = "spotify-webapp";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,8 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
# this makes electron apps work per the wiki
|
# this makes electron apps work per the wiki
|
||||||
NIXOS_OZONE_WL = "1";
|
NIXOS_OZONE_WL = "1";
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
ddcutil
|
ddcutil
|
||||||
mangohud
|
mangohud
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
boot.kernelParams = [ "appledrm.show_notch=1" ];
|
boot.kernelParams = [ "appledrm.show_notch=1" ];
|
||||||
|
|
||||||
catppuccin = {
|
catppuccin = {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{catppuccin, ...}: {
|
{ catppuccin, ... }:
|
||||||
|
{
|
||||||
catppuccin = {
|
catppuccin = {
|
||||||
accent = "green";
|
accent = "green";
|
||||||
flavor = "mocha";
|
flavor = "mocha";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{pkgs, ...}: {
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
# This following block taken from the wiki:
|
# This following block taken from the wiki:
|
||||||
# https://nixos.wiki/wiki/Fish#Setting_fish_as_your_shell
|
# https://nixos.wiki/wiki/Fish#Setting_fish_as_your_shell
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,8 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
|
let
|
||||||
tailscaleWaitScript = pkgs.writeShellScript "tailscale-wait-for-ip" ''
|
tailscaleWaitScript = pkgs.writeShellScript "tailscale-wait-for-ip" ''
|
||||||
echo "Waiting for tailscale0 to get an IP address..."
|
echo "Waiting for tailscale0 to get an IP address..."
|
||||||
for i in {1..15}; do
|
for i in {1..15}; do
|
||||||
|
|
@ -20,7 +21,8 @@
|
||||||
echo "Warning: tailscale0 did not get IP address within 15 seconds"
|
echo "Warning: tailscale0 did not get IP address within 15 seconds"
|
||||||
exit 0
|
exit 0
|
||||||
'';
|
'';
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
systemd.services.tailscaled = {
|
systemd.services.tailscaled = {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStartPost = tailscaleWaitScript;
|
ExecStartPost = tailscaleWaitScript;
|
||||||
|
|
|
||||||
|
|
@ -4,13 +4,14 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
nixpkgs.overlays = lib.mkIf (config.nixpkgs.hostPlatform.isLinux) [
|
nixpkgs.overlays = lib.mkIf (config.nixpkgs.hostPlatform.isLinux) [
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
wrapLibrewolf = browser: opts: let
|
wrapLibrewolf =
|
||||||
extraPrefs =
|
browser: opts:
|
||||||
(opts.extraPrefs or "")
|
let
|
||||||
+ ''
|
extraPrefs = (opts.extraPrefs or "") + ''
|
||||||
lockPref("media.gmp-widevinecdm.version", "system-installed");
|
lockPref("media.gmp-widevinecdm.version", "system-installed");
|
||||||
lockPref("media.gmp-widevinecdm.visible", true);
|
lockPref("media.gmp-widevinecdm.visible", true);
|
||||||
lockPref("media.gmp-widevinecdm.enabled", true);
|
lockPref("media.gmp-widevinecdm.enabled", true);
|
||||||
|
|
@ -22,9 +23,7 @@
|
||||||
widevineOutDir = "$out/gmp-widevinecdm/system-installed";
|
widevineOutDir = "$out/gmp-widevinecdm/system-installed";
|
||||||
in
|
in
|
||||||
(prev.wrapLibrewolf browser (opts // { inherit extraPrefs; })).overrideAttrs (previousAttrs: {
|
(prev.wrapLibrewolf browser (opts // { inherit extraPrefs; })).overrideAttrs (previousAttrs: {
|
||||||
buildCommand =
|
buildCommand = previousAttrs.buildCommand + ''
|
||||||
previousAttrs.buildCommand
|
|
||||||
+ ''
|
|
||||||
mkdir -p "${widevineOutDir}"
|
mkdir -p "${widevineOutDir}"
|
||||||
ln -s "${widevineCdmDir}/_platform_specific/linux_arm64/libwidevinecdm.so" "${widevineOutDir}/libwidevinecdm.so"
|
ln -s "${widevineCdmDir}/_platform_specific/linux_arm64/libwidevinecdm.so" "${widevineOutDir}/libwidevinecdm.so"
|
||||||
ln -s "${widevineCdmDir}/manifest.json" "${widevineOutDir}/manifest.json"
|
ln -s "${widevineCdmDir}/manifest.json" "${widevineOutDir}/manifest.json"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue