feat(nix): add NUR
This commit is contained in:
parent
2a11856b8a
commit
6a425d6ac1
3 changed files with 41 additions and 34 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
nur.url = "github:nix-community/NUR";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
@ -12,17 +12,18 @@
|
||||||
url = "github:horriblename/hyprgrass";
|
url = "github:horriblename/hyprgrass";
|
||||||
inputs.hyprland.follows = "hyprland";
|
inputs.hyprland.follows = "hyprland";
|
||||||
};
|
};
|
||||||
|
|
||||||
ags.url = "github:Aylur/ags";
|
ags.url = "github:Aylur/ags";
|
||||||
|
|
||||||
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
|
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, ... }@attrs: {
|
outputs = { self, nixpkgs, home-manager, nur, ... }@attrs: {
|
||||||
nixosConfigurations.wim = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.wim = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = attrs;
|
specialArgs = attrs;
|
||||||
modules = [
|
modules = [
|
||||||
|
nur.nixosModules.nur
|
||||||
|
|
||||||
({ ... }: {
|
({ ... }: {
|
||||||
nix = {
|
nix = {
|
||||||
# Edit nix.conf
|
# Edit nix.conf
|
||||||
|
@ -40,7 +41,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
home-manager.extraSpecialArgs = attrs;
|
home-manager.extraSpecialArgs = attrs;
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ home-manager, ... }:
|
{ home-manager, nur, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
## Global config to add home-manager module
|
## Global config to add home-manager module
|
||||||
|
@ -19,6 +19,7 @@
|
||||||
home-manager.users.matt = {
|
home-manager.users.matt = {
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
nur.hmModules.nur
|
||||||
./dconf.nix
|
./dconf.nix
|
||||||
./theme.nix
|
./theme.nix
|
||||||
./hyprland.nix
|
./hyprland.nix
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs = {
|
programs = {
|
||||||
|
@ -24,17 +24,16 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs;
|
home.packages = (with pkgs.python311Packages; [
|
||||||
(with python311Packages; [
|
|
||||||
python
|
python
|
||||||
pyclip
|
pyclip
|
||||||
|
|
||||||
]) ++
|
]) ++
|
||||||
(with nodePackages; [
|
|
||||||
|
(with pkgs.nodePackages; [
|
||||||
undollar
|
undollar
|
||||||
|
|
||||||
]) ++
|
]) ++
|
||||||
(with plasma5Packages; [
|
|
||||||
|
(with pkgs.plasma5Packages; [
|
||||||
polkit-kde-agent
|
polkit-kde-agent
|
||||||
ark
|
ark
|
||||||
kcharselect
|
kcharselect
|
||||||
|
@ -50,14 +49,18 @@
|
||||||
kio-admin # needs to be both here and in system pkgs
|
kio-admin # needs to be both here and in system pkgs
|
||||||
kio-extras
|
kio-extras
|
||||||
kmime
|
kmime
|
||||||
|
|
||||||
]) ++
|
]) ++
|
||||||
(with gnome; [
|
|
||||||
|
(with pkgs.gnome; [
|
||||||
gnome-calculator
|
gnome-calculator
|
||||||
seahorse
|
seahorse
|
||||||
|
]) ++
|
||||||
|
|
||||||
]) ++ [
|
(with config.nur.repos.rycee; [
|
||||||
|
mozilla-addons-to-nix
|
||||||
|
]) ++
|
||||||
|
|
||||||
|
(with pkgs; [
|
||||||
# School
|
# School
|
||||||
virt-manager
|
virt-manager
|
||||||
gradle
|
gradle
|
||||||
|
@ -105,7 +108,7 @@
|
||||||
) &
|
) &
|
||||||
exec env SUDO_ASKPASS=${pkgs.plasma5Packages.ksshaskpass}/bin/${pkgs.plasma5Packages.ksshaskpass.pname} sudo -k -EA "${gparted}/bin/${gparted.pname}" "$@"
|
exec env SUDO_ASKPASS=${pkgs.plasma5Packages.ksshaskpass}/bin/${pkgs.plasma5Packages.ksshaskpass.pname} sudo -k -EA "${gparted}/bin/${gparted.pname}" "$@"
|
||||||
'')
|
'')
|
||||||
];
|
]);
|
||||||
|
|
||||||
xdg.desktopEntries.gparted = {
|
xdg.desktopEntries.gparted = {
|
||||||
name = "GParted";
|
name = "GParted";
|
||||||
|
|
Loading…
Reference in a new issue