-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
42 lines (40 loc) · 1.29 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# ──────────╮
# Nix Flake │
# ──────────╯
# @jvdcf
# Template by Vimjoyer (https://www.youtube.com/watch?v=rEovNpg7J0M)
# Where all package sources are defined and "locked" in a commit.
# It is also the entry point for the NixOS configuration.
{
description = "@jvdcf's NixOS config";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs?ref=release-24.11";
pipewire-screenaudio.url = "github:IceDBorn/pipewire-screenaudio";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
stylix.url = "github:danth/stylix";
};
outputs =
{ nixpkgs, nixpkgs-stable, pipewire-screenaudio,... }@inputs:
let
system = "x86_64-linux";
pkgs-stable = nixpkgs-stable.legacyPackages.${system};
in
{
nixosConfigurations = {
SillyBilly = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit system;
inherit pkgs-stable;
inherit pipewire-screenaudio;
};
modules = [
./nixos/configuration.nix
inputs.home-manager.nixosModules.default
inputs.stylix.nixosModules.stylix
];
};
};
};
}