stable packages separate

feat/kile-v2
Ricard Illa 2022-03-05 18:52:59 +01:00
parent 93345096e0
commit 01d7438797
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
2 changed files with 38 additions and 25 deletions

View File

@ -2,13 +2,16 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, inputs, pkgs, ... }:
{ config, pkgs, stablePkgs, impermanence, ... }:
{
imports = [ ./nixos/hardware-configuration/capibara.nix ./nixos/common.nix ];
home-manager.users.rilla.imports =
[ home/capibara.nix "${inputs.impermanence}/home-manager.nix" ];
home-manager = {
users.rilla.imports =
[ home/capibara.nix "${impermanence}/home-manager.nix" ];
extraSpecialArgs.stablePkgs = stablePkgs;
};
#fileSystems = {
# "/home/rilla/Music" = {
@ -68,7 +71,7 @@
# Power management
powerManagement.enable = true;
services.upower.enable = true;
services.thermald.enable = true;
# services.thermald.enable = true;
services.tlp.enable = true;
services.power-profiles-daemon.enable = false;
environment.systemPackages = with pkgs; [ powertop acpi ];

View File

@ -1,17 +1,23 @@
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs-stable.url = "nixpkgs/nixos-21.11";
home-manager = {
url = "github:nix-community/home-manager";
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence.url = "github:nix-community/impermanence";
};
outputs = { self, nixpkgs, home-manager, impermanence }@inputs: {
outputs =
{ self, nixpkgs, nixpkgs-stable, home-manager, impermanence }@inputs: {
nixosConfigurations = {
trantor = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs.inputs = inputs;
specialArgs = {
# unstablePkgs = nixpkgs-unstable.legacyPackages."x86_64-linux";
impermanence = impermanence;
};
modules = [
./trantor.nix
@ -22,7 +28,11 @@
capibara = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs.inputs = inputs;
specialArgs = {
# unstablePkgs = nixpkgs-unstable.legacyPackages."x86_64-linux";
stablePkgs = nixpkgs-stable.legacyPackages."x86_64-linux";
impermanence = impermanence;
};
modules = [
./capibara.nix