mirror of
https://github.com/fredrikr79/nixos.git
synced 2025-12-19 08:00:23 +01:00
78 lines
2.0 KiB
Nix
78 lines
2.0 KiB
Nix
{
|
|
description = "A very basic flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-24.05";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
vi-xournalpp = {
|
|
url = "github:raw-bacon/vi-xournalpp";
|
|
flake = false;
|
|
};
|
|
|
|
#nbfc-linux = {
|
|
#url = "github:nbfc-linux/nbfc-linux";
|
|
#inputs.nixpkgs.follows = "nixpkgs";
|
|
#};
|
|
|
|
nixvim = {
|
|
url = "github:nix-community/nixvim/nixos-24.05";
|
|
# If using a stable channel you can use `url = "github:nix-community/nixvim/nixos-<version>"`
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, nixvim, ... } @ inputs:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
lib = nixpkgs.lib;
|
|
in
|
|
{
|
|
nixosConfigurations = {
|
|
#nixos = lib.nixosSystem {
|
|
#inherit system;
|
|
#specialArgs = {inherit inputs;};
|
|
#modules = [
|
|
#./configuration.nix
|
|
#];
|
|
#};
|
|
|
|
fredrikr = lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = {inherit inputs;};
|
|
modules = [
|
|
./configuration.nix
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
({ ... }: {
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
backupFileExtension = "backup";
|
|
users.fredrikr = {
|
|
imports = [
|
|
./home.nix
|
|
nixvim.homeManagerModules.nixvim
|
|
];
|
|
};
|
|
extraSpecialArgs = {
|
|
inherit inputs;
|
|
};
|
|
};
|
|
})
|
|
];
|
|
};
|
|
|
|
};
|
|
};
|
|
}
|