replace unstable stuff with overlay
This commit is contained in:
@@ -71,26 +71,35 @@
|
|||||||
...
|
...
|
||||||
} @ inputs: let
|
} @ inputs: let
|
||||||
systems = {
|
systems = {
|
||||||
x86_64 = "x86_64-linux";
|
x86_64-linux = "x86_64-linux";
|
||||||
arm64 = "aarch64-linux";
|
aarch64-linux = "aarch64-linux";
|
||||||
darwin = "aarch64-darwin";
|
aarch64-darwin = "aarch64-darwin";
|
||||||
};
|
};
|
||||||
|
unstableOverlay = final: prev: {
|
||||||
|
unstable = import nixpkgs-unstable {
|
||||||
|
system = prev.system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
# legacy
|
||||||
stable_pkgs = builtins.mapAttrs (k: v: import nixpkgs {system = v;}) systems;
|
stable_pkgs = builtins.mapAttrs (k: v: import nixpkgs {system = v;}) systems;
|
||||||
unstable_pkgs = builtins.mapAttrs (k: v: import nixpkgs-unstable {system = v;}) systems;
|
unstable_pkgs = builtins.mapAttrs (k: v: import nixpkgs-unstable {system = v;}) systems;
|
||||||
in {
|
in {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
snowbelle = nixpkgs.lib.nixosSystem {
|
snowbelle = nixpkgs.lib.nixosSystem {
|
||||||
system = systems.x86_64;
|
system = systems.x86_64-linux;
|
||||||
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
|
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
|
||||||
modules = [
|
modules = [
|
||||||
|
{ nixpkgs.overlays = [ unstableOverlay ]; }
|
||||||
./hosts/nixos/snowbelle/configuration.nix
|
./hosts/nixos/snowbelle/configuration.nix
|
||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
yveltal = nixpkgs-unstable.lib.nixosSystem {
|
yveltal = nixpkgs-unstable.lib.nixosSystem {
|
||||||
system = systems.x86_64;
|
system = systems.x86_64-linux;
|
||||||
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
|
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
|
||||||
modules = [
|
modules = [
|
||||||
|
{ nixpkgs.overlays = [ unstableOverlay ]; }
|
||||||
./hosts/nixos/yveltal/configuration.nix
|
./hosts/nixos/yveltal/configuration.nix
|
||||||
./hosts/nixos/yveltal/disko.nix
|
./hosts/nixos/yveltal/disko.nix
|
||||||
inputs.home-manager-unstable.nixosModules.default
|
inputs.home-manager-unstable.nixosModules.default
|
||||||
@@ -98,9 +107,10 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
mew = nixpkgs-unstable.lib.nixosSystem {
|
mew = nixpkgs-unstable.lib.nixosSystem {
|
||||||
system = systems.x86_64;
|
system = systems.x86_64-linux;
|
||||||
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
|
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
|
||||||
modules = [
|
modules = [
|
||||||
|
{ nixpkgs.overlays = [ unstableOverlay ]; }
|
||||||
./hosts/nixos/mew/configuration.nix
|
./hosts/nixos/mew/configuration.nix
|
||||||
./hosts/nixos/mew/disko.nix
|
./hosts/nixos/mew/disko.nix
|
||||||
inputs.home-manager-unstable.nixosModules.default
|
inputs.home-manager-unstable.nixosModules.default
|
||||||
@@ -108,26 +118,29 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
vaniville = nixpkgs.lib.nixosSystem {
|
vaniville = nixpkgs.lib.nixosSystem {
|
||||||
system = systems.x86_64;
|
system = systems.x86_64-linux;
|
||||||
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
|
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
|
||||||
modules = [
|
modules = [
|
||||||
|
{ nixpkgs.overlays = [ unstableOverlay ]; }
|
||||||
./hosts/nixos/vaniville/configuration.nix
|
./hosts/nixos/vaniville/configuration.nix
|
||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
lumiose = nixpkgs.lib.nixosSystem {
|
lumiose = nixpkgs.lib.nixosSystem {
|
||||||
system = systems.x86_64;
|
system = systems.x86_64-linux;
|
||||||
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
|
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
|
||||||
modules = [
|
modules = [
|
||||||
|
{ nixpkgs.overlays = [ unstableOverlay ]; }
|
||||||
./hosts/nixos/lumiose/configuration.nix
|
./hosts/nixos/lumiose/configuration.nix
|
||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
wsl = nixpkgs.lib.nixosSystem {
|
wsl = nixpkgs.lib.nixosSystem {
|
||||||
system = systems.x86_64;
|
system = systems.x86_64-linux;
|
||||||
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
|
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
|
||||||
modules = [
|
modules = [
|
||||||
|
{ nixpkgs.overlays = [ unstableOverlay ]; }
|
||||||
./hosts/nixos/wsl/configuration.nix
|
./hosts/nixos/wsl/configuration.nix
|
||||||
nixos-wsl.nixosModules.default
|
nixos-wsl.nixosModules.default
|
||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
@@ -136,9 +149,10 @@
|
|||||||
};
|
};
|
||||||
darwinConfigurations = {
|
darwinConfigurations = {
|
||||||
cen-it-07 = nix-darwin.lib.darwinSystem {
|
cen-it-07 = nix-darwin.lib.darwinSystem {
|
||||||
system = systems.darwin;
|
system = systems.aarch64-darwin;
|
||||||
specialArgs = {inherit inputs stable_pkgs unstable_pkgs nix-homebrew;};
|
specialArgs = {inherit inputs stable_pkgs unstable_pkgs nix-homebrew;};
|
||||||
modules = [
|
modules = [
|
||||||
|
{ nixpkgs.overlays = [ unstableOverlay ]; }
|
||||||
./hosts/darwin/cen-it-07/configuration.nix
|
./hosts/darwin/cen-it-07/configuration.nix
|
||||||
inputs.home-manager.darwinModules.default
|
inputs.home-manager.darwinModules.default
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
inputs,
|
inputs,
|
||||||
|
unstable_pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
@@ -75,9 +76,10 @@
|
|||||||
pciutils
|
pciutils
|
||||||
lm_sensors
|
lm_sensors
|
||||||
smartmontools
|
smartmontools
|
||||||
siomon
|
unstable.siomon
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
# nice to have passwordless sudo
|
# nice to have passwordless sudo
|
||||||
security.sudo = {
|
security.sudo = {
|
||||||
extraRules = [
|
extraRules = [
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ in {
|
|||||||
services.${service} = {
|
services.${service} = {
|
||||||
enable = true;
|
enable = true;
|
||||||
#package = inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.immich;
|
#package = inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.immich;
|
||||||
package = unstable_pkgs.x86_64.immich;
|
package = pkgs.unstable.immich;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
user = service;
|
user = service;
|
||||||
group = service;
|
group = service;
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ in
|
|||||||
# enable the vaultwarden service
|
# enable the vaultwarden service
|
||||||
services.${service} = {
|
services.${service} = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = unstable_pkgs.x86_64.vaultwarden;
|
package = pkgs.unstable.vaultwarden;
|
||||||
config = {
|
config = {
|
||||||
DOMAIN = domain;
|
DOMAIN = domain;
|
||||||
ROCKET_ADDRESS = "0.0.0.0";
|
ROCKET_ADDRESS = "0.0.0.0";
|
||||||
|
|||||||
Reference in New Issue
Block a user