Add oxalica overlay

This commit is contained in:
Riley Apeldoorn 2022-05-23 12:35:37 +02:00
parent b706942195
commit f398775552
5 changed files with 96 additions and 25 deletions

View File

@ -1,6 +1,7 @@
# Holds common settings for all systems. # Holds common settings for *all* systems, including both servers and
# clients.
{ ... }: { { pkgs, oxalica, ... }: {
nix = { nix = {
optimise.automatic = true; optimise.automatic = true;
@ -11,9 +12,26 @@
nixpkgs = { nixpkgs = {
config = { allowUnfree = true; }; config = { allowUnfree = true; };
overlays = [ (import ./overlays) ]; overlays = [
# Import overlays defined under the `overlays/` directory.
(import ./overlays)
# Clients need Rust for development, servers need Rust for
# deployment.
oxalica.overlay
];
}; };
boot.cleanTmpDir = true; boot.cleanTmpDir = true;
environment.systemPackages = [
# Include common packages I use everywhere, like `rg`
# and `exa`
(import ./env.nix { inherit pkgs; })
];
} }

View File

@ -1,5 +1,20 @@
{ {
"nodes": { "nodes": {
"flake-utils": {
"locked": {
"lastModified": 1637014545,
"narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
@ -48,10 +63,46 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_3": {
"locked": {
"lastModified": 1637453606,
"narHash": "sha256-Gy6cwUswft9xqsjWxFYEnx/63/qzaFUwatcbV5GF/GQ=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8afc4e543663ca0a6a4f496262cd05233737e732",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"oxalica": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1653273659,
"narHash": "sha256-dHXYaNL1axhZZyiZXxt1WKhvZrYXq7bjCs3y5VjgyGI=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "0fa3e01da1ce98e3b40063b8e2678095943402b1",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2",
"oxalica": "oxalica"
} }
} }
}, },

View File

@ -2,20 +2,27 @@
inputs = { inputs = {
# Living on the edge
nixpkgs = { nixpkgs = {
url = github:NixOS/nixpkgs/nixos-unstable; url = github:NixOS/nixpkgs/nixos-unstable;
}; };
# Used for managing dotfiles
home-manager = { home-manager = {
url = github:nix-community/home-manager; url = github:nix-community/home-manager;
}; };
# Rust overlay, for Rust development
oxalica = {
url = github:oxalica/rust-overlay;
};
}; };
outputs = args: with args.nixpkgs; { outputs = args: with args.nixpkgs; {
nixosConfigurations = { nixosConfigurations = {
# Desktop # Desktop client
"thor" = lib.nixosSystem { "thor" = lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
@ -25,7 +32,7 @@
specialArgs = args; specialArgs = args;
}; };
# Laptop # Dell XPS laptop client
"loki" = lib.nixosSystem { "loki" = lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [

View File

@ -36,8 +36,6 @@ let themeType =
}; };
}; };
utils = import ../env.nix { inherit pkgs; };
in { in {
options.riley = with lib; { options.riley = with lib; {
@ -136,9 +134,6 @@ in {
curl curl
git git
# Common utils (rg, sk, fd, etc.)
utils
]; ];
environment.shellAliases = { environment.shellAliases = {