-
-
Save ksenia-portu/a48985a6364eb499a72540c1e26a7f70 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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" | |
]; | |
config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ | |
"Oracle_VM_VirtualBox_Extension_Pack-6.1.40.vbox-extpack" | |
# "Oracle_VM_VirtualBox_Extension_Pack" | |
]; | |
}; | |
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; | |
# from unstable release | |
# Unfree | |
inherit (pkgs) | |
ngrok | |
skypeforlinux | |
discord | |
slack | |
zoom-us | |
gitkraken | |
postman | |
virtualboxWithExtpack | |
steam | |
spotify | |
helvetica-neue-lt-std | |
vscode | |
yandex-browser | |
; | |
} | |
); | |
lib = nixpkgsUnstable.lib; | |
in { | |
nixosConfigurations = rec { | |
farscape = lib.nixosSystem { | |
inherit system; | |
modules = | |
[ | |
{ nixpkgs.overlays = [ linuxHomeOverlay ]; } | |
./hosts/hardware/hardware-farscape.nix | |
./hosts/software/configuration-farscape.nix | |
]; | |
}; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment