-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
113 lines (109 loc) · 3.33 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
113
{
description = "chikoyeat's NixOS and Home Manager configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
hyprpanel.url = "github:Jas-SinghFSU/HyprPanel";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
ghostty = {
url = "github:ghostty-org/ghostty";
};
themes = {
url = "github:RGBCube/ThemeNix";
};
};
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager,ghostty, themes, ... }@inputs:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
overlays = [
inputs.hyprpanel.overlay
];
};
theme = themes.tango;
in
{
nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs pkgs-unstable ghostty; };
modules = [
./configuration.nix
./modules/hyprland.nix
./modules/sound.nix
./modules/networking.nix
{nixpkgs.overlays = [inputs.hyprpanel.overlay];}
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.chikoyeat = import ./home.nix;
home-manager.extraSpecialArgs = {
inherit inputs pkgs-unstable;
};
}
];
};
mysystem = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
({ ... }: {
_module.args.ghostty = ghostty;
})
./configuration.nix
{
home-manager.users.myuser = {
programs.kitty.settings = with theme.withHashtag; {
color0 = base00;
color1 = base08;
color2 = base0B;
color3 = base0A;
color4 = base0D;
color5 = base0E;
color6 = base0C;
color7 = base05;
color8 = base03;
color9 = base08;
color10 = base0B;
color11 = base0A;
color12 = base0D;
color13 = base0E;
color14 = base0C;
color15 = base07;
color16 = base09;
color17 = base0F;
color18 = base01;
color19 = base02;
color20 = base04;
color21 = base06;
};
# Using templates??? Wow, that's so cool!
programs.bat = {
config.theme = "base16";
themes.base16.src = pkgs.writeText "base16.tmTheme" theme.tmTheme;
};
};
}
];
};
};
homeConfigurations = {
"chikoyeat@nixos" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit inputs pkgs-unstable;
};
modules = [ ./home.nix ];
};
};
};
}