mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
flakes
This commit is contained in:
commit
beaf5202ca
37 changed files with 1802 additions and 0 deletions
46
flake.nix
Normal file
46
flake.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
description = "testing";
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/master";
|
||||
home-manager.url = "github:nix-community/home-manager/master";
|
||||
home-manager.inputs.nixkpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, home-manager, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
packageOverrides = super: let self = super.pkgs; in {
|
||||
nerdfonts-overpass = self.nerdfonts.override {
|
||||
fonts = [ "Overpass" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
lib = nixpkgs.lib;
|
||||
in {
|
||||
homeManagerConfiguration = {
|
||||
gerg = home-manager.lib.homeManagerConfiguration {
|
||||
inherit system pkgs;
|
||||
username = "gerg";
|
||||
homeDirectory = "/home/gerg";
|
||||
configuration = {
|
||||
imports = [
|
||||
./home-manager.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
nixosConfigurations = {
|
||||
gerg-laptop = lib.nixosSystem {
|
||||
inherit system pkgs;
|
||||
modules = [
|
||||
./configuration.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue