mirror of
https://git.in.rschanz.org/ryan77627/guix-config.git
synced 2024-11-07 07:36:09 -05:00
flakes work!
This commit is contained in:
parent
9672616f43
commit
9396554c21
6 changed files with 115 additions and 10 deletions
|
@ -139,7 +139,8 @@
|
||||||
("waybar" ,(local-file "waybar" #:recursive? #t))
|
("waybar" ,(local-file "waybar" #:recursive? #t))
|
||||||
("alacritty" ,(local-file "alacritty" #:recursive? #t))
|
("alacritty" ,(local-file "alacritty" #:recursive? #t))
|
||||||
("aerc" ,(local-file "aerc" #:recursive? #t))
|
("aerc" ,(local-file "aerc" #:recursive? #t))
|
||||||
("home-manager" ,(local-file "nix-home-manager" #:recursive? #t)) ))
|
("home-manager" ,(local-file "nix-home-manager" #:recursive? #t))
|
||||||
|
("nix" ,(local-file "nix-config" #:recursive? #t)) ))
|
||||||
(service home-files-service-type
|
(service home-files-service-type
|
||||||
`((".local/share/nvim/site/autoload/plug.vim" ,(local-file "nvim/plugin-manager/plug.vim"))
|
`((".local/share/nvim/site/autoload/plug.vim" ,(local-file "nvim/plugin-manager/plug.vim"))
|
||||||
(".ssh/config" ,(local-file "ssh/config"))
|
(".ssh/config" ,(local-file "ssh/config"))
|
||||||
|
|
1
home-config/nix-config/nix.conf
Normal file
1
home-config/nix-config/nix.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
experimental-features = nix-command flakes
|
69
home-config/nix-home-manager/flake.lock
Normal file
69
home-config/nix-home-manager/flake.lock
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"home-manager": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1708031129,
|
||||||
|
"narHash": "sha256-EH20hJfNnc1/ODdDVat9B7aKm0B95L3YtkIRwKLvQG8=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"rev": "3d6791b3897b526c82920a2ab5f61d71985b3cf8",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"hyprpicker-git": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1703987863,
|
||||||
|
"narHash": "sha256-MHhAk74uk0qHVwSkLCcXLXMe4478M2oZEFPXwjSoo2E=",
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprpicker",
|
||||||
|
"rev": "2ef703474fb96e97e03e66e8820f213359f29382",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprpicker",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1707956935,
|
||||||
|
"narHash": "sha256-ZL2TrjVsiFNKOYwYQozpbvQSwvtV/3Me7Zwhmdsfyu4=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "a4d4fe8c5002202493e87ec8dbc91335ff55552c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"home-manager": "home-manager",
|
||||||
|
"hyprpicker-git": "hyprpicker-git",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
39
home-config/nix-home-manager/flake.nix
Normal file
39
home-config/nix-home-manager/flake.nix
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{
|
||||||
|
description = "Home Manager configuration of ryan";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
# Specify the source of Home Manager and Nixpkgs.
|
||||||
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
hyprpicker-git = {
|
||||||
|
url = "github:hyprwm/hyprpicker";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = { nixpkgs, home-manager, hyprpicker-git, ... }:
|
||||||
|
let
|
||||||
|
system = "x86_64-linux";
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
overlays = [
|
||||||
|
hyprpicker-git.overlays.default
|
||||||
|
];
|
||||||
|
in {
|
||||||
|
homeConfigurations."ryan" = home-manager.lib.homeManagerConfiguration {
|
||||||
|
inherit pkgs;
|
||||||
|
|
||||||
|
# Specify your home configuration modules here, for example,
|
||||||
|
# the path to your home.nix.
|
||||||
|
modules = [
|
||||||
|
./home.nix
|
||||||
|
{nixpkgs.overlays = overlays;}
|
||||||
|
];
|
||||||
|
|
||||||
|
# Optionally use extraSpecialArgs
|
||||||
|
# to pass through arguments to home.nix
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -13,18 +13,12 @@
|
||||||
# You should not change this value, even if you update Home Manager. If you do
|
# You should not change this value, even if you update Home Manager. If you do
|
||||||
# want to update the value, then make sure to first check the Home Manager
|
# want to update the value, then make sure to first check the Home Manager
|
||||||
# release notes.
|
# release notes.
|
||||||
home.stateVersion = "22.11"; # Please read the comment before changing.
|
home.stateVersion = "23.11"; # Please read the comment before changing.
|
||||||
|
|
||||||
# Enable nix flakes
|
|
||||||
nix = {
|
|
||||||
package = pkgs.nix;
|
|
||||||
settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
# This value will set some environment variables to allow home-manager to
|
# This value will set some environment variables to allow home-manager to
|
||||||
# function better outside of NixOS
|
# function better outside of NixOS
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
targets.genericLinux.enable = true;
|
#targets.genericLinux.enable = true;
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
|
|
||||||
# The home.packages option allows you to install Nix packages into your
|
# The home.packages option allows you to install Nix packages into your
|
||||||
|
@ -47,6 +41,7 @@
|
||||||
waypaper
|
waypaper
|
||||||
gdu
|
gdu
|
||||||
spotify-player
|
spotify-player
|
||||||
|
hyprpicker
|
||||||
|
|
||||||
# # It is sometimes useful to fine-tune packages, for example, by applying
|
# # It is sometimes useful to fine-tune packages, for example, by applying
|
||||||
# # overrides. You can do that directly here, just don't forget the
|
# # overrides. You can do that directly here, just don't forget the
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
(("\\<(hyprctl-share-picker)\\>" _ cmd)
|
(("\\<(hyprctl-share-picker)\\>" _ cmd)
|
||||||
(string-append #$output "/bin/" cmd))))))))
|
(string-append #$output "/bin/" cmd))))))))
|
||||||
(native-inputs (list gcc-13 pkg-config wayland hyprlang))
|
(native-inputs (list gcc-13 pkg-config wayland hyprlang))
|
||||||
(inputs (list bash-minimal grim hyprland hyprland-protocols mesa pipewire qtbase-5 sdbus-c++ slurp wayland-protocols qtwayland-5))
|
(inputs (list bash-minimal grim hyprland hyprland-protocols mesa pipewire qtbase sdbus-c++ slurp wayland-protocols qtwayland))
|
||||||
(home-page "")
|
(home-page "")
|
||||||
(synopsis "test")
|
(synopsis "test")
|
||||||
(description "test")
|
(description "test")
|
||||||
|
|
Loading…
Reference in a new issue