Skip to content

Commit

Permalink
feat: add nixpkgs-unstable instance
Browse files Browse the repository at this point in the history
  • Loading branch information
2giosangmitom committed Jun 20, 2024
1 parent fa2687a commit c263d10
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 10 deletions.
25 changes: 20 additions & 5 deletions flake.lock

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

3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
description = "2giosangmitom's NixOS configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs.url = "nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
catppuccin.url = "github:catppuccin/nix";
home-manager = {
Expand Down
4 changes: 2 additions & 2 deletions home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
sessionVariables = {};
};
xdg = {
enable = true;
enable = false;
mimeApps = {
enable = true;
enable = false;
defaultApplications = {};
};
};
Expand Down
5 changes: 4 additions & 1 deletion home/lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
inputs.catppuccin.homeManagerModules.catppuccin
];

extraSpecialArgs = {
extraSpecialArgs = let
pkgs-unstable = import inputs.nixpkgs-unstable {config.allowUnfree = true;};
in {
inherit inputs;
inherit pkgs-unstable;
};
}
5 changes: 5 additions & 0 deletions hosts/lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
extraModules ? [],
}: let
pkgs = import inputs.nixpkgs {inherit system;};
pkgs-unstable = import inputs.nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
inherit (pkgs.lib) mkOption types;
in {
${host} = inputs.nixpkgs.lib.nixosSystem {
Expand Down Expand Up @@ -67,6 +71,7 @@
{
_module.args = {
inherit inputs;
inherit pkgs-unstable;
};
}
]
Expand Down
6 changes: 5 additions & 1 deletion nixos/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
pkgs,
pkgs-unstable,
config,
...
}: {
Expand Down Expand Up @@ -28,7 +29,10 @@
brave
gh
pavucontrol
];
]
++ (with pkgs-unstable; [
vscode.fhs
]);
security.polkit.enable = true;
programs.gnupg.agent = {
enable = true;
Expand Down

0 comments on commit c263d10

Please sign in to comment.