Skip to content

Commit

Permalink
do more
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Jul 1, 2023
1 parent 77827b5 commit 8c21018
Show file tree
Hide file tree
Showing 60 changed files with 176 additions and 245 deletions.
1 change: 0 additions & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
- [hydra](../hosts/hydra/) A super mid spec latop
- [amatarasu](../hosts/amatarasu/) My high end gameing machine
- :electric_plug: [modules](../modules/)
- :lock: [secrets](secrets)

<details>
<summary> Hyprland Shortcuts </summary>
Expand Down
2 changes: 1 addition & 1 deletion env.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
env = "eyJhIjoiNjA0YTQxZmY1ZDI1NzQ5MzllZmJiMWM1NWJhYzA5MGUiLCJ0IjoiN2U5MzZlMjAtODE4ZS00N2UwLWE2ZjEtYmIxOTE3NmY0ZTE4IiwicyI6IllUSXdZelJqTm1RdE5qY3lNeTAwWmpNMExUbGpOell0TmpKall6RmxPVEpsTWpkaiJ9";
env = "#";
}
80 changes: 40 additions & 40 deletions flake.lock

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

29 changes: 8 additions & 21 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
flake-parts,
...
} @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} {
flake-parts.lib.mkFlake {inherit inputs;} ({withSystem, ...}: {
systems = [
"x86_64-linux"
];
Expand All @@ -16,44 +16,31 @@
{config._module.args._inputs = inputs // {inherit (inputs) self;};}

inputs.flake-parts.flakeModules.easyOverlay

./lib/args.nix # args that is passsed to the flake, moved away from the main file
];

flake = let
# extended nixpkgs lib, contains my custom functions
lib = import ./lib {inherit nixpkgs lib inputs;};
in {
# entry-point for nixos configurations
nixosConfigurations = import ./hosts {inherit nixpkgs self lib;};
nixosConfigurations = import ./hosts {inherit nixpkgs self lib withSystem;};
};

perSystem = {
config,
inputs',
#inputs',
pkgs,
system,
#system,
...
}: {
imports = [
{
_module.args.pkgs = import nixpkgs {
config.allowUnfree = true;
config.allowUnsupportedSystem = true;
inherit system;
};
}
];
imports = [{_module.args.pkgs = config.legacyPackages;}];

# provide the formatter for nix fmt
formatter = pkgs.alejandra;

# packages
packages = {
# A copy of Hyprland with its nixpkgs overriden
# cannot trigger binary cache pulls, so I push it to my own
hyprland-cached = inputs'.hyprland.packages.default;
};
};
};
});

inputs = {
flake-parts = {
Expand Down
5 changes: 3 additions & 2 deletions home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
config,
inputs,
self,
profiles,
inputs',
self',
...
}: let
user =
Expand All @@ -14,7 +15,7 @@ in {
useUserPackages = true;
useGlobalPkgs = true;
extraSpecialArgs = {
inherit inputs self profiles;
inherit inputs self inputs' self';
};
users = {
# home directory for the user
Expand Down
1 change: 0 additions & 1 deletion home/isabel/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
inputs,
pkgs,
config,
lib,
...
Expand Down
3 changes: 0 additions & 3 deletions home/isabel/packages/cli/confs/bat.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
osConfig,
lib,
pkgs,
inputs,
self,
...
}:
with lib; let
Expand Down
5 changes: 0 additions & 5 deletions home/isabel/packages/cli/confs/btop.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
osConfig,
lib,
pkgs,
inputs,
self,
...
}:
with lib; let
Expand All @@ -13,8 +10,6 @@ with lib; let
acceptedTypes = ["desktop" "laptop" "lite" "hybrid"];
in {
config = mkIf ((builtins.elem device.type acceptedTypes) && (programs.cli.enable)) {
home.packages = [pkgs.btop];

programs.btop = {
enable = true;
catppuccin.enable = true;
Expand Down
2 changes: 1 addition & 1 deletion home/isabel/packages/cli/confs/fish.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{pkgs, ...}: {
_: {
programs.fish = {
enable = true;
catppuccin.enable = true;
Expand Down
7 changes: 5 additions & 2 deletions home/isabel/packages/cli/confs/git.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ with lib; let
in {
config = mkIf ((builtins.elem device.type acceptedTypes) && (programs.cli.enable)) {
home.packages = with pkgs; [
gh-cal # github activity stats in the CLI
gist # manage github gists
act # local github actions
gitflow
Expand All @@ -25,7 +24,11 @@ in {
gh = {
enable = true;
enableGitCredentialHelper = false;
extensions = [];
extensions = with pkgs; [
gh-cal # github activity stats in the CLI
gh-dash # dashboard with pull requests and issues
gh-eco # explore the ecosystem
];
settings = {
git_protocol = "ssh";
prompt = "enabled";
Expand Down
3 changes: 1 addition & 2 deletions home/isabel/packages/cli/confs/nix-shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
osConfig,
lib,
pkgs,
inputs,
self,
...
}:
with lib; let
Expand All @@ -18,6 +16,7 @@ in {
alejandra
deadnix
nix-index
nix-tree
statix
];

Expand Down
4 changes: 0 additions & 4 deletions home/isabel/packages/cli/confs/starship.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
osConfig,
lib,
pkgs,
inputs,
self,
...
}:
with lib; let
Expand All @@ -13,7 +10,6 @@ with lib; let
acceptedTypes = ["desktop" "laptop" "lite" "hybrid"];
in {
config = mkIf ((builtins.elem device.type acceptedTypes) && (programs.cli.enable)) {
home.packages = [pkgs.starship];
programs.starship = {
enable = true;
catppuccin.enable = true;
Expand Down
2 changes: 0 additions & 2 deletions home/isabel/packages/cli/shared.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
osConfig,
lib,
pkgs,
inputs,
self,
...
}:
with lib; let
Expand Down
Loading

0 comments on commit 8c21018

Please sign in to comment.