run format
This commit is contained in:
parent
800f63b000
commit
40840a8084
15 changed files with 661 additions and 614 deletions
21
flake.lock
21
flake.lock
|
@ -595,6 +595,7 @@
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"nvf": "nvf",
|
"nvf": "nvf",
|
||||||
"rust-overlay": "rust-overlay_2",
|
"rust-overlay": "rust-overlay_2",
|
||||||
|
"zen-browser": "zen-browser",
|
||||||
"zig": "zig",
|
"zig": "zig",
|
||||||
"zls": "zls"
|
"zls": "zls"
|
||||||
}
|
}
|
||||||
|
@ -845,6 +846,26 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"zen-browser": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1748059546,
|
||||||
|
"narHash": "sha256-e0jy8RU8ofOdeS5gF9Hir+M5Wn0q7D8MkpeQXsOJdu4=",
|
||||||
|
"owner": "youwen5",
|
||||||
|
"repo": "zen-browser-flake",
|
||||||
|
"rev": "716a5af28d686d67146d01b14112c919b6133a84",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "youwen5",
|
||||||
|
"repo": "zen-browser-flake",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"zig": {
|
"zig": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
|
|
25
flake.nix
25
flake.nix
|
@ -29,6 +29,10 @@
|
||||||
moonlight.url = "github:moonlight-mod/moonlight"; # Add `/develop` to the flake URL to use nightly.
|
moonlight.url = "github:moonlight-mod/moonlight"; # Add `/develop` to the flake URL to use nightly.
|
||||||
moonlight.inputs.nixpkgs.follows = "nixpkgs";
|
moonlight.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
zen-browser = {
|
||||||
|
url = "github:youwen5/zen-browser-flake";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
nh.url = "github:viperML/nh";
|
nh.url = "github:viperML/nh";
|
||||||
nh.inputs.nixpkgs.follows = "nixpkgs";
|
nh.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
@ -37,13 +41,15 @@
|
||||||
nix-index-database.url = "github:nix-community/nix-index-database";
|
nix-index-database.url = "github:nix-community/nix-index-database";
|
||||||
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
|
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
outputs = {
|
outputs =
|
||||||
|
{
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
lix-module,
|
lix-module,
|
||||||
darwin,
|
darwin,
|
||||||
...
|
...
|
||||||
} @ inputs: let
|
}@inputs:
|
||||||
|
let
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
# TODO: apply these overlays sooner and remove uses of legacyPackages elsewhere.
|
# TODO: apply these overlays sooner and remove uses of legacyPackages elsewhere.
|
||||||
overlays = [
|
overlays = [
|
||||||
|
@ -69,7 +75,8 @@
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
"aarch64-darwin"
|
"aarch64-darwin"
|
||||||
];
|
];
|
||||||
forAllSystems = f:
|
forAllSystems =
|
||||||
|
f:
|
||||||
builtins.listToAttrs (
|
builtins.listToAttrs (
|
||||||
builtins.map (system: {
|
builtins.map (system: {
|
||||||
name = system;
|
name = system;
|
||||||
|
@ -80,8 +87,7 @@
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
})
|
}) systems
|
||||||
systems
|
|
||||||
);
|
);
|
||||||
|
|
||||||
mkSystem = import ./lib/mkSystem.nix {
|
mkSystem = import ./lib/mkSystem.nix {
|
||||||
|
@ -101,7 +107,8 @@
|
||||||
inputs
|
inputs
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
in rec {
|
in
|
||||||
|
rec {
|
||||||
inherit self;
|
inherit self;
|
||||||
# "nix fmt"
|
# "nix fmt"
|
||||||
formatter = forAllSystems (inputs: inputs.pkgs.nixfmt-tree);
|
formatter = forAllSystems (inputs: inputs.pkgs.nixfmt-tree);
|
||||||
|
@ -148,9 +155,11 @@
|
||||||
# generate checks for "nix flake check --all-systems --no-build"
|
# generate checks for "nix flake check --all-systems --no-build"
|
||||||
checks.aarch64-darwin = builtins.listToAttrs (
|
checks.aarch64-darwin = builtins.listToAttrs (
|
||||||
builtins.map (
|
builtins.map (
|
||||||
name: let
|
name:
|
||||||
|
let
|
||||||
d = darwinConfigurations.${name}.system;
|
d = darwinConfigurations.${name}.system;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
name = "darwinConfiguration-" + d.name;
|
name = "darwinConfiguration-" + d.name;
|
||||||
value = d;
|
value = d;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
# TODO: apply overlays here
|
# TODO: apply overlays here
|
||||||
overlays,
|
overlays,
|
||||||
inputs,
|
inputs,
|
||||||
}: user: system: let
|
}:
|
||||||
|
user: system:
|
||||||
|
let
|
||||||
darwin = nixpkgs.lib.strings.hasSuffix "-darwin" system;
|
darwin = nixpkgs.lib.strings.hasSuffix "-darwin" system;
|
||||||
|
|
||||||
host = {
|
host = {
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
host,
|
host,
|
||||||
mainHomeImports,
|
mainHomeImports,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
|
let
|
||||||
cfg = config.programs;
|
cfg = config.programs;
|
||||||
in {
|
in
|
||||||
imports =
|
{
|
||||||
mainHomeImports
|
imports = mainHomeImports ++ [
|
||||||
++ [
|
|
||||||
./macos/sketchybar.nix
|
./macos/sketchybar.nix
|
||||||
];
|
];
|
||||||
programs = {
|
programs = {
|
||||||
|
|
|
@ -4,13 +4,16 @@
|
||||||
config,
|
config,
|
||||||
host,
|
host,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
home.file =
|
home.file =
|
||||||
{ }
|
{ }
|
||||||
// lib.optionalAttrs host.darwin (
|
// lib.optionalAttrs host.darwin (
|
||||||
lib.attrsets.mapAttrs (file: value: (
|
lib.attrsets.mapAttrs
|
||||||
lib.attrsets.overrideExisting value {enable = config.shared.darwin.tiling.enable;}
|
(
|
||||||
)) {
|
file: value: (lib.attrsets.overrideExisting value { enable = config.shared.darwin.tiling.enable; })
|
||||||
|
)
|
||||||
|
{
|
||||||
sketchybarrc = {
|
sketchybarrc = {
|
||||||
executable = true;
|
executable = true;
|
||||||
target = ".config/sketchybar/sketchybarrc";
|
target = ".config/sketchybar/sketchybarrc";
|
||||||
|
|
|
@ -4,9 +4,11 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
|
let
|
||||||
tiling = config.shared.darwin.tiling.enable;
|
tiling = config.shared.darwin.tiling.enable;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
# Use touchid or watch to activate sudo
|
# Use touchid or watch to activate sudo
|
||||||
security.pam.services.sudo_local = {
|
security.pam.services.sudo_local = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{pkgs, ...}: {
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
services = {
|
services = {
|
||||||
avahi = {
|
avahi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{inputs, ...}: {
|
{ inputs, ... }:
|
||||||
|
{
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
user,
|
user,
|
||||||
host,
|
host,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
programs.mangohud.enable = true;
|
||||||
home = {
|
home = {
|
||||||
stateVersion = "23.05"; # Please read the comment before changing.
|
stateVersion = "23.05"; # Please read the comment before changing.
|
||||||
|
|
||||||
|
@ -29,6 +30,7 @@
|
||||||
wineWowPackages.stable
|
wineWowPackages.stable
|
||||||
winetricks
|
winetricks
|
||||||
(prismlauncher.override { gamemodeSupport = true; })
|
(prismlauncher.override { gamemodeSupport = true; })
|
||||||
|
umu-launcher
|
||||||
|
|
||||||
#window manager stuff
|
#window manager stuff
|
||||||
wofi
|
wofi
|
||||||
|
@ -50,8 +52,8 @@
|
||||||
signal-desktop
|
signal-desktop
|
||||||
inputs.zls.packages.x86_64-linux.zls
|
inputs.zls.packages.x86_64-linux.zls
|
||||||
rust-bin.stable.latest.default
|
rust-bin.stable.latest.default
|
||||||
|
inputs.zen-browser.packages.x86_64-linux.default
|
||||||
];
|
];
|
||||||
# programs.mangohud.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# xdg.mimeApps.defaultApplications."inode/directory" = "dolphin.desktop";
|
# xdg.mimeApps.defaultApplications."inode/directory" = "dolphin.desktop";
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
} @ args: {
|
}@args:
|
||||||
|
{
|
||||||
programs = {
|
programs = {
|
||||||
# sort-lines:start
|
# sort-lines:start
|
||||||
atuin.enable = true;
|
atuin.enable = true;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{pkgs, ...}: {
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
pinentry_mac
|
pinentry_mac
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{...}: {
|
{ ... }:
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./keybinds.nix
|
./keybinds.nix
|
||||||
./languages.nix
|
./languages.nix
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{pkgs, ...}: {
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
vim = {
|
vim = {
|
||||||
lazy.plugins."lean.nvim" = {
|
lazy.plugins."lean.nvim" = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{pkgs, ...}: {
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
vim = {
|
vim = {
|
||||||
visuals = {
|
visuals = {
|
||||||
indent-blankline = {
|
indent-blankline = {
|
||||||
|
|
Loading…
Reference in a new issue