1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 11:37:44 +00:00

Fix deprecation waning

This commit is contained in:
RGBCube 2023-10-20 16:54:37 +03:00
parent 8d385bb11d
commit 6275dcfbd6
No known key found for this signature in database

View file

@ -7,7 +7,7 @@
flakes flakes
''; '';
extra-substituters = "https://nix-community.cachix.org"; extra-substituters = "https://nix-community.cachix.org";
extra-trusted-public-keys = "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="; extra-trusted-public-keys = "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=";
}; };
@ -15,12 +15,12 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = { home-manager = {
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
fenix = { fenix = {
url = "github:nix-community/fenix"; url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
}; };
@ -32,11 +32,11 @@
nixosSystem = arguments: modules: nixpkgs.lib.nixosSystem { nixosSystem = arguments: modules: nixpkgs.lib.nixosSystem {
specialArgs = arguments; specialArgs = arguments;
modules = modules; modules = modules;
}; };
importConfiguration = configurationDirectory: let importConfiguration = configurationDirectory: let
hostName = builtins.baseNameOf configurationDirectory; hostName = builtins.baseNameOf configurationDirectory;
hostPlatform = import (configurationDirectory + "/platform.nix"); hostPlatform = import (configurationDirectory + "/platform.nix");
in { in {
nixosConfigurations.${hostName} = nixosSystem { nixosConfigurations.${hostName} = nixosSystem {
@ -45,7 +45,7 @@
}; };
pkgs = import nixpkgs { pkgs = import nixpkgs {
system = hostPlatform; system = hostPlatform;
config.allowUnfree = true; config.allowUnfree = true;
overlays = [ overlays = [
@ -61,7 +61,7 @@
}; };
systemFonts = fonts: { systemFonts = fonts: {
fonts.fonts = fonts; fonts.packages = fonts;
}; };
# HOME # HOME
@ -95,10 +95,10 @@
"flakes" "flakes"
]; ];
networking.hostName = hostName; networking.hostNamev = hostName;
nixpkgs.hostPlatform = hostPlatform; nixpkgs.hostPlatform = hostPlatform;
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
} }
]; ];