Skip to content

Commit

Permalink
bringing back homeModules and setting everything locally
Browse files Browse the repository at this point in the history
  • Loading branch information
orzklv committed Jul 1, 2024
1 parent 86fd82b commit 1df02ef
Show file tree
Hide file tree
Showing 24 changed files with 1,496 additions and 323 deletions.
48 changes: 48 additions & 0 deletions .github/configs/config/fastfetch/config.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"source": "orzklv",
"padding": {
"top": 3,
"right": 3,
"left": 3
}
},
"display": {
"binaryPrefix": "si",
"color": "black"
},
"modules": [
"title",
"separator",
"os",
"host",
"kernel",
"uptime",
"packages",
"shell",
"display",
"de",
"wm",
"wmtheme",
"theme",
"icons",
"font",
"cursor",
"terminal",
"terminalfont",
"cpu",
"gpu",
"memory",
"swap",
"disk",
"localip",
"battery",
"poweradapter",
"locale",
"break",
"colors"
]
}


15 changes: 15 additions & 0 deletions .github/configs/share/fastfetch/logos/orzklv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
##
####
######
###################
###################
##################
###### ############
####### ############
####### ############
#######
#######
#######
######
####
##
142 changes: 3 additions & 139 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 4 additions & 13 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,6 @@
url = "github:AstroNvim/AstroNvim/v3.40.3";
flake = false;
};

# Orzklv (Kolyma's Owner)
cfg-sakhib = {
url = "github:orzklv/nix/master";
inputs.nixpkgs.follows = "nixpkgs";
};

# Muzaffar (Minecraft Server Moderator)
# cfg-muzaffar = {
# url = "github:Muzaffar-x/nix";
# inputs.nixpkgs.follows = "nixpkgs";
# };
};

# In this context, outputs are mostly about getting home-manager what it
Expand All @@ -54,7 +42,6 @@
nixpkgs-unstable,
home-manager,
flake-utils,
cfg-sakhib,
...
} @ inputs: let
inherit (self) outputs;
Expand Down Expand Up @@ -127,6 +114,10 @@
# These are usually stuff you would upstream into nixpkgs
nixosModules = import ./modules/nixos;

# Reusable home-manager modules you might want to export
# These are usually stuff you would upstream into home-manager
homeManagerModules = import ./modules/home;

# Reusable server modules you might want to export
# These are usually stuff you would upstream services to global
serverModules = import ./modules/server;
Expand Down
43 changes: 43 additions & 0 deletions home/sakhib.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
inputs,
lib,
pkgs,
config,
outputs,
packages,
self,
...
}: {
imports = [
outputs.homeManagerModules.zsh
outputs.homeManagerModules.neovim
outputs.homeManagerModules.nixpkgs
outputs.homeManagerModules.topgrade
outputs.homeManagerModules.packages
];

# This is required information for home-manager to do its job
home = {
stateVersion = "24.05";
username = "sakhib";
homeDirectory = "/home/sakhib";

# Tell it to map everything in the `config` directory in this
# repository to the `.config` in my home-manager directory
file.".config" = {
source = ../.github/configs/config;
recursive = true;
};

file.".local/share" = {
source = ../.github/configs/share;
recursive = true;
};

# Don't check if home manager is same as nixpkgs
enableNixpkgsReleaseCheck = false;
};

# Let's enable home-manager
programs.home-manager.enable = true;
}
10 changes: 10 additions & 0 deletions modules/home/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Add your reusable home-manager modules to this directory, on their own file (https://nixos.wiki/wiki/Module).
# These should be stuff you would like to share with others, not your personal configurations.
{
# List your module files here
zsh = import ./zsh;
neovim = import ./neovim;
nixpkgs = import ./nixpkgs;
topgrade = import ./topgrade;
packages = import ./packages;
}
Loading

0 comments on commit 1df02ef

Please sign in to comment.