dotfiles-mirror/etc/nixos/flake.nix

64 lines
1.9 KiB
Nix
Raw Normal View History

2025-10-04 17:47:25 +03:30
{
2025-10-31 22:14:15 +03:30
<<<<<<< HEAD
2025-10-04 17:47:25 +03:30
description = "Flakes once again";
2025-10-31 22:14:15 +03:30
=======
description = "Flake";
>>>>>>> bd52954 (repush)
2025-10-05 05:22:41 +03:30
2025-10-04 17:47:25 +03:30
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/release-25.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
2025-10-05 05:22:41 +03:30
2025-10-31 22:14:15 +03:30
<<<<<<< HEAD
2025-10-05 05:22:41 +03:30
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, ... }:
let
2025-10-31 22:14:15 +03:30
=======
outputs = { nixpkgs, nixpkgs-unstable, home-manager, ... }: let
>>>>>>> bd52954 (repush)
2025-10-04 17:47:25 +03:30
system = "x86_64-linux";
2025-10-05 05:22:41 +03:30
pkgs = import nixpkgs {
inherit system;
config = { allowUnfree = true; };
};
pkgsUnstable = import nixpkgs-unstable { inherit system; };
in
{
2025-10-31 22:14:15 +03:30
<<<<<<< HEAD
2025-10-04 17:47:25 +03:30
nixosConfigurations.core = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
2025-10-05 05:22:41 +03:30
./create.nix
(import ./compose.nix { inherit pkgs pkgsUnstable; })
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.coast = import ./home.nix;
home-manager.backupFileExtension = "home-backup";
2025-10-31 22:14:15 +03:30
=======
nixosConfigurations.gloria = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
(import ./configuration.nix { inherit pkgs pkgsUnstable; })
./hardware-configuration.nix
home-manager.nixosModules.home-manager {
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "home-backup";
users.coast = { ... }: {
imports = [
./home-configuration/home.nix
./home-configuration/apps/sway.nix
];
};
};
>>>>>>> bd52954 (repush)
2025-10-04 17:47:25 +03:30
}
];
};
};
}