Setting up rofi

This commit is contained in:
Miguel Palhas
2024-10-05 11:44:41 +01:00
parent ccbcd5601f
commit e2f324ffaa
18 changed files with 199 additions and 157 deletions
Generated
+60 -116
View File
@@ -20,11 +20,11 @@
]
},
"locked": {
"lastModified": 1726665257,
"narHash": "sha256-rEzEZtd3iyVo5RJ1OGujOlnywNf3gsrOnjAn1NLciD4=",
"lastModified": 1725199881,
"narHash": "sha256-jsmipf/u1GFZE5tBUkr56CHMN6VpUWCAjfLIhvQijU0=",
"owner": "hyprwm",
"repo": "aquamarine",
"rev": "752d0fbd141fabb5a1e7f865199b80e6e76f8d8e",
"rev": "f8a687dd29ff019657498f1bd14da2fbbf0e604b",
"type": "github"
},
"original": {
@@ -51,11 +51,11 @@
},
"catppuccin": {
"locked": {
"lastModified": 1726952185,
"narHash": "sha256-l/HbsQjJMT6tlf8KCooFYi3J6wjIips3n6/aWAoLY4g=",
"lastModified": 1727910534,
"narHash": "sha256-IjdGPDnBNk3r5h02kiPTKUOfn+UiKNWlhy/ozC0NgyQ=",
"owner": "catppuccin",
"repo": "nix",
"rev": "630b559cc1cb4c0bdd525af506935323e4ccd5d1",
"rev": "bad96d3fabf8d2e8f0bf0c2cb899a9fccf01ea03",
"type": "github"
},
"original": {
@@ -181,11 +181,11 @@
]
},
"locked": {
"lastModified": 1726153070,
"narHash": "sha256-HO4zgY0ekfwO5bX0QH/3kJ/h4KvUDFZg8YpkNwIbg1U=",
"lastModified": 1727826117,
"narHash": "sha256-K5ZLCyfO/Zj9mPFldf3iwS6oZStJcU4tSpiXTMYaaL0=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "bcef6817a8b2aa20a5a6dbb19b43e63c5bf8619a",
"rev": "3d04084d54bedc3d6b8b736c70ef449225c361b1",
"type": "github"
},
"original": {
@@ -233,11 +233,11 @@
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1728033094,
"narHash": "sha256-6v9Nj+8PnALQE3CW6tSu8gmFB9U9UFIRHeo2VIlWblE=",
"lastModified": 1728119511,
"narHash": "sha256-kJHt+BoDTc9aYXnmy7X+kQto9cT77lDKHAYp5FyY4OY=",
"owner": "shazow",
"repo": "foundry.nix",
"rev": "84be75ae73447a8c67ab8a0be2bc24d7bee87940",
"rev": "c45f6bc1f2110b1d209e116be203648a06a02f80",
"type": "github"
},
"original": {
@@ -291,11 +291,11 @@
]
},
"locked": {
"lastModified": 1727514110,
"narHash": "sha256-0YRcOxJG12VGDFH8iS8pJ0aYQQUAgo/r3ZAL+cSh9nk=",
"lastModified": 1728092656,
"narHash": "sha256-eMeCTJZ5xBeQ0f9Os7K8DThNVSo9gy4umZLDfF5q6OM=",
"owner": "cachix",
"repo": "git-hooks.nix",
"rev": "85f7a7177c678de68224af3402ab8ee1bcee25c8",
"rev": "1211305a5b237771e13fcca0c51e60ad47326a9a",
"type": "github"
},
"original": {
@@ -377,11 +377,11 @@
]
},
"locked": {
"lastModified": 1727246346,
"narHash": "sha256-TcUaKtya339Asu+g6KTJ8h7KiKcKXKp2V+At+7tksyY=",
"lastModified": 1728041527,
"narHash": "sha256-03liqiJtk9UP7YQHW4r8MduKCK242FQzud8iWvvlK+o=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "1e22ef1518fb175d762006f9cae7f6312b8caedb",
"rev": "509dbf8d45606b618e9ec3bbe4e936b7c5bc6c1e",
"type": "github"
},
"original": {
@@ -398,11 +398,11 @@
]
},
"locked": {
"lastModified": 1727383923,
"narHash": "sha256-4/vacp3CwdGoPf8U4e/N8OsGYtO09WTcQK5FqYfJbKs=",
"lastModified": 1728041527,
"narHash": "sha256-03liqiJtk9UP7YQHW4r8MduKCK242FQzud8iWvvlK+o=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "ffe2d07e771580a005e675108212597e5b367d2d",
"rev": "509dbf8d45606b618e9ec3bbe4e936b7c5bc6c1e",
"type": "github"
},
"original": {
@@ -511,11 +511,11 @@
]
},
"locked": {
"lastModified": 1725997860,
"narHash": "sha256-d/rZ/fHR5l1n7PeyLw0StWMNLXVU9c4HFyfskw568so=",
"lastModified": 1725188252,
"narHash": "sha256-yBH8c4GDaEAtBrh+BqIlrx5vp6gG/Gu8fQQK63KAQgs=",
"owner": "hyprwm",
"repo": "hyprlang",
"rev": "dfeb5811dd6485490cce18d6cc1e38a055eea876",
"rev": "c12ab785ce1982f82594aff03b3104c598186ddd",
"type": "github"
},
"original": {
@@ -536,38 +536,11 @@
]
},
"locked": {
"lastModified": 1727219120,
"narHash": "sha256-wmT+JpnDk6EjgASU2VGfS0nnu6oKA4Cw25o5fzpDD/Q=",
"lastModified": 1724966483,
"narHash": "sha256-WXDgKIbzjYKczxSZOsJplCS1i1yrTUpsDPuJV/xpYLo=",
"owner": "hyprwm",
"repo": "hyprutils",
"rev": "db956287d3aa194dda91d05c8eb286de2a569edf",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "hyprutils",
"type": "github"
}
},
"hyprutils_2": {
"inputs": {
"nixpkgs": [
"hyprland",
"xdph",
"nixpkgs"
],
"systems": [
"hyprland",
"xdph",
"systems"
]
},
"locked": {
"lastModified": 1727300645,
"narHash": "sha256-OvAtVLaSRPnbXzOwlR1fVqCXR7i+ICRX3aPMCdIiv+c=",
"owner": "hyprwm",
"repo": "hyprutils",
"rev": "3f5293432b6dc6a99f26aca2eba3876d2660665c",
"rev": "8976e3f6a5357da953a09511d0c7f6a890fb6ec2",
"type": "github"
},
"original": {
@@ -588,38 +561,11 @@
]
},
"locked": {
"lastModified": 1726840673,
"narHash": "sha256-HIPEXyRRVZoqD6U+lFS1B0tsIU7p83FaB9m7KT/x6mQ=",
"lastModified": 1721324119,
"narHash": "sha256-SOOqIT27/X792+vsLSeFdrNTF+OSRp5qXv6Te+fb2Qg=",
"owner": "hyprwm",
"repo": "hyprwayland-scanner",
"rev": "b68dab23fc922eae99306988133ee80a40b39ca5",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "hyprwayland-scanner",
"type": "github"
}
},
"hyprwayland-scanner_2": {
"inputs": {
"nixpkgs": [
"hyprland",
"xdph",
"nixpkgs"
],
"systems": [
"hyprland",
"xdph",
"systems"
]
},
"locked": {
"lastModified": 1726874836,
"narHash": "sha256-VKR0sf0PSNCB0wPHVKSAn41mCNVCnegWmgkrneKDhHM=",
"owner": "hyprwm",
"repo": "hyprwayland-scanner",
"rev": "500c81a9e1a76760371049a8d99e008ea77aa59e",
"rev": "a048a6cb015340bd82f97c1f40a4b595ca85cc30",
"type": "github"
},
"original": {
@@ -694,11 +640,11 @@
]
},
"locked": {
"lastModified": 1727507295,
"narHash": "sha256-I/FrX1peu4URoj5T5odfuKR2rm4GjYJJpCGF9c0/lDA=",
"lastModified": 1727999297,
"narHash": "sha256-LTJuQPCsSItZ/8TieFeP30iY+uaLoD0mT0tAj1gLeyQ=",
"owner": "lnl7",
"repo": "nix-darwin",
"rev": "f2e1c4aa29fc211947c3a7113cba1dd707433b70",
"rev": "8c8388ade72e58efdeae71b4cbb79e872c23a56b",
"type": "github"
},
"original": {
@@ -738,11 +684,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1726755586,
"narHash": "sha256-PmUr/2GQGvFTIJ6/Tvsins7Q43KTMvMFhvG6oaYK+Wk=",
"lastModified": 1725103162,
"narHash": "sha256-Ym04C5+qovuQDYL/rKWSR+WESseQBbNAe5DsXNx5trY=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c04d5652cfa9742b1d519688f65d1bbccea9eb7e",
"rev": "12228ff1752d7b7624a54e9c1af4b222b3c1073b",
"type": "github"
},
"original": {
@@ -770,11 +716,11 @@
},
"nixpkgs_4": {
"locked": {
"lastModified": 1726937504,
"narHash": "sha256-bvGoiQBvponpZh8ClUcmJ6QnsNKw0EMrCQJARK3bI1c=",
"lastModified": 1728018373,
"narHash": "sha256-NOiTvBbRLIOe5F6RbHaAh6++BNjsb149fGZd1T4+KBg=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "9357f4f23713673f310988025d9dc261c20e70c6",
"rev": "bc947f541ae55e999ffdb4013441347d83b00feb",
"type": "github"
},
"original": {
@@ -786,11 +732,11 @@
},
"nixpkgs_5": {
"locked": {
"lastModified": 1727348695,
"narHash": "sha256-J+PeFKSDV+pHL7ukkfpVzCOO7mBSrrpJ3svwBFABbhI=",
"lastModified": 1728018373,
"narHash": "sha256-NOiTvBbRLIOe5F6RbHaAh6++BNjsb149fGZd1T4+KBg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "1925c603f17fc89f4c8f6bf6f631a802ad85d784",
"rev": "bc947f541ae55e999ffdb4013441347d83b00feb",
"type": "github"
},
"original": {
@@ -813,11 +759,11 @@
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1727557953,
"narHash": "sha256-xe8JQaNOPTyzWsSlLu2yC6qw4SjOMHrXk4Iq+pIgLhM=",
"lastModified": 1728118042,
"narHash": "sha256-UL738XeO0WlfqcCsA25vVjeqoBHyXqmOcy3uq6qtgHI=",
"owner": "nix-community",
"repo": "nixvim",
"rev": "2c4e4681db658deeceb2f781136d7ba1d0009521",
"rev": "aeb6ae37a78db5499a78dca5dbe2e8bf2bf5fce6",
"type": "github"
},
"original": {
@@ -835,11 +781,11 @@
]
},
"locked": {
"lastModified": 1727452028,
"narHash": "sha256-ehl/A4HQFRyqj1Fk7cl+dgSf/2Fb1jLwWJtZaMU6RfU=",
"lastModified": 1728017046,
"narHash": "sha256-ofWYux/uUAv8wq7sWw8XWke0sh8p4qYxSOn8d+EaJ8c=",
"owner": "NuschtOS",
"repo": "search",
"rev": "9f7426e532ef8dfc839c4a3fcc567b13a20a70d3",
"rev": "ba81d9c1eae20fc3a1cd066062a05ac2e799e629",
"type": "github"
},
"original": {
@@ -851,11 +797,11 @@
"nvchad-starter": {
"flake": false,
"locked": {
"lastModified": 1727828331,
"narHash": "sha256-cb0glXaPYU31Nai8hSCD60DKvU0rH1i769bT7sBxcQ0=",
"lastModified": 1728120198,
"narHash": "sha256-aRelT5eqYpuoJgygkWCAl2uwkjdeWmDJ9aujyMFj7i4=",
"owner": "naps62",
"repo": "nvchad-starter",
"rev": "76da790a27dbe470a9cb8d7e6e7c874fc0656cc7",
"rev": "9981dee65a037f762edee79d8e6c39efee6206e4",
"type": "github"
},
"original": {
@@ -874,11 +820,11 @@
]
},
"locked": {
"lastModified": 1728010959,
"narHash": "sha256-X+v33SZtir3yMUgeGn8ggFHqpiZ12VOxcf65NvVlrZU=",
"lastModified": 1728096945,
"narHash": "sha256-W5DPDBb/+SqmtBdInHVgbgBe2GhYD0wnnPcnMpuCrRc=",
"owner": "nix-community",
"repo": "nix4nvchad",
"rev": "e7ce4ed7a6d7f1c1e529a8cfe8096f96d8448fb0",
"rev": "5c4d85b9b16dab043630f8e4f1e428490e6cfdfa",
"type": "github"
},
"original": {
@@ -971,11 +917,11 @@
]
},
"locked": {
"lastModified": 1727431250,
"narHash": "sha256-uGRlRT47ecicF9iLD1G3g43jn2e+b5KaMptb59LHnvM=",
"lastModified": 1727984844,
"narHash": "sha256-xpRqITAoD8rHlXQafYZOLvUXCF6cnZkPfoq67ThN0Hc=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "879b29ae9a0378904fbbefe0dadaed43c8905754",
"rev": "4446c7a6fc0775df028c5a3f6727945ba8400e64",
"type": "github"
},
"original": {
@@ -1009,8 +955,6 @@
"hyprland",
"hyprlang"
],
"hyprutils": "hyprutils_2",
"hyprwayland-scanner": "hyprwayland-scanner_2",
"nixpkgs": [
"hyprland",
"nixpkgs"
@@ -1021,11 +965,11 @@
]
},
"locked": {
"lastModified": 1727109343,
"narHash": "sha256-1PFckA8Im7wMSl26okwOKqBZeCFLD3LvZZFaxswDhbY=",
"lastModified": 1725203932,
"narHash": "sha256-VLULC/OnI+6R9KEP2OIGk+uLJJsfRlaLouZ5gyFd2+Y=",
"owner": "hyprwm",
"repo": "xdg-desktop-portal-hyprland",
"rev": "4adb6c4c41ee5014bfe608123bfeddb26e5f5cea",
"rev": "2425e8f541525fa7409d9f26a8ffaf92a3767251",
"type": "github"
},
"original": {
+47 -15
View File
@@ -1,7 +1,12 @@
{
description = "naps62's nix config";
nixConfig = { experimental-features = [ "nix-command" "flakes" ]; };
nixConfig = {
experimental-features = [
"nix-command"
"flakes"
];
};
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
@@ -29,37 +34,59 @@
url = "github:naps62/nvchad-starter";
flake = false;
};
foundry = { url = "github:shazow/foundry.nix/monthly"; };
foundry = {
url = "github:shazow/foundry.nix/monthly";
};
utils.url = "github:numtide/flake-utils";
};
outputs =
{ self, systems, nixpkgs, home-manager, utils, catppuccin, ... }@inputs:
{
self,
systems,
nixpkgs,
home-manager,
utils,
catppuccin,
...
}@inputs:
let
inherit (self) outputs;
pkgsFor = nixpkgs.lib.genAttrs (import systems) (system:
pkgsFor = nixpkgs.lib.genAttrs (import systems) (
system:
import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [ inputs.foundry.overlay ];
});
}
);
x86 = pkgsFor.x86_64-linux;
aarch64 = pkgsFor.aarch64-linux;
mkNixOS = name:
mkNixOS =
name:
nixpkgs.lib.nixosSystem {
modules = [ ./hosts/${name} catppuccin.nixosModules.catppuccin ];
specialArgs = { inherit inputs outputs; };
modules = [
./hosts/${name}
catppuccin.nixosModules.catppuccin
];
specialArgs = {
inherit inputs outputs;
};
};
mkHome = name: pkgs:
mkHome =
name: pkgs:
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./home/${name} ];
extraSpecialArgs = { inherit inputs outputs catppuccin; };
extraSpecialArgs = {
inherit inputs outputs catppuccin;
};
};
in {
in
{
nixosConfigurations = {
laptop = mkNixOS "laptop";
arrakis = mkNixOS "arrakis";
@@ -75,10 +102,15 @@
pi = mkHome "pi" aarch64;
};
devShells = let
forEachSystem = nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ];
forEachPkg = f: forEachSystem (sys: f pkgsFor.${sys});
in forEachPkg (pkgs: import ./shell.nix { inherit pkgs; });
devShells =
let
forEachSystem = nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
];
forEachPkg = f: forEachSystem (sys: f pkgsFor.${sys});
in
forEachPkg (pkgs: import ./shell.nix { inherit pkgs; });
};
}
# Note: Can also be referenced withou
+2 -1
View File
@@ -1,13 +1,14 @@
{ config, pkgs, ... }: let
rofiLaunchers = import ../../../pkgs/rofi-launchers/package.nix {};
in {
imports = [./rofi.nix];
home.sessionVariables = {
HYPRCURSOR_THEME = "Phinger Cursors";
HYPRCURSOR_SIZE = 32;
ELECTRON_OZONE_PLATFORM_HINT = "auto";
XCURSOR_SIZE = 32;
};
home.packages = with pkgs; [rofi (callPackage ../../../pkgs/rofi-launchers/package.nix {})];
wayland.windowManager.hyprland = {
enable = true;
+1 -1
View File
@@ -1,3 +1,3 @@
{pkgs,...}:{
home.packages = with pkgs; [rofi (callPackage ../../../../../../pkgs/rofi-launchers/package.nix {})];
home.packages = with pkgs; [rofi (callPackage ../../../../pkgs/rofi-launchers/package.nix {})];
}
+14 -3
View File
@@ -1,5 +1,16 @@
{ inputs, pkgs, ... }: {
{ inputs, pkgs, ... }:
{
imports = [ inputs.nvchad4nix.homeManagerModule ];
home.sessionVariables = { EDITOR = "nvim"; };
programs.nvchad = { enable = true; };
home.sessionVariables = {
EDITOR = "nvim";
};
home.packages = with pkgs; [
nixfmt-rfc-style
biome
stylua
];
programs.nvchad = {
enable = true;
};
}
+2 -1
View File
@@ -1,4 +1,5 @@
{ config, lib, ... }: {
{ config, lib, ... }:
{
virtualisation.docker = {
enable = true;
rootless = {
+13 -2
View File
@@ -1,4 +1,10 @@
{ inputs, pkgs, fonts, ... }: {
{
inputs,
pkgs,
fonts,
...
}:
{
fonts = {
enableDefaultPackages = true;
packages = with pkgs; [
@@ -6,7 +12,12 @@
libertine
fira-code
fira-code-symbols
(nerdfonts.override { fonts = [ "FiraCode" "VictorMono" ]; })
(nerdfonts.override {
fonts = [
"FiraCode"
"VictorMono"
];
})
];
fontconfig = {
+3 -3
View File
@@ -2,7 +2,8 @@
let
tuigreet = "${pkgs.greetd.tuigreet}/bin/tuigreet";
hyprland-session = "${pkgs.hyprland}/share/wayland-sessions";
in {
in
{
programs.hyprland.enable = true;
environment.systemPackages = [ pkgs.hyprcursor ];
@@ -11,8 +12,7 @@ in {
enable = true;
settings = {
default_session = {
command =
"${tuigreet} --time --remember --remember-session --sessions ${hyprland-session}";
command = "${tuigreet} --time --remember --remember-session --sessions ${hyprland-session}";
user = "greeter";
};
};
+7 -2
View File
@@ -1,3 +1,8 @@
{ inputs, pkgs, ... }: {
networking = { networkmanager = { enable = true; }; };
{ inputs, pkgs, ... }:
{
networking = {
networkmanager = {
enable = true;
};
};
}
+2 -1
View File
@@ -1,4 +1,5 @@
{ config, pkgs, ... }: {
{ config, pkgs, ... }:
{
hardware.opengl.enable = true;
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
+2 -1
View File
@@ -1,4 +1,5 @@
{ config, pkgs, ... }: {
{ config, pkgs, ... }:
{
security.rtkit.enable = true;
services.pipewire = {
enable = true;
+4 -1
View File
@@ -1 +1,4 @@
{ pkgs, ... }: { environment.systemPackages = [ pkgs.syncthing ]; }
{ pkgs, ... }:
{
environment.systemPackages = [ pkgs.syncthing ];
}
+2 -1
View File
@@ -1,4 +1,5 @@
{ inputs, pkgs, ... }: {
{ inputs, pkgs, ... }:
{
environment.systemPackages = [
pkgs.btop
pkgs.fzf
+10 -3
View File
@@ -1,4 +1,5 @@
{ inputs, pkgs, ... }: {
{ inputs, pkgs, ... }:
{
imports = [
inputs.home-manager.nixosModules.home-manager
./nix.nix
@@ -6,9 +7,15 @@
./ssh.nix
];
environment.systemPackages = [ pkgs.home-manager pkgs.zsh pkgs.asdf-vm ];
environment.systemPackages = [
pkgs.home-manager
pkgs.zsh
pkgs.asdf-vm
];
time = { timeZone = "Europe/Lisbon"; };
time = {
timeZone = "Europe/Lisbon";
};
i18n = {
defaultLocale = "en_US.UTF-8";
+15 -3
View File
@@ -1,9 +1,21 @@
{ inputs, lib, nixpkgs, ... }: {
{
inputs,
lib,
nixpkgs,
...
}:
{
nix = {
settings = {
trusted-users = [ "'root" "@wheel" ];
trusted-users = [
"'root"
"@wheel"
];
auto-optimise-store = lib.mkDefault true;
experimental-features = [ "nix-command" "flakes" ];
experimental-features = [
"nix-command"
"flakes"
];
warn-dirty = false;
};
gc = {
+4 -1
View File
@@ -1 +1,4 @@
{ inputs, pkgs, ... }: { environment.systemPackages = [ pkgs.openssh ]; }
{ inputs, pkgs, ... }:
{
environment.systemPackages = [ pkgs.openssh ];
}
+2 -1
View File
@@ -1,4 +1,5 @@
{ inputs, pkgs, ... }: {
{ inputs, pkgs, ... }:
{
environment.systemPackages = [
# desktop apps
pkgs.google-chrome
+9 -1
View File
@@ -1,4 +1,12 @@
{ inputs, pkgs, modulesPath, nixpkgs, lib, ... }: {
{
inputs,
pkgs,
modulesPath,
nixpkgs,
lib,
...
}:
{
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
imports = [
(modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix")