-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
48 lines (46 loc) · 1.43 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
43
44
45
46
47
48
{
description = "A simple NixOS flake";
inputs = {
# NixOS official package source, using the nixos-23.11 branch here
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/release-24.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, ... }@inputs:
let
lib = nixpkgs.lib;
pkgs = nixpkgs.legacyPackages."x86_64-linux";
pkgs-unstable = nixpkgs-unstable.legacyPackages."x86_64-linux";
customProp = "disableBash";
in {
# Please replace my-nixos with your hostname
nixosConfigurations = {
my-nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
# Import the previous configuratiiiiiion.nix we used,
# so the old cofiguration file still takes effect
./configuration.nix
];
specialArgs = {
inherit pkgs-unstable;
};
};
};
homeConfigurations = {
demo = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
# Import the previous configuration.nix we used,
# so the old configuration file still takes effect
./home.nix
];
extraSpecialArgs = {
inherit customProp;
inherit pkgs-unstable;
};
};
};
};
}