-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
115 lines (97 loc) · 2.63 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
114
115
{
description = "Stellar NixOS flake configuration";
inputs = {
# NixOS official package source
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
# Unstable nixpkgs
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
# Hardware configuration
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
# User files management
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
# KDE Plasma configuration
plasma-manager = {
url = "github:nix-community/plasma-manager";
# url = "path:/home/borisp/Dev/oss/plasma-manager";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
alacrittyTheme = {
url = "github:rose-pine/alacritty";
flake = false;
};
batTheme = {
url = "github:rose-pine/tm-theme";
flake = false;
};
fishTheme = {
url = "github:rose-pine/fish";
flake = false;
};
zellijTheme = {
url = "github:rose-pine/zellij";
flake = false;
};
# TODO: fix firefox addons
# nur.url = "github:nix-community/NUR";
};
outputs = inputs@{
self,
nixpkgs,
nixpkgs-unstable,
nixos-hardware,
home-manager,
plasma-manager,
alacrittyTheme,
batTheme,
fishTheme,
zellijTheme,
... }:
let
username = "borisp";
system = "x86_64-linux";
in
{
# Configuration for `saturn` machine
nixosConfigurations.saturn = nixpkgs.lib.nixosSystem {
inherit system;
# specialArgs = {
# pkgs-unstable = import nixpkgs-unstable {
# inherit system;
# };
# };
modules = [
# Hardware configuration
nixos-hardware.nixosModules.lenovo-legion-15arh05h
# Import the system configuration.nix
./configuration.nix
# Configure home-manager
home-manager.nixosModules.home-manager {
home-manager = {
# backupFileExtension = "backup";
useGlobalPkgs = true;
useUserPackages = true;
sharedModules = [
plasma-manager.homeManagerModules.plasma-manager
];
users."${username}" = import ./home.nix;
extraSpecialArgs = {
pkgs-unstable = import nixpkgs-unstable {
inherit system;
};
themes = {
alacritty = alacrittyTheme;
bat = batTheme;
fish = fishTheme;
zellij = zellijTheme;
};
};
};
}
];
};
};
}