-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
112 lines (103 loc) · 3.5 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
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
{
description = "Trying out flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
latest.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
devenv.url = "github:cachix/devenv/v0.6.3";
tuxedo-nixos.url = "github:blitz/tuxedo-nixos";
home-manager = {
url = github:nix-community/home-manager/release-23.11;
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, devenv, latest, tuxedo-nixos, ... }@inputs:
let
user = "getse";
system = "x86_64-linux";
# tuxedo-rs-overlay = self: super: {
# tuxedo-rs = super.callPackage ./pkgs/tuxedo-rs/default.nix {};
# tailor_gui = super.callPackage ./pkgs/tailor_gui/default.nix {};
# };
# pkgs = import nixpkgs {
# inherit system;
# overlays = [ tuxedo-rs-overlay ];
# };
allowUnfree = { nixpkgs.config.allowUnfree = true; };
unstable = import latest {
inherit system;
config.allowUnfree = true;
};
lib = nixpkgs.lib;
in {
nixosConfigurations = {
"gonzalo-tuxedo" = lib.nixosSystem {
inherit system;
specialArgs = { inherit user inputs unstable; };
modules = [
{
environment.etc."nix/inputs/nixpkgs".source = nixpkgs.outPath;
nix.nixPath = ["nixpkgs=/etc/nix/inputs/nixpkgs"];
nix.registry.nixpkgs.flake = nixpkgs;
nix.registry.latest.flake = latest;
# nixpkgs.overlays = [ tuxedo-rs-overlay ];
}
# Tuxedo control center
tuxedo-nixos.nixosModules.default
{
hardware.tuxedo-control-center.enable = true;
# Specify the package
hardware.tuxedo-control-center.package = tuxedo-nixos.packages.x86_64-linux.default;
}
allowUnfree
./configuration.nix
home-manager.nixosModules.home-manager {
home-manager = {
extraSpecialArgs = { inherit inputs; };
useGlobalPkgs = true;
useUserPackages = true;
users."${user}" = {
imports = [
./home/discord.nix
./home/git.nix
./home/vscode.nix
./home/zsh.nix
];
home.stateVersion = "23.11";
};
};
}
];
};
"gonzalo-dell" = lib.nixosSystem {
inherit system;
specialArgs = { inherit user inputs unstable;};
modules = [
{
environment.etc."nix/inputs/nixpkgs".source = nixpkgs.outPath;
nix.nixPath = ["nixpkgs=/etc/nix/inputs/nixpkgs"];
nix.registry.nixpkgs.flake = nixpkgs;
nix.registry.latest.flake = latest;
}
allowUnfree
./configuration.nix
home-manager.nixosModules.home-manager {
home-manager = {
extraSpecialArgs = { inherit inputs; };
useGlobalPkgs = true;
useUserPackages = true;
users."${user}" = {
imports = [
./home/discord.nix
./home/git.nix
./home/vscode.nix
./home/zsh.nix
];
home.stateVersion = "22.11";
};
};
}
];
};
};
};
}