Unstable config

This commit is contained in:
Filippo Berto 2022-04-14 00:15:30 +02:00
parent 150ce70fbe
commit bbee9d7993
5 changed files with 57 additions and 17 deletions

27
flake.lock generated
View file

@ -38,16 +38,16 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1649760692, "lastModified": 1649856708,
"narHash": "sha256-b+5Uo3yA2eFjvaGGeeLN7I3IJCxHL+jIQpB0HmBlqK4=", "narHash": "sha256-xVUExhQ3i/usCei3C4ZHUrW+8FfGV1Eo9CQmewjFd2k=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "838eefb4f93f2306d4614aafb9b2375f315d917f", "rev": "3ec9e6968fec5f13cfa7f63a32f343ac2f990637",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixos-21.11", "ref": "release-21.11",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@ -56,7 +56,24 @@
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs",
"unstable": "unstable"
}
},
"unstable": {
"locked": {
"lastModified": 1649673231,
"narHash": "sha256-1T3AFscfS7s9pkFA+UIDrHH3/RLVjRdYs5ImuLYpOlE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "33772708c6d0e33f697426ba386aa0149cbcbecb",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
} }
} }
}, },

View file

@ -2,20 +2,25 @@
description = "Thor system configuration"; description = "Thor system configuration";
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.11"; nixpkgs.url = "github:NixOS/nixpkgs/release-21.11";
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager/release-21.11"; home-manager.url = "github:nix-community/home-manager/release-21.11";
nixos-hardware.url = "github:NixOS/nixos-hardware"; nixos-hardware.url = "github:NixOS/nixos-hardware";
# nixos-hardware.inputs.nixpkgs.follows = "nixpkgs"; # nixos-hardware.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = { self, nixpkgs, home-manager, nixos-hardware }: outputs = { self, nixpkgs, unstable, home-manager, nixos-hardware }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;
config = { allowUnfree = true; }; config = { allowUnfree = true; };
}; };
unstablePkgs = import nixpkgs {
inherit system;
config = { allowUnFree = true; };
};
lib = nixpkgs.lib; lib = nixpkgs.lib;
in in
{ {
@ -44,7 +49,32 @@
./odin/pro_audio.nix ./odin/pro_audio.nix
]; ];
}; };
odin-intel-unstable = unstable.lib.nixosSystem {
inherit system;
modules = [
./odin/hardware-configuration.nix
nixos-hardware.nixosModules.common-cpu-intel
nixos-hardware.nixosModules.common-pc-laptop
nixos-hardware.nixosModules.common-pc-laptop-ssd
./odin/base.nix
./odin/odin-intel.nix
./odin/pro_audio.nix
];
};
odin-nvidia-unstable = unstable.lib.nixosSystem {
inherit system;
modules = [
./odin/hardware-configuration.nix
nixos-hardware.nixosModules.common-cpu-intel
nixos-hardware.nixosModules.common-pc-laptop
nixos-hardware.nixosModules.common-pc-laptop-ssd
./odin/base.nix
./odin/odin-nvidia.nix
./odin/pro_audio.nix
];
};
}; };
}; };
} }

View file

@ -156,7 +156,7 @@
}; };
}; };
services.dbus.packages = with pkgs; [ gnome.dconf ]; services.dbus.packages = with pkgs; [ dconf ];
services.gnome.gnome-keyring.enable = true; services.gnome.gnome-keyring.enable = true;
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
# services.blueman.enable = true; # services.blueman.enable = true;

View file

@ -5,13 +5,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports =
[
<nixos-hardware/common/cpu/amd>
<nixos-hardware/common/pc/laptop/ssd>
./base.nix
];
boot.initrd.kernelModules = [ "i915" ]; boot.initrd.kernelModules = [ "i915" ];
hardware.cpu.intel.updateMicrocode = config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = config.hardware.enableRedistributableFirmware;

View file

@ -98,7 +98,7 @@
}; };
}; };
clamav = { daemon.enable = true; updater.enable = true; }; clamav = { daemon.enable = true; updater.enable = true; };
dbus.packages = with pkgs; [ gnome.dconf ]; dbus.packages = with pkgs; [ dconf ];
gnome.gnome-keyring.enable = true; gnome.gnome-keyring.enable = true;
gvfs = { enable = true; package = pkgs.gnome3.gvfs; }; gvfs = { enable = true; package = pkgs.gnome3.gvfs; };
fwupd.enable = true; fwupd.enable = true;