Skip to content

Commit

Permalink
refac(nix): nixpkgs-unstable -> nixos-unstable
Browse files Browse the repository at this point in the history
`nixos-unstable` seems to be the slightly more "stable" channel with a
number of NixOS-specific tests being run only there.
It also doesn't contain MacOS packages, so has a smaller overhead and is
the basis for many indexes such as search.nixos.org.
  • Loading branch information
workflow committed Aug 5, 2024
1 parent eac9c85 commit f878375
Show file tree
Hide file tree
Showing 10 changed files with 200 additions and 219 deletions.
32 changes: 16 additions & 16 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 5 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
};
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs-2311.url = "github:nixos/nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixos-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:nixos/nixos-hardware/master";
rmob = {
url = "https://flakehub.com/f/workflow/rmob/*.tar.gz";
Expand All @@ -23,18 +23,15 @@
};

outputs = {
self,
nix-index-database,
nixpkgs,
nixpkgs-2311,
nixpkgs-unstable,
nixos-hardware,
nixos-unstable,
home-manager,
secrets,
...
} @ inputs: let
overlays = {
unstable = import nixpkgs-unstable {
unstable = import nixos-unstable {
system = "x86_64-linux";
config.allowUnfree = true;
};
Expand All @@ -55,7 +52,7 @@
nix = {
registry = {
nixpkgs-local.flake = nixpkgs;
nixpkgs-unstable-local.flake = nixpkgs-unstable;
nixos-unstable-local.flake = nixos-unstable;
};
};

Expand Down Expand Up @@ -97,7 +94,7 @@
nix = {
registry = {
nixpkgs-local.flake = nixpkgs;
nixpkgs-unstable-local.flake = nixpkgs-unstable;
nixos-unstable-local.flake = nixos-unstable;
};
};

Expand Down
4 changes: 1 addition & 3 deletions home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@
]
++ secretImports;

nixpkgs-unstable = pkgs.unstable;

profile = pkgs.callPackage ./lib/profile.nix {};

scripts = pkgs.callPackage ./home/scripts {};
Expand Down Expand Up @@ -244,7 +242,7 @@ in {
lorri.enable = true;

flameshot = {
package = nixpkgs-unstable.flameshot;
package = pkgs.unstable.flameshot;
enable = true;
settings = {
General = {
Expand Down
4 changes: 1 addition & 3 deletions home/autorandr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
pkgs,
...
}: let
nixpkgs-unstable = pkgs.unstable;

baseHook = ''
pkill -9 variety 2> /dev/null
variety &>/dev/null &
Expand All @@ -28,7 +26,7 @@ in {
if isHidpi
then hidpiHook
else baseHook;
notify-i3 = "${nixpkgs-unstable.i3-gaps}/bin/i3-msg restart";
notify-i3 = "${pkgs.unstable.i3-gaps}/bin/i3-msg restart";
change-dpi = ''
case "$AUTORANDR_CURRENT_PROFILE" in
movie)
Expand Down
6 changes: 2 additions & 4 deletions home/gtk-qt/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{pkgs, ...}: let
nixpkgs-unstable = pkgs.unstable;
in {
{pkgs, ...}: {
gtk = {
enable = true;
font = {
Expand All @@ -9,7 +7,7 @@ in {
};
iconTheme = {
name = "Pop";
package = nixpkgs-unstable.pop-icon-theme;
package = pkgs.unstable.pop-icon-theme;
};
theme = {
name = "Pop";
Expand Down
6 changes: 2 additions & 4 deletions home/lf.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{pkgs, ...}: let
nixpkgs-unstable = pkgs.unstable;
in {
{pkgs, ...}: {
programs.lf = {
enable = true;

Expand Down Expand Up @@ -148,7 +146,7 @@ in {

previewer = {
keybinding = "i";
source = "${nixpkgs-unstable.pistol}/bin/pistol";
source = "${pkgs.unstable.pistol}/bin/pistol";
};

settings = {
Expand Down
14 changes: 5 additions & 9 deletions home/neovim/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
pkgs,
inputs,
...
}: let
nixpkgs-unstable = pkgs.unstable;
{pkgs, ...}: let
nixos-unstable = pkgs.unstable;

bookmarks-nvim = pkgs.vimUtils.buildVimPlugin {
name = "bookmarks-nvim";
Expand Down Expand Up @@ -255,7 +251,7 @@ in {
type = "lua";
}
{
plugin = nixpkgs-unstable.vimPlugins.ChatGPT-nvim;
plugin = nixos-unstable.vimPlugins.ChatGPT-nvim;
config = ''
require("chatgpt").setup({
openai_params = {
Expand Down Expand Up @@ -313,7 +309,7 @@ in {
'';
type = "lua";
}
nixpkgs-unstable.vimPlugins.copilot-vim
nixos-unstable.vimPlugins.copilot-vim
{
plugin = nvim-web-devicons;
config = ''
Expand Down Expand Up @@ -371,7 +367,7 @@ in {
'';
type = "lua";
}
nixpkgs-unstable.vimPlugins.leap-nvim
nixos-unstable.vimPlugins.leap-nvim
{
plugin = lf-nvim;
config = ''
Expand Down
6 changes: 2 additions & 4 deletions home/services/dunst/default.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# Themes and many setting looted from: https://github.com/Kthulu120/i3wm-themes/blob/master/Nature/.config/dunst/dunstrc
{pkgs, ...}: let
nixpkgs-unstable = pkgs.unstable;
in {
{pkgs, ...}: {
services.dunst = {
enable = true;

iconTheme = {
name = "Pop";
package = nixpkgs-unstable.pop-icon-theme;
package = pkgs.unstable.pop-icon-theme;
size = "16x16";
};

Expand Down
2 changes: 1 addition & 1 deletion nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

nixPath = [
"nixpkgs=${pkgs.path}"
"nixpkgs-unstable=${pkgs.unstable.path}"
"nixos-unstable=${pkgs.unstable.path}"
];
};

Expand Down
Loading

0 comments on commit f878375

Please sign in to comment.