Compare commits

...

10 commits

Author SHA1 Message Date
Culis Gaspard
479bb8028a alacritty: Added "fira-code-nerdfont" package install 2024-09-18 14:32:19 +02:00
Culis Gaspard
c040f83c51 profiles -> culisg: Import "term" module 2024-09-18 14:19:14 +02:00
Culis Gaspard
42cc20e9a4 bash: Fix bashrc nix config 2024-09-18 14:15:14 +02:00
Culis Gaspard
5988dcc257 bash: Don't HM copy "bash_profile" anymore 2024-09-18 13:52:25 +02:00
Culis Gaspard
ec32717861 profiles -> culisg: Fixed home-manager installation 2024-09-18 13:50:23 +02:00
Culis Gaspard
77ce171dac helix: Set "EDITOR" env variable in nix config 2024-09-18 13:49:52 +02:00
Culis Gaspard
c575ff0a3c term: Added nix config 2024-09-18 13:49:32 +02:00
Culis Gaspard
0a11783ba3 shell: Added nix config 2024-09-18 13:44:20 +02:00
Culis Gaspard
551aeea2fa helix -> nix: Copy config using home manager 2024-09-16 14:59:57 +02:00
Culis Gaspard
12b63427c7 nix: Added hypr config 2024-09-16 14:59:29 +02:00
12 changed files with 395 additions and 4 deletions

6
de/default.nix Normal file
View file

@ -0,0 +1,6 @@
{
imports = [
./hypr
];
}

15
de/hypr/default.nix Normal file
View file

@ -0,0 +1,15 @@
{
hy3,
pkgs,
...
} : {
home.file = {
".config/hypr/hyprland.conf.d".source = ./hyprland.conf.d;
};
wayland.windowManager.hyprland = {
enable = true;
extraConfig = builtins.readFile ./hyprland.conf;
plugins = [ hy3.packages.${pkgs.system}.hy3 ];
};
}

View file

@ -5,4 +5,13 @@
home.packages =[
pkgs.helix
];
home.file = {
".config/helix/config.toml".source = ./config.toml;
".config/helix/languages.toml".source = ./languages.toml;
};
home.sessionVariables = {
EDITOR = "hx";
};
}

View file

