nixos-config/flake.nix

71 lines
2.0 KiB
Nix
Raw Normal View History

2024-07-30 22:56:44 +02:00
{
description = "Moe.OS";
2024-08-11 13:47:17 +02:00
2024-07-30 22:56:44 +02:00
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
2024-08-10 15:47:04 +02:00
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-08-16 14:11:10 +02:00
jovian.url = "github:Jovian-Experiments/Jovian-NixOS/development";
2024-08-10 15:47:04 +02:00
plasma-manager = {
2024-08-11 13:47:17 +02:00
url = "github:nix-community/plasma-manager/trunk";
2024-08-10 15:47:04 +02:00
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
2024-07-30 22:56:44 +02:00
};
2024-08-16 14:11:10 +02:00
outputs = { nixpkgs, home-manager, jovian, plasma-manager, ...}:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system;};
lib = nixpkgs.lib;
in
{
systemModules = [
home-manager.nixosModules.home-manager
./modules/system/apps-shell
./modules/system/boot
./modules/system/devices
./modules/system/locale
./modules/system/networking
./modules/system/nixsettings
./modules/system/shell
./modules/system/systemversion
./modules/system/upgrades
./modules/system/users
];
2024-08-10 17:44:43 +02:00
2024-08-16 14:11:10 +02:00
userModules = [
./modules/user/git
./modules/user/homeversion
];
2024-08-11 13:47:17 +02:00
2024-08-16 14:11:10 +02:00
nixosConfigurations = {
computer-mo = nixpkgs.lib.nixosSystem {
hostName = "computer-mo";
user = "mo";
system = system;
modules = systemModules ++ [
jovian.nixosModules.jovian
./hosts/${hostName}
./modules/system/apps-misc
./modules/system/browser
./modules/system/controller
./modules/system/jovian-desktop
./modules/system/lact
./modules/system/plasma
./modules/system/steam
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.${user} = import ./modules/user/plasma;
home-manager.backupFileExtension = "backup";
home-manager.extraSpecialArgs = { inherit pkgs; };
home-manager.sharedModules = [ plasma-manager.homeManagerModules.plasma-manager ];
}
];
2024-08-11 13:47:17 +02:00
};
2024-07-30 22:56:44 +02:00
};
2024-08-16 14:11:10 +02:00
};
2024-07-30 22:56:44 +02:00
}