mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
config: improve parts of the codebase
This commit is contained in:
parent
201a4bc1b6
commit
193a4796ed
12
flake.nix
12
flake.nix
@ -11,11 +11,12 @@
|
||||
inputs = {
|
||||
# I know NixOS can be stable but we're going cutting edge, baybee! While
|
||||
# `nixpkgs-unstable` branch could be faster delivering updates, it is
|
||||
# looser when it comes to stability for the entirety of this configuration.
|
||||
# looser when it comes to stability for the entirety of this
|
||||
# configuration...
|
||||
nixpkgs.follows = "nixos-unstable";
|
||||
|
||||
# Here are the nixpkgs variants used for creating the system configuration
|
||||
# in `mkHost`.
|
||||
# ...except we allow other configurations to use other nixpkgs branch so
|
||||
# that may not matter anyways.
|
||||
nixos-stable.url = "github:NixOS/nixpkgs/nixos-23.11";
|
||||
nixos-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
nixos-unstable-small.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
||||
@ -220,6 +221,7 @@
|
||||
inputs.nur.hmModules.nur
|
||||
inputs.sops-nix.homeManagerModules.sops
|
||||
inputs.nix-index-database.hmModules.nix-index
|
||||
inputs.nix-colors.homeManagerModules.default
|
||||
];
|
||||
|
||||
# Set some extra, yeah?
|
||||
@ -451,10 +453,10 @@
|
||||
inputs.nur.overlay
|
||||
];
|
||||
};
|
||||
in {
|
||||
in import ./shells { inherit pkgs; } // {
|
||||
default = import ./shell.nix { inherit pkgs; };
|
||||
docs = import ./docs/shell.nix { inherit pkgs; };
|
||||
} // (import ./shells { inherit pkgs; }));
|
||||
});
|
||||
|
||||
# Cookiecutter templates for your mama.
|
||||
templates = {
|
||||
|
@ -4,7 +4,6 @@
|
||||
# settings of whatever image format configuration this host system will import
|
||||
# from nixos-generators.
|
||||
let
|
||||
inherit (builtins) toString;
|
||||
inherit (import ../hardware/networks.nix) interfaces;
|
||||
|
||||
# This is just referring to the same interface just with alternative names.
|
||||
|
@ -95,7 +95,7 @@ in {
|
||||
# A fuzzy finder that enables fuzzy finding not furry finding, a common misconception.
|
||||
programs.fzf =
|
||||
let
|
||||
fd = "${lib.getBin pkgs.fd}/bin/fd";
|
||||
fd = lib.getExe' pkgs.fd "fd";
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
|
Loading…
Reference in New Issue
Block a user