This commit is contained in:
parent
4f36c42b22
commit
ad3ded339f
11 changed files with 103 additions and 73 deletions
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -1122,11 +1122,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_11": {
|
"nixpkgs_11": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768845192,
|
"lastModified": 1771067046,
|
||||||
"narHash": "sha256-TQH6ERJGCGEoYBALwU8hP0IhghsOoTtp+xFC9E54S3M=",
|
"narHash": "sha256-fYZMOngn9UX4dyhKcMEqqLjjw3x8T3v3hlYnnbEZh2E=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "2e606f2c977dd1f6b607eccfdb57fc249ddedc23",
|
"rev": "75c4807ebe5f9cad5622862f4f26ca73c069be06",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
35
flake.nix
35
flake.nix
|
|
@ -80,21 +80,10 @@
|
||||||
sops-nix,
|
sops-nix,
|
||||||
vpn-confinement,
|
vpn-confinement,
|
||||||
home-manager,
|
home-manager,
|
||||||
mapf,
|
|
||||||
nixvim,
|
|
||||||
t,
|
|
||||||
dumpasm,
|
|
||||||
jujutsu,
|
|
||||||
pipethon,
|
|
||||||
niri,
|
|
||||||
niri-unstable,
|
|
||||||
matugen,
|
|
||||||
noctalia,
|
|
||||||
firefox-addons,
|
|
||||||
raw-data,
|
|
||||||
...
|
...
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
|
custom = pkgs: import ./pkgs/custom.nix (inputs // { inherit pkgs; });
|
||||||
pkgsForSystem =
|
pkgsForSystem =
|
||||||
system:
|
system:
|
||||||
import nixpkgs {
|
import nixpkgs {
|
||||||
|
|
@ -102,16 +91,7 @@
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
overlays = [
|
overlays = [
|
||||||
(pkgs: _: {
|
(pkgs: _: {
|
||||||
custom = {
|
custom = custom pkgs;
|
||||||
t = t.packages.${system}.default;
|
|
||||||
inherit (dumpasm.packages.${system}) dumpasm;
|
|
||||||
inherit (jujutsu.packages.${system}) jujutsu;
|
|
||||||
pipethon = pipethon.packages.${system}.python;
|
|
||||||
niri = niri-unstable.packages.${system}.niri;
|
|
||||||
raw-data = raw-data.packages.${system}.default;
|
|
||||||
maple-mono = pkgs.maple-mono;
|
|
||||||
};
|
|
||||||
p1n3appl3 = inputs.p1n3appl3.packages.${system};
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
@ -126,10 +106,11 @@
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixpkgs = pkgsForSystem system;
|
nixpkgs = pkgsForSystem system;
|
||||||
|
specialArgs = {
|
||||||
specialArgs.flakes = inputs;
|
flakes = inputs;
|
||||||
specialArgs.inputs = inputs;
|
inherit inputs;
|
||||||
specialArgs.secrets = inputs.secrets.packages.${system}.secrets;
|
inherit (inputs.secrets.packages.${system}) secrets;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
fili = {
|
fili = {
|
||||||
|
|
@ -188,7 +169,7 @@
|
||||||
];
|
];
|
||||||
shellHook = "exec $NIX_BUILD_SHELL";
|
shellHook = "exec $NIX_BUILD_SHELL";
|
||||||
};
|
};
|
||||||
|
packages = custom pkgs;
|
||||||
formatter = pkgs.nixfmt;
|
formatter = pkgs.nixfmt;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -108,11 +108,15 @@
|
||||||
"nvidia"
|
"nvidia"
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.graphics.enable = true;
|
hardware.graphics = {
|
||||||
hardware.graphics.extraPackages = with pkgs; [
|
enable = true;
|
||||||
|
extraPackages = with pkgs; [
|
||||||
libva-vdpau-driver
|
libva-vdpau-driver
|
||||||
intel-media-driver
|
intel-media-driver
|
||||||
|
intel-vaapi-driver
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
LIBVA_DRIVER_NAME = "iHD";
|
LIBVA_DRIVER_NAME = "iHD";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
1
no current target
Normal file
1
no current target
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Ptmux;_Gq=2,a=d,d=a\\
|
||||||
24
pkgs/custom.nix
Normal file
24
pkgs/custom.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
t,
|
||||||
|
dumpasm,
|
||||||
|
jujutsu,
|
||||||
|
pipethon,
|
||||||
|
niri-unstable,
|
||||||
|
raw-data,
|
||||||
|
p1n3appl3,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}@inputs:
|
||||||
|
let
|
||||||
|
inherit (pkgs) system;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
t = t.packages.${system}.default;
|
||||||
|
inherit (dumpasm.packages.${system}) dumpasm;
|
||||||
|
inherit (jujutsu.packages.${system}) jujutsu;
|
||||||
|
inherit (niri-unstable.packages.${system}) niri;
|
||||||
|
pipethon = pipethon.packages.${system}.python;
|
||||||
|
raw-data = raw-data.packages.${system}.default;
|
||||||
|
p1n3appl3 = p1n3appl3.packages.${system};
|
||||||
|
}
|
||||||
|
// (import ./maple.nix inputs)
|
||||||
29
pkgs/maple.nix
Normal file
29
pkgs/maple.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
hashes = {
|
||||||
|
"MapleMono-TTF" = "sha256-xKGw8fYpcBj0PNqEqz0VKIFebQc9QcIXmLtiVessHtM=";
|
||||||
|
"MapleMono-NF-unhinted" = "sha256-1H7w/Ky10TG3rAS7tNAnpWy30xYlhT7MdxLNCQraiTg=";
|
||||||
|
"MapleMono-NF-CN-unhinted" = "sha256-Zp4C8JJrCjGLGa1Il1J5RaqpFwu7hO0AETU6IDqoSX8=";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
rec {
|
||||||
|
maple-mono = pkgs.lib.mapAttrs (
|
||||||
|
_: maple-pkg:
|
||||||
|
maple-pkg.overrideAttrs (
|
||||||
|
prev: _: {
|
||||||
|
version = "1.0.1+custom";
|
||||||
|
src = pkgs.fetchurl {
|
||||||
|
url = "https://github.com/jdonszelmann/Maple-font/releases/download/v1.0.1/${prev.pname}.zip";
|
||||||
|
hash = hashes.${prev.pname};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)
|
||||||
|
) pkgs.maple-mono;
|
||||||
|
maple-fonts-pack = [
|
||||||
|
maple-mono.truetype
|
||||||
|
# Maple Mono NF (Ligature unhinted)
|
||||||
|
maple-mono.NF-unhinted
|
||||||
|
# Maple Mono NF CN (Ligature unhinted)
|
||||||
|
maple-mono.NF-CN-unhinted
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -151,7 +151,7 @@ _: {
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
p1n3appl3.tab
|
custom.p1n3appl3.tab
|
||||||
prismlauncher
|
prismlauncher
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
@ -195,6 +195,7 @@ _: {
|
||||||
tokei
|
tokei
|
||||||
just
|
just
|
||||||
uv
|
uv
|
||||||
|
llvmPackages.bintools
|
||||||
|
|
||||||
(writeShellScriptBin "nas" ''
|
(writeShellScriptBin "nas" ''
|
||||||
mkdir -p ~/Documents/nas
|
mkdir -p ~/Documents/nas
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,7 @@ _: {
|
||||||
custom.program.kitty.home-config =
|
custom.program.kitty.home-config =
|
||||||
{ pkgs, flakes, ... }:
|
{ pkgs, flakes, ... }:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = pkgs.custom.maple-fonts-pack;
|
||||||
# Maple Mono (Ligature TTF unhinted)
|
|
||||||
custom.maple-mono.truetype
|
|
||||||
# Maple Mono NF (Ligature unhinted)
|
|
||||||
custom.maple-mono.NF-unhinted
|
|
||||||
# Maple Mono NF CN (Ligature unhinted)
|
|
||||||
custom.maple-mono.NF-CN-unhinted
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,9 @@ _: {
|
||||||
flakes.noctalia.homeModules.default
|
flakes.noctalia.homeModules.default
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages =
|
||||||
|
with pkgs;
|
||||||
|
[
|
||||||
matugen
|
matugen
|
||||||
glib
|
glib
|
||||||
dconf
|
dconf
|
||||||
|
|
@ -39,18 +41,17 @@ _: {
|
||||||
# qt config tool
|
# qt config tool
|
||||||
kdePackages.qt6ct
|
kdePackages.qt6ct
|
||||||
|
|
||||||
|
# media control
|
||||||
|
playerctl
|
||||||
|
# brightness control
|
||||||
|
brightnessctl
|
||||||
|
|
||||||
fira
|
fira
|
||||||
jetbrains-mono
|
jetbrains-mono
|
||||||
fira-mono
|
fira-mono
|
||||||
noto-fonts
|
noto-fonts
|
||||||
|
]
|
||||||
# Maple Mono (Ligature TTF unhinted)
|
++ custom.maple-fonts-pack;
|
||||||
custom.maple-mono.truetype
|
|
||||||
# Maple Mono NF (Ligature unhinted)
|
|
||||||
custom.maple-mono.NF-unhinted
|
|
||||||
# Maple Mono NF CN (Ligature unhinted)
|
|
||||||
custom.maple-mono.NF-CN-unhinted
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.niri.settings = {
|
programs.niri.settings = {
|
||||||
# main laptop screen
|
# main laptop screen
|
||||||
|
|
@ -127,6 +128,7 @@ _: {
|
||||||
layout = {
|
layout = {
|
||||||
gaps = 5;
|
gaps = 5;
|
||||||
center-focused-column = "never";
|
center-focused-column = "never";
|
||||||
|
always-center-single-column = true;
|
||||||
|
|
||||||
preset-column-widths = [
|
preset-column-widths = [
|
||||||
{ proportion = 0.33333; }
|
{ proportion = 0.33333; }
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,8 @@ in
|
||||||
{
|
{
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
plugins = {
|
plugins = {
|
||||||
|
ansiesc.enable = true;
|
||||||
|
|
||||||
treesitter-textobjects = {
|
treesitter-textobjects = {
|
||||||
enable = false;
|
enable = false;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,7 @@ _: {
|
||||||
custom.program.zed.home-config =
|
custom.program.zed.home-config =
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = pkgs.custom.maple-fonts-pack;
|
||||||
# Maple Mono (Ligature TTF unhinted)
|
|
||||||
custom.maple-mono.truetype
|
|
||||||
# Maple Mono NF (Ligature unhinted)
|
|
||||||
custom.maple-mono.NF-unhinted
|
|
||||||
# Maple Mono NF CN (Ligature unhinted)
|
|
||||||
custom.maple-mono.NF-CN-unhinted
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.zed-editor = {
|
programs.zed-editor = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue