marleyos/flake.nix

104 lines
2.3 KiB
Nix

{
description = "marleyOS";
outputs = inputs: inputs.snowfall-lib.mkFlake {
inherit inputs;
src = ./.;
snowfall = {
namespace = "marleyos";
title = "marleyOS";
}
};
old =
{ self, ... }@inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
debug = true;
systems = [
"x86_64-linux"
];
imports = [
inputs.nixos-unified.flakeModules.default
inputs.devenv.flakeModule
];
flake = {
homeModules.marley =
{ pkgs, ... }:
{
imports =
let
myHomeMods = "${self}/modules/home";
in
[
inputs.rose-pine.homeManagerModules.rose-pine
"${myHomeMods}/iconTheme.nix"
"${myHomeMods}/shellAbbrs.nix"
"${self}/home"
];
};
};
perSystem =
{ pkgs, ... }:
let
me = "marley";
inherit (self.nixos-unified.lib) mkHomeConfiguration;
in
{
legacyPackages.homeConfigurations."${me}" = mkHomeConfiguration pkgs (
{ pkgs, ... }:
{
imports = [
"${self}/modules/home/me.nix"
self.homeModules."${me}"
];
me.name = me;
home.stateVersion = "24.05";
}
);
devenv.shells.default = {
imports = [
"${self}/shells/base.nix"
"${self}/shells/nix.nix"
];
};
formatter = pkgs.nixfmt-rfc-style;
};
};
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
snowfall-lib = {
url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
devenv.url = "github:cachix/devenv";
rose-pine.url = "git+https://codewith.babesonthe.net/punkfairie/rose-pine-nix";
# Rose pine themes that aren't included in the above flake:
# TODO: Integrate these to punkfairie/rose-pine-nix.
rose-pine-amfora = {
url = "github:rose-pine/amfora";
flake = false;
};
rose-pine-qt5ct = {
url = "github:piperbly/rose-pine-qt5ct";
flake = false;
};
};
}