bunch of random stuff

This commit is contained in:
RingOfStorms (Josh) 2024-05-13 00:15:14 -05:00
parent f1a43e1b80
commit acb556f98f
7 changed files with 112 additions and 49 deletions

64
flake.lock generated
View file

@ -86,6 +86,24 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_2": {
"inputs": {
"systems": "systems_3"
},
"locked": {
"lastModified": 1705309234,
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -210,14 +228,15 @@
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ],
"nvim_plugin-chrisgrieser/nvim-early-retirement": "nvim_plugin-chrisgrieser/nvim-early-retirement" "nvim_plugin-chrisgrieser/nvim-early-retirement": "nvim_plugin-chrisgrieser/nvim-early-retirement",
"rust-overlay": "rust-overlay_2"
}, },
"locked": { "locked": {
"lastModified": 1715363339, "lastModified": 1715576186,
"narHash": "sha256-xnj/A1soOLbZ2ilb2+6yvTnNFWBNl3UuVff0fFyMXww=", "narHash": "sha256-taN5/bY6xDXA7+z0GJE0q24Lt/2zEJIetKfvrkpgHAo=",
"owner": "RingOfStorms", "owner": "RingOfStorms",
"repo": "nvim", "repo": "nvim",
"rev": "d92d753a6101733748c59f26fc7b1517678e4e59", "rev": "20633579746615fa55c6c6b8dfdf45899095aca0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -261,6 +280,28 @@
"type": "github" "type": "github"
} }
}, },
"rust-overlay_2": {
"inputs": {
"flake-utils": "flake-utils_2",
"nixpkgs": [
"ringofstorms-nvim",
"nixpkgs"
]
},
"locked": {
"lastModified": 1715566659,
"narHash": "sha256-OpI0TnN+uE0vvxjPStlTzf5RTohIXVSMwrP9NEgMtaY=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "6c465248316cd31502c82f81f1a3acf2d621b01c",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"systems": { "systems": {
"locked": { "locked": {
"lastModified": 1681028828, "lastModified": 1681028828,
@ -290,6 +331,21 @@
"repo": "default", "repo": "default",
"type": "github" "type": "github"
} }
},
"systems_3": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -1,20 +1,29 @@
{ config, lib, pkgs, settings, ylib, ... } @ inputs: {
config,
lib,
pkgs,
settings,
ylib,
...
}@inputs:
let let
defaultLocal = "en_US.UTF-8"; defaultLocal = "en_US.UTF-8";
in in
{ {
imports = imports = [
[ # Secrets management
# Secrets management ./ragenix.nix
./ragenix.nix # Include the results of the hardware scan.
# Include the results of the hardware scan. (/${settings.hostsDir}/${settings.system.hostname}/hardware-configuration.nix)
(/${settings.hostsDir}/${settings.system.hostname}/hardware-configuration.nix) # Include the specific machine's config.
# Include the specific machine's config. (/${settings.hostsDir}/${settings.system.hostname}/configuration.nix)
(/${settings.hostsDir}/${settings.system.hostname}/configuration.nix) ];
];
# Enable flakes # Enable flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [
"nix-command"
"flakes"
];
# ========== # ==========
# Common # Common
@ -54,7 +63,7 @@ in
vim vim
wget wget
curl curl
neofetch fastfetch
bat bat
htop htop
unzip unzip
@ -97,6 +106,9 @@ in
rg = "rg --no-ignore"; rg = "rg --no-ignore";
rgf = "rg --files 2>/dev/null | rg"; rgf = "rg --files 2>/dev/null | rg";
# Neofetch is dead
neo = "fastfetch";
# Nix deprecations # Nix deprecations
nix-hash = "echo 'The functionality of nix-hash may be covered by various subcommands or options in the new `nix` command.'"; nix-hash = "echo 'The functionality of nix-hash may be covered by various subcommands or options in the new `nix` command.'";
nix-build = "echo 'Use `nix build` instead.'"; nix-build = "echo 'Use `nix build` instead.'";

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 B

View file

@ -1,4 +1,9 @@
{ lib, ylib, settings, ... }: {
lib,
ylib,
settings,
...
}:
{ {
imports = imports =
[ ] [ ]
@ -20,7 +25,13 @@
home-manager.users.${settings.user.username} = { home-manager.users.${settings.user.username} = {
imports = imports =
[ ] [
(settings.usersDir + "/_common/components/home_manager/tmux/tmux.nix")
(settings.usersDir + "/_common/components/home_manager/atuin.nix")
(settings.usersDir + "/_common/components/home_manager/starship.nix")
(settings.usersDir + "/_common/components/home_manager/zoxide.nix")
(settings.usersDir + "/_common/components/home_manager/zsh.nix")
]
# Common home manager # Common home manager
++ ylib.umport { ++ ylib.umport {
path = lib.fileset.maybeMissing (settings.usersDir + "/_common/home_manager"); path = lib.fileset.maybeMissing (settings.usersDir + "/_common/home_manager");
@ -38,4 +49,3 @@
}; };
}; };
} }

View file

@ -1,12 +0,0 @@
{ settings, ... }:
{
imports = [
(settings.usersDir + "/_common/components/home_manager/tmux/tmux.nix")
(settings.usersDir + "/_common/components/home_manager/atuin.nix")
(settings.usersDir + "/_common/components/home_manager/starship.nix")
(settings.usersDir + "/_common/components/home_manager/zoxide.nix")
(settings.usersDir + "/_common/components/home_manager/zsh.nix")
];
}

View file

@ -1,4 +1,9 @@
{ lib, ylib, settings, ... }: {
lib,
ylib,
settings,
...
}:
{ {
imports = imports =
[ ] [ ]
@ -20,7 +25,13 @@
home-manager.users.${settings.user.username} = { home-manager.users.${settings.user.username} = {
imports = imports =
[ ] [
(settings.usersDir + "/_common/components/home_manager/tmux/tmux.nix")
(settings.usersDir + "/_common/components/home_manager/atuin.nix")
(settings.usersDir + "/_common/components/home_manager/starship.nix")
(settings.usersDir + "/_common/components/home_manager/zoxide.nix")
(settings.usersDir + "/_common/components/home_manager/zsh.nix")
]
# Common home manager # Common home manager
++ ylib.umport { ++ ylib.umport {
path = lib.fileset.maybeMissing (settings.usersDir + "/_common/home_manager"); path = lib.fileset.maybeMissing (settings.usersDir + "/_common/home_manager");
@ -38,5 +49,3 @@
}; };
}; };
} }

View file

@ -1,12 +0,0 @@
{ settings, ... }:
{
imports = [
(settings.usersDir + "/_common/components/home_manager/tmux/tmux.nix")
(settings.usersDir + "/_common/components/home_manager/atuin.nix")
(settings.usersDir + "/_common/components/home_manager/starship.nix")
(settings.usersDir + "/_common/components/home_manager/zoxide.nix")
(settings.usersDir + "/_common/components/home_manager/zsh.nix")
];
}