-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
125 lines (106 loc) · 3.74 KB
/
Copy pathflake.nix
File metadata and controls
125 lines (106 loc) · 3.74 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
118
119
120
121
122
123
124
125
{
description = "A highly awesome system configuration.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nix-index-database.url = "github:nix-community/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
#spicetify-nix = {
# url = "github:Gerg-L/spicetify-nix";
# inputs.nixpkgs.follows = "nixpkgs";
#};
hyprland.url = "git+https://github.com/hyprwm/Hyprland";
catppuccin.url = "github:catppuccin/nix";
tuigreet.url = "github:NotAShelf/tuigreet";
# NEOVIM
nvf.url = "github:notashelf/nvf";
neovim-nightly-overlay = {
url = "github:nix-community/neovim-nightly-overlay";
};
plugin-typst-concealer = {
#url = "github:PartyWumpus/typst-concealer";
url = "git+file:///home/wumpus/Code/typst-plugin";
flake = false;
};
plugin-screenkey = {
url = "github:NStefan002/screenkey.nvim";
flake = false;
};
# QS
quickshell = {
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs@{
self,
nixpkgs,
home-manager,
...
}:
let
pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
overlays = [ (import inputs.rust-overlay) ];
};
hmModules = [
inputs.catppuccin.homeModules.catppuccin
];
nixosModules = [
inputs.catppuccin.nixosModules.catppuccin
./configuration.nix
./modules/stuff/greetd.nix
home-manager.nixosModules.default
{
home-manager.sharedModules = [ { imports = hmModules; } ];
}
inputs.nix-index-database.nixosModules.nix-index
];
in
{
inherit self inputs;
location = "/home/wumpus/nixos";
# https://discourse.nixos.org/t/how-to-create-a-timestamp-in-a-nix-expression/30329
# seems to be behind an hour because of timezone fuckery and defaulting to utc but still does a job
my_timestamp = nixpkgs.lib.readFile "${pkgs.runCommandLocal "timestamp" { }
"echo -n `date -d @${toString builtins.currentTime} +%Y-%m-%d_%H-%M-%S` > $out"
}";
nixosConfigurations.laptop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit self inputs; };
modules = [
./hosts/laptop/configuration.nix
./hosts/laptop/hardware-configuration.nix
] ++ nixosModules;
};
nixosConfigurations.desktop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit self inputs; };
modules = [
./hosts/desktop/configuration.nix
./hosts/desktop/hardware-configuration.nix
] ++ nixosModules;
};
nixosConfigurations.thespare = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit self inputs; };
modules = [
./hosts/thespare/configuration.nix
./hosts/thespare/hardware-configuration.nix
] ++ nixosModules;
};
packages.x86_64-linux.bar =
(import ./modules/quickshell { inherit inputs; }).packages.x86_64-linux;
packages.x86_64-linux.qs =
(import ./modules/quickshell { inherit inputs; }).packages.x86_64-linux;
packages.x86_64-linux.nvf = (import ./modules/nvf {inherit inputs pkgs;}).neovim;
formatter.x86_64-linux = pkgs.nixfmt-rfc-style;
devShells.x86_64-linux = import ./devshells { inherit pkgs; } // {
qs = (import ./modules/quickshell { inherit inputs; }).devShell;
};
};
}