-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
117 lines (113 loc) · 3.25 KB
/
flake.nix
File metadata and controls
117 lines (113 loc) · 3.25 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
description = "MATOO's NixOS configuration flake";
outputs =
{ self, ... }@inputs:
# these dont really do anything yet, theyre just placeholders
let
userSettings = {
username = "matoo";
displayname = "MATOO";
theme = "atelier-cave";
windowManager = "gnome";
windowManagerType = "x11";
browser = "firefox";
terminal = "kgx";
font = "nerdfonts";
fontPkg = "nerdfonts";
defaultEditor = "nvim";
configDirectory = "~/dotfiles";
};
systemSettings = {
timezone = "Europe/Berlin";
locale = "en_US.UTF-8";
specialLocale = "de_DE.UTF-8";
systemType = "x86_64-linux";
};
pkgs = import inputs.nixpkgs {
system = systemSettings.systemType;
hostPlatform = systemSettings.systemType;
config = {
allowUnfree = true;
allowUnfreePredicate = (_: true);
};
};
pkgs-stable = import inputs.nixpkgs-stable {
system = systemSettings.systemType;
hostPlatform = systemSettings.systemType;
config = {
allowUnfree = true;
allowUnfreePredicate = (_: true);
};
};
in
{
homeConfigurations = {
user = inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./home.nix ];
extraSpecialArgs = {
inherit inputs;
inherit pkgs-stable;
inherit systemSettings;
inherit userSettings;
};
};
};
nixosConfigurations = {
desktop = inputs.nixpkgs.lib.nixosSystem {
system = systemSettings.systemType;
modules = [
./configuration.nix
./system-modules/desktop/desktop-modules.nix
];
specialArgs = {
hostname = "matoo-desktop";
inherit inputs;
inherit pkgs-stable;
inherit systemSettings;
inherit userSettings;
};
};
laptop = inputs.nixpkgs.lib.nixosSystem {
system = systemSettings.systemType;
modules = [
./configuration.nix
./system-modules/laptop/laptop-modules.nix
];
specialArgs = {
hostname = "matoo-laptop";
inherit inputs;
inherit pkgs-stable;
inherit systemSettings;
inherit userSettings;
};
};
};
};
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-stable = {
url = "github:nixos/nixpkgs/nixos-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nvim-config = {
url = "github:matoo-dev/nixcats-config";
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-colors.url = "github:misterio77/nix-colors";
stylix.url = "github:danth/stylix";
nix-alien = {
url = "github:thiagokokada/nix-alien";
inputs.nixpkgs.follows = "nixpkgs";
};
autostart.url = "github:zocker1999net/home-manager-xdg-autostart";
};
}