-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
49 lines (45 loc) · 1.36 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
{
description = "David's System Config";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { home-manager, nixpkgs, agenix, ... }: {
nixosConfigurations.davids-desktop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./system/desktop
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.david = import ./home/home.nix;
}
# ({ config, pkgs, ... }: {
# nixpkgs.config.packageOverrides = pkgs: rec {
# discord = pkgs.discord.overrideAttrs (old: {
# src = pkgs.fetchurl {
# url = "https://dl.discordapp.net/apps/linux/0.0.20/discord-0.0.20.tar.gz";
# sha256 = "sha256-3f7yuxigEF3e8qhCetCHKBtV4XUHsx/iYiaCCXjspYw=";
# };
# });
# };
# })
agenix.nixosModules.default
];
};
devShells."x86_64-linux".default =
let
pkgs = nixpkgs.legacyPackages."x86_64-linux";
in
pkgs.mkShell {
};
};
}