@ -1,5 +1,42 @@
{
"nodes": {
"aquamarine": {
"inputs": {
"hyprutils": [
"hy3",
"hyprland",
"hyprutils"
],
"hyprwayland-scanner": [
"hy3",
"hyprland",
"hyprwayland-scanner"
],
"nixpkgs": [
"hy3",
"hyprland",
"nixpkgs"
],
"systems": [
"hy3",
"hyprland",
"systems"
]
},
"locked": {
"lastModified": 1725199881,
"narHash": "sha256-jsmipf/u1GFZE5tBUkr56CHMN6VpUWCAjfLIhvQijU0=",
"owner": "hyprwm",
"repo": "aquamarine",
"rev": "f8a687dd29ff019657498f1bd14da2fbbf0e604b",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "aquamarine",
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
@ -20,7 +57,216 @@
"type": "github"
}
},
"hy3": {
"inputs": {
"hyprland": "hyprland"
},
"locked": {
"lastModified": 1725825817,
"narHash": "sha256-hBvwaMlgBuR2cB1Kx6cA1z7x38HXUujNcHtBsKhaEZs=",
"owner": "outfoxxed",
"repo": "hy3",
"rev": "4b194eb5486b89102726ad5f4492bb3440c46031",
"type": "github"
},
"original": {
"owner": "outfoxxed",
"repo": "hy3",
"type": "github"
}
},
"hyprcursor": {
"inputs": {
"hyprlang": [
"hy3",
"hyprland",
"hyprlang"
],
"nixpkgs": [
"hy3",
"hyprland",
"nixpkgs"
],
"systems": [
"hy3",
"hyprland",
"systems"
]
},
"locked": {
"lastModified": 1722623071,
"narHash": "sha256-sLADpVgebpCBFXkA1FlCXtvEPu1tdEsTfqK1hfeHySE=",
"owner": "hyprwm",
"repo": "hyprcursor",
"rev": "912d56025f03d41b1ad29510c423757b4379eb1c",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "hyprcursor",
"type": "github"
}
},
"hyprland": {
"inputs": {
"aquamarine": "aquamarine",
"hyprcursor": "hyprcursor",
"hyprlang": "hyprlang",
"hyprutils": "hyprutils",
"hyprwayland-scanner": "hyprwayland-scanner",
"nixpkgs": "nixpkgs",
"systems": "systems",
"xdph": "xdph"
},
"locked": {
"lastModified": 1725814101,
"narHash": "sha256-+wE97utoDfhQP6AMdZHUmBeL8grbce/Jv2i5M+6AbaE=",
"ref": "refs/heads/main",
"rev": "0f594732b063a90d44df8c5d402d658f27471dfe",
"revCount": 5196,
"submodules": true,
"type": "git",
"url": "https://github.com/hyprwm/Hyprland"
},
"original": {
"rev": "0f594732b063a90d44df8c5d402d658f27471dfe",
"submodules": true,
"type": "git",
"url": "https://github.com/hyprwm/Hyprland"
}
},
"hyprland-protocols": {
"inputs": {
"nixpkgs": [
"hy3",
"hyprland",
"xdph",
"nixpkgs"
],
"systems": [
"hy3",
"hyprland",
"xdph",
"systems"
]
},
"locked": {
"lastModified": 1721326555,
"narHash": "sha256-zCu4R0CSHEactW9JqYki26gy8h9f6rHmSwj4XJmlHgg=",
"owner": "hyprwm",
"repo": "hyprland-protocols",
"rev": "5a11232266bf1a1f5952d5b179c3f4b2facaaa84",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "hyprland-protocols",
"type": "github"
}
},
"hyprlang": {
"inputs": {
"hyprutils": [
"hy3",
"hyprland",
"hyprutils"
],
"nixpkgs": [
"hy3",
"hyprland",
"nixpkgs"
],
"systems": [
"hy3",
"hyprland",
"systems"
]
},
"locked": {
"lastModified": 1725188252,
"narHash": "sha256-yBH8c4GDaEAtBrh+BqIlrx5vp6gG/Gu8fQQK63KAQgs=",
"owner": "hyprwm",
"repo": "hyprlang",
"rev": "c12ab785ce1982f82594aff03b3104c598186ddd",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "hyprlang",
"type": "github"
}
},
"hyprutils": {
"inputs": {
"nixpkgs": [
"hy3",
"hyprland",
"nixpkgs"
],
"systems": [
"hy3",
"hyprland",
"systems"
]
},
"locked": {
"lastModified": 1724966483,
"narHash": "sha256-WXDgKIbzjYKczxSZOsJplCS1i1yrTUpsDPuJV/xpYLo=",
"owner": "hyprwm",
"repo": "hyprutils",
"rev": "8976e3f6a5357da953a09511d0c7f6a890fb6ec2",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "hyprutils",
"type": "github"
}
},
"hyprwayland-scanner": {
"inputs": {
"nixpkgs": [
"hy3",
"hyprland",
"nixpkgs"
],
"systems": [
"hy3",
"hyprland",
"systems"
]
},
"locked": {
"lastModified": 1721324119,
"narHash": "sha256-SOOqIT27/X792+vsLSeFdrNTF+OSRp5qXv6Te+fb2Qg=",
"owner": "hyprwm",
"repo": "hyprwayland-scanner",
"rev": "a048a6cb015340bd82f97c1f40a4b595ca85cc30",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "hyprwayland-scanner",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1725103162,
"narHash": "sha256-Ym04C5+qovuQDYL/rKWSR+WESseQBbNAe5DsXNx5trY=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "12228ff1752d7b7624a54e9c1af4b222b3c1073b",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1726243404,
"narHash": "sha256-sjiGsMh+1cWXb53Tecsm4skyFNag33GPbVgCdfj3n9I=",
@ -39,7 +285,60 @@
"root": {
"inputs": {
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
"hy3": "hy3",
"hyprland": [
"hy3",
"hyprland"
],
"nixpkgs": "nixpkgs_2"
}
},
"systems": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"owner": "nix-systems",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default-linux",
"type": "github"
}
},
"xdph": {
"inputs": {
"hyprland-protocols": "hyprland-protocols",
"hyprlang": [
"hy3",
"hyprland",
"hyprlang"
],
"nixpkgs": [
"hy3",
"hyprland",
"nixpkgs"
],
"systems": [
"hy3",
"hyprland",
"systems"
]
},
"locked": {
"lastModified": 1725203932,
"narHash": "sha256-VLULC/OnI+6R9KEP2OIGk+uLJJsfRlaLouZ5gyFd2+Y=",
"owner": "hyprwm",
"repo": "xdg-desktop-portal-hyprland",
"rev": "2425e8f541525fa7409d9f26a8ffaf92a3767251",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "xdg-desktop-portal-hyprland",
"type": "github"
}
}
},

View file

@ -7,9 +7,18 @@
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
# Hyprland
hyprland = {
url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
follows = "hy3/hyprland";
};
hy3 = {
url = "github:outfoxxed/hy3";
};
};
outputs = { self, nixpkgs, home-manager }:
outputs = { self, nixpkgs, home-manager, hy3, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
@ -18,6 +27,7 @@
homeConfigurations."culisg@im2ag" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {inherit hy3;};
modules = [
./nix/profiles/culisg.nix
];

View file

@ -3,7 +3,12 @@
home.homeDirectory = "/home/c/culisg";
home.stateVersion = "24.05";
programs.home-manager.enable = true;
imports = [
../../shell
../../term
../../editor
../../de
];
}

View file

@ -13,7 +13,7 @@ fi
# Start in zellij by default
export ZELLIJ_AUTO_EXIT=true
export ZELLIJ_CONFIG_FILE=~/.config/zellij/config.kdl
eval "$(zellij setup --generate-auto-start bash)"
# eval "$(zellij setup --generate-auto-start bash)"
# fnm
FNM_PATH="$HOME/.local/share/fnm"

View file

@ -23,7 +23,7 @@ fi
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/.local/bin:$HOME/.nix-profile/bin:$PATH"
export EDITOR="hx"

19
shell/bash/default.nix Normal file
View file

@ -0,0 +1,19 @@
{
pkgs,
...
} : {
programs.bash = {
enable = true;
bashrcExtra = ". ${./.bashrc}";
};
home.file = {
".bash_aliases".source = ./.bash_aliases;
".bash_exec".source = ./.bash_exec;
};
home.packages = [
pkgs.starship
];
}

6
shell/default.nix Normal file
View file

@ -0,0 +1,6 @@
{
imports = [
./bash
];
}

View file

@ -0,0 +1,15 @@
{
pkgs,
...
} : {
home.file = {
".config/alacritty/alacritty.toml".source = ./alacritty.toml;
};
home.packages = [
pkgs.alacritty
pkgs.fira-code-nerdfont
];
}

7
term/default.nix Normal file
View file

@ -0,0 +1,7 @@
{
imports = [
./alacritty
];
}