-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault-flake.nix
More file actions
55 lines (47 loc) · 1.66 KB
/
default-flake.nix
File metadata and controls
55 lines (47 loc) · 1.66 KB
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 = "StratoKit dotfiles flake, see https://github.com/StratoKit/dotfiles";
inputs = {
# You can choose a different flake here
dotfiles.url = "github:StratoKit/dotfiles";
# With this you can override nixpkgs or similarly home-manager
# nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# dotfiles.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs:
let
# The auto-generated settings
settings = import ./settings.nix;
inherit (settings) username homeDirectory hostname system configDirectory;
# The inputs provided by the dotfiles repo
inherit (inputs.dotfiles) nixpkgs home-manager;
pkgs = inputs.dotfiles.pkgs.${system};
in
{
# The commands you can run
apps.${system} = {
# Just use the apps from the main repo
inherit (inputs.dotfiles.apps.${system}) default update;
};
# The home-manager configuration
homeConfigurations = {
${username} = home-manager.lib.homeManagerConfiguration rec {
inherit pkgs;
modules = [
# This provides the default StratoKit configuration
(inputs.dotfiles.makeDefaults settings)
# Here you can add your own extra module files to import
# ./home.nix
# or specify them inline
# ({ config, pkgs, lib, ... }: {
# nixpkgs.config = {
# # allowUnfree = true;
# # allowUnsupportedSystem = true;
# };
# })
# Update this only when you know what you are doing
{ home.stateVersion = "22.05"; }
];
};
};
};
}