stable packages separate
parent
93345096e0
commit
01d7438797
11
capibara.nix
11
capibara.nix
|
@ -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 ];
|
||||
|
|
18
flake.nix
18
flake.nix
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue