2 Commits

Author SHA1 Message Date
7dec9b5ff9 -repl-flakes, fix:homeConfiguration module 2024-11-25 09:41:50 +01:00
aa7dcee696 video6 2024-09-10 13:59:56 +02:00
9 changed files with 77 additions and 4 deletions

17
flake.lock generated
View File

@ -1,5 +1,21 @@
{
"nodes": {
"dotfiles": {
"flake": false,
"locked": {
"lastModified": 1725956275,
"narHash": "sha256-4tHKP+PLpJKnFfOT6MY3p/NDBr/3NDyWljB8/iELVZs=",
"ref": "refs/heads/master",
"rev": "b1393f4b54b8e908b770450ccc49400713d8e457",
"revCount": 1,
"type": "git",
"url": "https://code.m3tam3re.com/m3tam3re/dotfiles-flake-demo.git"
},
"original": {
"type": "git",
"url": "https://code.m3tam3re.com/m3tam3re/dotfiles-flake-demo.git"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
@ -54,6 +70,7 @@
},
"root": {
"inputs": {
"dotfiles": "dotfiles",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs",
"nixpkgs-stable": "nixpkgs-stable"

View File

@ -17,10 +17,16 @@
};
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
dotfiles = {
url = "git+https://code.m3tam3re.com/m3tam3re/dotfiles-flake-demo.git";
flake = false;
};
};
outputs = {
self,
dotfiles,
home-manager,
nixpkgs,
...
@ -48,7 +54,7 @@
"m3tam3re@m3-kratos-vm" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
extraSpecialArgs = {inherit inputs outputs;};
modules = [./home/m3tam3re/m3tam3re.nix];
modules = [./home/m3tam3re/m3-kratos.nix];
};
};
};

View File

@ -1,4 +1,10 @@
{ config, lib, outputs, pkgs, ... }: {
{
config,
lib,
outputs,
pkgs,
...
}: {
nixpkgs = {
# You can add overlays here
overlays = [
@ -29,7 +35,7 @@
nix = {
package = lib.mkDefault pkgs.nix;
settings = {
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
experimental-features = ["nix-command" "flakes"];
warn-dirty = false;
};
};

View File

@ -1,5 +1,6 @@
{pkgs, ...}: {
imports = [
./fonts.nix
./hyprland.nix
./wayland.nix
];

View File

@ -0,0 +1,23 @@
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.features.desktop.fonts;
in {
options.features.desktop.fonts.enable =
mkEnableOption "install additional fonts for desktop apps";
config = mkIf cfg.enable {
home.packages = with pkgs; [
fira-code
fira-code-symbols
fira-code-nerdfont
font-manager
font-awesome_5
noto-fonts
];
};
}

View File

@ -0,0 +1,8 @@
{
home.file.".config/bat/config".text = ''
--theme="Dracula"
# Show line numbers, Git modifications and file header (but no grid)
--style="numbers,changes,header"
'';
}

View File

@ -0,0 +1,10 @@
{inputs, ...}: {
imports = [
./bat.nix
];
home.file.".config/nvim" = {
source = "${inputs.dotfiles}/nvim";
recursive = true;
};
}

View File

@ -1,6 +1,7 @@
{
imports = [
../common
./dotfiles
../features/cli
../features/desktop
./home.nix
@ -13,6 +14,7 @@
neofetch.enable = true;
};
desktop = {
fonts.enable = true;
hyprland.enable = true;
wayland.enable = true;
};

View File

@ -26,5 +26,5 @@
packages = [inputs.home-manager.packages.${pkgs.system}.default];
};
home-manager.users.m3tam3re =
import m3tam3re/${config.networking.hostName}.nix;
import ../../../home/m3tam3re/${config.networking.hostName}.nix;
}