Added NUR overlay
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 77 KiB |
@@ -50,7 +50,7 @@ mainbox {
|
|||||||
imagebox {
|
imagebox {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: url("~/.config/rofi/menus/launcher/flor01.png", width);
|
background-image: url("~/.config/rofi/nix.png", width);
|
||||||
orientation: vertical;
|
orientation: vertical;
|
||||||
children: [ "inputbar", "dummy", "mode-switcher" ];
|
children: [ "inputbar", "dummy", "mode-switcher" ];
|
||||||
}
|
}
|
||||||
|
|||||||
18
flake.lock
generated
18
flake.lock
generated
@@ -135,12 +135,28 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nur": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1669288341,
|
||||||
|
"narHash": "sha256-lGwsFdSDb+IBXSJwKhNLOP2yt7PDXxbL0uxN9ZVOy8I=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "NUR",
|
||||||
|
"rev": "107aad385e04edf5b4bd4136bf8defcd890ecfc7",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "NUR",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"emacs-overlay": "emacs-overlay",
|
"emacs-overlay": "emacs-overlay",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nix-colors": "nix-colors",
|
"nix-colors": "nix-colors",
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
"nur": "nur"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
11
flake.nix
11
flake.nix
@@ -3,15 +3,22 @@
|
|||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
|
|
||||||
|
# - Nixpkgs ----------------------------------
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.05";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.05";
|
||||||
|
|
||||||
|
# - Home-Manager -----------------------------
|
||||||
home-manager.url = "github:nix-community/home-manager/release-22.05";
|
home-manager.url = "github:nix-community/home-manager/release-22.05";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
nix-colors.url = "github:misterio77/nix-colors";
|
# - NUR --------------------------------------
|
||||||
|
nur.url = "github:nix-community/NUR";
|
||||||
|
|
||||||
|
# - Overlays ---------------------------------
|
||||||
emacs-overlay.url = "github:nix-community/emacs-overlay";
|
emacs-overlay.url = "github:nix-community/emacs-overlay";
|
||||||
|
|
||||||
|
# - Themeing ---------------------------------
|
||||||
|
nix-colors.url = "github:misterio77/nix-colors";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ { self, nixpkgs, home-manager, ... }:
|
outputs = inputs @ { self, nixpkgs, home-manager, ... }:
|
||||||
@@ -21,7 +28,7 @@
|
|||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
overlays = import ./overlays;
|
overlays = import ./overlays { inherit inputs; };
|
||||||
};
|
};
|
||||||
|
|
||||||
lib = nixpkgs.lib.extend
|
lib = nixpkgs.lib.extend
|
||||||
|
|||||||
@@ -39,8 +39,8 @@
|
|||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
# # Keyboard light
|
# Keyboard light
|
||||||
# services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
# SUBSYSTEM=="usb", ATTR{idVendor}=="048d", ATTR{idProduct}=="c101", MODE="0666"
|
SUBSYSTEM=="usb", ATTR{idVendor}=="048d", ATTR{idProduct}=="c101", MODE="0666"
|
||||||
# '';
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,5 +16,19 @@ in
|
|||||||
samfelag.modules.desktop.i3.extraKeybindings = lib.mkIf i3Cfg.enable {
|
samfelag.modules.desktop.i3.extraKeybindings = lib.mkIf i3Cfg.enable {
|
||||||
"${i3Cfg.mod}+Shift+i" = "exec ${pkgs.firefox}/bin/firefox";
|
"${i3Cfg.mod}+Shift+i" = "exec ${pkgs.firefox}/bin/firefox";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hm.programs.firefox = {
|
||||||
|
enable = true;
|
||||||
|
# extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
|
# # See https://nur.nix-community.org/repos/rycee/
|
||||||
|
# firefox-color
|
||||||
|
# ];
|
||||||
|
profiles.default = {
|
||||||
|
id = 0;
|
||||||
|
name = "Default";
|
||||||
|
isDefault = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.samfelag.modules.desktop.rofi;
|
cfg = config.samfelag.modules.desktop.rofi;
|
||||||
|
nix-colors-lib = inputs.nix-colors.lib-contrib { inherit pkgs; };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.samfelag.modules.desktop.rofi = {
|
options.samfelag.modules.desktop.rofi = {
|
||||||
@@ -13,15 +14,21 @@ in
|
|||||||
];
|
];
|
||||||
|
|
||||||
hm.xdg.configFile."rofi/menus".source = ../../config/.config/rofi/menus;
|
hm.xdg.configFile."rofi/menus".source = ../../config/.config/rofi/menus;
|
||||||
|
hm.xdg.configFile."rofi/nix.png".source = nix-colors-lib.nixWallpaperFromScheme {
|
||||||
|
scheme = config.colorScheme;
|
||||||
|
width = 600;
|
||||||
|
height = 600;
|
||||||
|
logoScale = 2.0;
|
||||||
|
};
|
||||||
|
|
||||||
# Themeing ---------------------------------
|
# Themeing ---------------------------------
|
||||||
hm.xdg.configFile."rofi/theme.rasi".text = ''
|
hm.xdg.configFile."rofi/theme.rasi".text = ''
|
||||||
* {
|
* {
|
||||||
font: "Iosevka Nerd Font 10";
|
font: "Iosevka Nerd Font 10";
|
||||||
background: #${config.colorScheme.colors.base00};
|
background: #${config.colorScheme.colors.base00};
|
||||||
background-alt: #${config.colorScheme.colors.base01};
|
background-alt: #${config.colorScheme.colors.base02};
|
||||||
foreground: #${config.colorScheme.colors.base05};
|
foreground: #${config.colorScheme.colors.base05};
|
||||||
selected: #${config.colorScheme.colors.base02};
|
selected: #${config.colorScheme.colors.base03};
|
||||||
active: #${config.colorScheme.colors.base07};
|
active: #${config.colorScheme.colors.base07};
|
||||||
urgent: #${config.colorScheme.colors.base06};
|
urgent: #${config.colorScheme.colors.base06};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,6 +59,16 @@ in
|
|||||||
name = "powerlevel10k";
|
name = "powerlevel10k";
|
||||||
src = "${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k";
|
src = "${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name = "zsh-nix-shell";
|
||||||
|
file = "nix-shell.plugin.zsh";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "chisui";
|
||||||
|
repo = "zsh-nix-shell";
|
||||||
|
rev = "v0.5.0";
|
||||||
|
sha256 = "0za4aiwwrlawnia4f29msk822rj9bgcygw6a8a6iikiwzjjz0g91";
|
||||||
|
};
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
{ inputs, ... }:
|
||||||
[
|
[
|
||||||
(import ./discord.nix)
|
(import ./discord.nix { })
|
||||||
|
(import ./nur.nix { nur = inputs.nur; })
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
self: super:
|
{ ... }:
|
||||||
{
|
(
|
||||||
discord = super.discord.overrideAttrs (_: {
|
final: prev:
|
||||||
src = builtins.fetchTarball https://discord.com/api/download?platform=linux&format=tar.gz;
|
{
|
||||||
});
|
discord = prev.discord.overrideAttrs (_: {
|
||||||
}
|
src = builtins.fetchTarball https://discord.com/api/download?platform=linux&format=tar.gz;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|||||||
9
overlays/nur.nix
Normal file
9
overlays/nur.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{ nur, ... }:
|
||||||
|
(
|
||||||
|
final: prev: {
|
||||||
|
nur = import nur {
|
||||||
|
nurpkgs = prev;
|
||||||
|
pkgs = prev;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user