kekl
This commit is contained in:
@ -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
32
flake.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user