Joey Hafner
71deb2f3a7
- Switch back to a reasonable home-manager.backupFileExtension - Extract defaultApplications to its own file, fix default apps not being "sticky" by using the `.desktop` file alone (without absolute path). - Run "fastfetch" by name in zsh.initExtra.
102 lines
3.2 KiB
Nix
102 lines
3.2 KiB
Nix
{
|
|
description = "Joey's Flake";
|
|
inputs = {
|
|
# Package repositories:
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-24.11";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# Applications:
|
|
hyprland = {
|
|
url = "github:hyprwm/Hyprland";
|
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
};
|
|
nixgl.url = "github:nix-community/nixGL";
|
|
nix-flatpak.url = "github:gmodena/nix-flatpak";
|
|
stylix = {
|
|
url = "github:danth/stylix/release-24.11";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
zen-browser.url = "github:0xc000022070/zen-browser-flake";
|
|
sops-nix = {
|
|
url = "github:Mic92/sops-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
deploy-rs.url = "github:serokell/deploy-rs";
|
|
ghostty.url = "github:ghostty-org/ghostty";
|
|
};
|
|
outputs = inputs@{
|
|
nixpkgs,
|
|
nixpkgs-unstable,
|
|
home-manager,
|
|
nixgl,
|
|
ghostty,
|
|
...
|
|
}:
|
|
let
|
|
flake = {
|
|
gitServer.http = "https://gitea.jafner.tools";
|
|
gitServer.ssh = "ssh://git@gitea.jafner.tools:2225";
|
|
owner = "Jafner";
|
|
repoName = "Jafner.net";
|
|
branch = "main";
|
|
repoPath = "Git/Jafner.net";
|
|
path = "dotfiles/flake.nix";
|
|
# Use the following to compose the full absolute path:
|
|
# "/home/${sys.username}/${flake.repoPath}/${flake.path}"
|
|
};
|
|
usr.joey = {
|
|
realname = "Joey Hafner";
|
|
email = "joey@jafner.net";
|
|
encryptKey = "$HOME/.keys/joey@jafner.net.encrypt.gpg";
|
|
ageKey = "$HOME/.keys/joey.author.key";
|
|
};
|
|
in {
|
|
nixosConfigurations = {
|
|
desktop = let
|
|
sys = {
|
|
username = "joey";
|
|
hostname = "desktop@jafner.net";
|
|
sshKey = "joey.desktop@jafner.net";
|
|
signingKey = "B0BBF464024BCEAE";
|
|
shellPackage = "zsh";
|
|
kernelPackage = "linux_zen"; # Read more: https://nixos.wiki/wiki/Linux_kernel; Other options: https://mynixos.com/nixpkgs/packages/linuxKernel.packages;
|
|
wallpaper = ./assets/romb-3840x2160.png;
|
|
arch = "x86_64-linux";
|
|
flakeDir = "Git/Jafner.net/dotfiles";
|
|
};
|
|
system = "x86_64-linux";
|
|
lib = nixpkgs.lib;
|
|
pkgs = import inputs.nixpkgs {
|
|
inherit system;
|
|
overlays = [ nixgl.overlay ];
|
|
config = { allowUnfreePredicate = (_: true); };
|
|
};
|
|
pkgs-unstable = import nixpkgs-unstable {
|
|
inherit system;
|
|
overlays = [ nixgl.overlay ];
|
|
config = { allowUnfreePredicate = (_: true); };
|
|
};
|
|
in lib.nixosSystem {
|
|
modules = [
|
|
./systems/desktop/configuration.nix
|
|
inputs.nix-flatpak.nixosModules.nix-flatpak
|
|
inputs.home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.sharedModules = [
|
|
inputs.nix-flatpak.homeManagerModules.nix-flatpak
|
|
inputs.stylix.homeManagerModules.stylix
|
|
];
|
|
home-manager.extraSpecialArgs = { inherit pkgs pkgs-unstable inputs; inherit sys usr flake; };
|
|
}
|
|
];
|
|
inherit system;
|
|
specialArgs = { inherit pkgs pkgs-unstable inputs sys usr flake; };
|
|
};
|
|
};
|
|
};
|
|
}
|