-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
55 lines (46 loc) · 1.8 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
49
50
51
52
53
54
55
{
description = "Yokan [desktop] NixOS Configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/release-24.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
#musnix.url = "github:musnix/musnix";
#musnix.inputs.nixpkgs.follows = "nixpkgs";
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
neovim-nightly-overlay.inputs.nixpkgs.follows = "nixpkgs-unstable";
};
outputs = inputs:
rec {
# nixosModules = import ./nixos/modules;
formatter.x86_64-linux = inputs.nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
nixosConfigurations = {
Yokan = inputs.nixpkgs.lib.nixosSystem
rec {
system = "x86_64-linux";
modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ inputs.neovim-nightly-overlay.overlays.default ]; })
#inputs.musnix.nixosModules.musnix
./configuration.nix ## Configuration file from regular /etc/nixos config
# TODO: Clean it up!
inputs.home-manager.nixosModules.home-manager
{
home-manager = {
extraSpecialArgs = specialArgs;
backupFileExtension = "bak";
useGlobalPkgs = true; # see
#https://github.com/nix-community/home-manager/issues/1519
#https://github.com/divnix/devos/issues/30
useUserPackages = true;
users.nick = import ./nick-home.nix;
};
imports = [
./home.nix
];
}
];
specialArgs = { inherit inputs; }; ## Inherit inputs to configuration.nix so you can call inputs.inputname
};
};
};
}