Skip to content

Instantly share code, notes, and snippets.

@ksenia-portu
Created October 31, 2022 11:10
Show Gist options
  • Save ksenia-portu/46946da772bc1f6b3602458f95c0fc34 to your computer and use it in GitHub Desktop.
Save ksenia-portu/46946da772bc1f6b3602458f95c0fc34 to your computer and use it in GitHub Desktop.
nixos 2
{
description = "My awesome system config";
inputs = {
nixpkgs2205.url = "github:NixOS/nixpkgs/nixos-22.05";
nixpkgsUnstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixpkgsMaster.url = "github:NixOS/nixpkgs/master";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, nixpkgsUnstable, nixpkgs2205, home-manager, ... }@inputs:
let
system = "x86_64-linux";
pkgs22 = import nixpkgs2205 {
inherit system;
};
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
config.permittedInsecurePackages = [
"yandex-browser-22.9.1.1110-1"
]; };
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"ngrok"
"skypeforlinux"
"discord"
"slack"
"zoom-us"
"gitkraken"
"postman"
"virtualboxWithExtpack"
"steam"
"spotify"
"helvetica-neue-lt-std"
"vscode"
"yandex-browser"
];
linuxHomeOverlay = (
final: prev: {
# from stable release
gnomeExtensions.you2ber = inputs.nixpkgs2205.legacyPackages.${system}.gnomeExtensions.you2ber;
rPackages.tsc = inputs.nixpkgs2205.legacyPackages.${system}.rPackages.tsc;
hydra-cli = inputs.nixpkgs2205.legacyPackages.${system}.hydra-cli;
# from unstable release
kdenlive = inputs.nixpkgsUnstable.legacyPackages.${system}.kdenlive;
}
);
lib = nixpkgsUnstable.lib;
in {
nixosConfigurations = rec {
hostname = lib.nixosSystem {
inherit system;
modules =
[
{ nixpkgs.overlays = [ linuxHomeOverlay ]; }
./conf.nix
];
};
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment