marleyos/flake.nix

77 lines
1.9 KiB
Nix
Raw Normal View History

{
description = "marleyOS";
outputs =
{ self, ... }@inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
debug = true;
systems = [
"x86_64-linux"
];
imports = [
inputs.nixos-unified.flakeModules.default
];
flake = {
homeModules.marley =
{ pkgs, ... }:
{
imports = [
inputs.rose-pine.homeManagerModules.rose-pine
"${self}/modules/home/iconTheme.nix"
"${self}/modules/home/shellAbbrs.nix"
"${self}/home"
];
};
};
perSystem =
{ pkgs, ... }:
let
me = "marley";
home = if pkgs.stdenv.isDarwin then "Users" else "home";
inherit (self.nixos-unified.lib) mkHomeConfiguration;
in
{
legacyPackages.homeConfigurations."${me}" = mkHomeConfiguration pkgs (
{ pkgs, ... }:
{
imports = [ self.homeModules."${me}" ];
home.username = me;
home.homeDirectory = "/${home}/${me}";
home.stateVersion = "24.05";
}
);
formatter = pkgs.nixfmt-rfc-style;
};
};
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixos-unified.url = "github:srid/nixos-unified";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-10-19 09:42:19 -07:00
rose-pine.url = "git+https://codewith.babesonthe.net/punkfairie/rose-pine-nix";
2024-11-03 00:10:01 -07:00
# Rose pine themes that aren't included in the above flake:
# TODO: Integrate these to punkfairie/rose-pine-nix.
2024-11-03 00:10:01 -07:00
rose-pine-amfora = {
url = "github:rose-pine/amfora";
flake = false;
};
2024-11-03 13:16:43 -08:00
rose-pine-qt5ct = {
url = "github:piperbly/rose-pine-qt5ct";
flake = false;
};
};
}