mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 22:30:25 +01:00
chore: format code
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
home = {
|
||||
inherit username;
|
||||
|
||||
|
||||
# This value determines the Home Manager release that your
|
||||
# configuration is compatible with. This helps avoid breakage
|
||||
# when a new Home Manager release introduces backwards
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# general tools
|
||||
pulumi
|
||||
pulumictl
|
||||
packer # machine image builder
|
||||
packer # machine image builder
|
||||
|
||||
# aws
|
||||
awscli2
|
||||
|
||||
@@ -30,11 +30,10 @@
|
||||
};
|
||||
|
||||
# consistent with wezterm
|
||||
keybindings =
|
||||
{
|
||||
"ctrl+shift+m" = "toggle_maximized";
|
||||
"ctrl+shift+f" = "show_scrollback"; # search in the current window
|
||||
};
|
||||
keybindings = {
|
||||
"ctrl+shift+m" = "toggle_maximized";
|
||||
"ctrl+shift+f" = "show_scrollback"; # search in the current window
|
||||
};
|
||||
|
||||
settings = {
|
||||
background_opacity = "0.93";
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
gnugrep # GNU grep, provides `grep`/`egrep`/`fgrep`
|
||||
gnused # GNU sed, very powerful(mainly for replacing text in files)
|
||||
gnumake
|
||||
just # a command runner like make, but simpler
|
||||
just # a command runner like make, but simpler
|
||||
gawk # GNU awk, a pattern scanning and processing language
|
||||
sad # CLI search and replace, with diff preview, really useful!!!
|
||||
delta # A viewer for git and diff output
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
|
||||
{config, username, ...}: let
|
||||
{
|
||||
config,
|
||||
username,
|
||||
...
|
||||
}: let
|
||||
d = config.xdg.dataHome;
|
||||
c = config.xdg.configHome;
|
||||
cache = config.xdg.cacheHome;
|
||||
in rec {
|
||||
|
||||
home.homeDirectory = "/home/${username}";
|
||||
|
||||
# environment variables that always set at login
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
{pkgs, pkgs-unstable, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
pkgs-unstable,
|
||||
...
|
||||
}: {
|
||||
home.packages = with pkgs; [
|
||||
# GUI apps
|
||||
# e-book viewer(.epub/.mobi/...)
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
];
|
||||
|
||||
hardware.firmware = [
|
||||
(import ./brcm-firmware { inherit pkgs;})
|
||||
(import ./brcm-firmware {inherit pkgs;})
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod"];
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
{
|
||||
nixos-rk3588,
|
||||
...
|
||||
}:
|
||||
{nixos-rk3588, ...}:
|
||||
#############################################################
|
||||
#
|
||||
# Aquamarine - A NixOS VM running on Proxmox
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
|
||||
# doom-emacs
|
||||
".config/emacs"
|
||||
"org" # org files
|
||||
"org" # org files
|
||||
|
||||
# browsers
|
||||
".mozilla"
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
(lib.attrsets.filterAttrs
|
||||
(
|
||||
path: _type:
|
||||
(_type == "directory") # include directories
|
||||
(_type == "directory") # include directories
|
||||
|| (
|
||||
(path != "default.nix") # ignore default.nix
|
||||
&& (lib.strings.hasSuffix ".nix" path) # include .nix files
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
{lib, nixpkgs, ...}: {
|
||||
{
|
||||
lib,
|
||||
nixpkgs,
|
||||
...
|
||||
}: {
|
||||
# make `nix run nixpkgs#nixpkgs` use the same nixpkgs as the one used by this flake.
|
||||
nix.registry.nixpkgs.flake = nixpkgs;
|
||||
nix.channel.enable = false; # remove nix-channel related tools & configs, we use flakes instead.
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
"adbusers"
|
||||
"libvirtd"
|
||||
];
|
||||
|
||||
};
|
||||
users.users.root = {
|
||||
initialHashedPassword = "$7$CU..../....X6uvZYnFD.i1CqqFFNl4./$4vgqzIPyw5XBr0aCDFbY/UIRRJr7h5SMGoQ/ZvX3FP2";
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
# nixos-hardware.nixosModules.apple-t2
|
||||
({pkgs, ...}: {
|
||||
networking.hostName = "shoukei";
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest; # Use latest kernel for the initial installation.
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest; # Use latest kernel for the initial installation.
|
||||
# hardware.apple-t2.enableAppleSetOsLoader = true;
|
||||
})
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
source = config.age.secrets."wg-business.conf".path;
|
||||
};
|
||||
|
||||
"agenix/ssh-key-romantic" = {
|
||||
"agenix/ssh-key-romantic" = {
|
||||
source = config.age.secrets."ssh-key-romantic".path;
|
||||
};
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
source = config.age.secrets."wg-business.conf".path;
|
||||
};
|
||||
|
||||
"agenix/ssh-key-romantic" = {
|
||||
"agenix/ssh-key-romantic" = {
|
||||
source = config.age.secrets."ssh-key-romantic".path;
|
||||
mode = "0600";
|
||||
user = username;
|
||||
|
||||
Reference in New Issue
Block a user