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

View File

@ -1,35 +1,45 @@
{ {
inputs = { inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable"; nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs-stable.url = "nixpkgs/nixos-21.11";
home-manager = { home-manager = {
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
impermanence.url = "github:nix-community/impermanence"; impermanence.url = "github:nix-community/impermanence";
}; };
outputs = { self, nixpkgs, home-manager, impermanence }@inputs: { outputs =
nixosConfigurations = { { self, nixpkgs, nixpkgs-stable, home-manager, impermanence }@inputs: {
trantor = nixpkgs.lib.nixosSystem { nixosConfigurations = {
system = "x86_64-linux"; trantor = nixpkgs.lib.nixosSystem {
specialArgs.inputs = inputs; system = "x86_64-linux";
specialArgs = {
# unstablePkgs = nixpkgs-unstable.legacyPackages."x86_64-linux";
impermanence = impermanence;
};
modules = [ modules = [
./trantor.nix ./trantor.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
impermanence.nixosModules.impermanence impermanence.nixosModules.impermanence
]; ];
}; };
capibara = nixpkgs.lib.nixosSystem { capibara = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; 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 = [ modules = [
./capibara.nix ./capibara.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
impermanence.nixosModules.impermanence impermanence.nixosModules.impermanence
]; ];
};
}; };
}; };
};
} }