mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
55 lines
1.4 KiB
Nix
55 lines
1.4 KiB
Nix
{
|
|
description = "No, I don't understand how this works, so please don't ask";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
home-manager.url = "github:nix-community/home-manager/master";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
nix-doom-emacs.url = "github:nix-community/nix-doom-emacs";
|
|
stylix.url = "github:danth/stylix";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, nix-doom-emacs, stylix, ... }:
|
|
let
|
|
system = "x86_64-linux";
|
|
name = "emmet";
|
|
email = "librephoenix@protonmail.com";
|
|
dotfilesDir = ./.;
|
|
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config = { allowUnfree = true; };
|
|
};
|
|
|
|
lib = nixpkgs.lib;
|
|
|
|
in {
|
|
homeConfigurations = {
|
|
emmet = home-manager.lib.homeManagerConfiguration {
|
|
inherit pkgs;
|
|
modules = [
|
|
./user/home.nix
|
|
nix-doom-emacs.hmModule
|
|
stylix.homeManagerModules.stylix
|
|
];
|
|
extraSpecialArgs = {
|
|
myName = name;
|
|
myHomeDir = /. + "home/"+name;
|
|
myEmail = email;
|
|
myDotfilesDir = dotfilesDir;
|
|
myNixConfigurationFilePath = dotfilesDir+"/system/configuration.nix";
|
|
myHomeManagerFilePath = dotfilesDir+"/user/home.nix";
|
|
};
|
|
};
|
|
};
|
|
nixosConfigurations = {
|
|
snowfire = lib.nixosSystem {
|
|
inherit system;
|
|
modules = [
|
|
./system/configuration.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|