This commit is contained in:
fqbn207
2025-01-15 20:29:02 +01:00
parent 60f0b22851
commit b66190c023
11 changed files with 67 additions and 12 deletions

View File

@ -4,17 +4,20 @@
pkgs,
...
}:
let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
in
{
imports = [
(import "${home-manager}/nixos")
./hardware-configuration.nix
./modules/system/nix/default.nix
];
nixpkgs.config.allowUnfree = true;
nixpkgs = {
config = {
allowUnfree = true;
permittedInsecurePackages = [
"freeimage-unstable-2021-11-01"
];
};
};
nix.settings.experimental-features = [
"nix-command"
"flakes"
@ -166,6 +169,7 @@ in
fzf
htop
btop
kew
# dev
rustup
@ -264,6 +268,5 @@ in
};
system.stateVersion = "unstable";
home-manager.users.fabian = ./modules/home/home.nix;
}

32
flake.nix Normal file
View File

@ -0,0 +1,32 @@
{
description = "fqbn207 shitty NixOS Configuration lol";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
{
self,
nixpkgs,
home-manager,
}:
{
nixosConfigurations.poggers = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.fabian = import ./modules/home/home.nix;
};
}
];
};
};
}

View File

@ -54,12 +54,6 @@
enable = true;
autostart = true;
};
rust_analyzer = {
enable = true;
autostart = true;
installRustc = true;
installCargo = true;
};
clangd = {
enable = true;
autostart = true;
@ -74,5 +68,31 @@
};
};
};
rustaceanvim = {
enable = true;
settings = {
server = {
cmd = [
"rustup"
"run"
"nightly"
"rust-analyzer"
];
default_settings = {
rust-analyzer = {
check = {
command = "clippy";
};
inlayHints = {
lifetimeElisionHints = {
enable = "always";
};
};
};
};
standalone = false;
};
};
};
};
}