formatting and stuff

main
Carsten Kragelund 2023-06-03 11:42:15 +02:00
parent f78ca798f4
commit 4ed81ce6e1
Signed by: nyx
GPG Key ID: CADDADEEC9F753C0
6 changed files with 202 additions and 159 deletions

@ -151,16 +151,16 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1683475240,
"narHash": "sha256-sy6MYoCaIZsOenYplbzVXI4Ce9Bp/vIOpuFa97+a6wc=",
"lastModified": 1684481515,
"narHash": "sha256-sDMEZ4HLP6sVNiBcgla3KWihdDjh67DP5ZWkGKWFgY0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "e040aab15638aaf8d0786894851a2b1ca09a7baf",
"rev": "5b1bc788f578cd83d54b48bb057d6f6703ae7725",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
@ -200,11 +200,11 @@
]
},
"locked": {
"lastModified": 1684522262,
"narHash": "sha256-jLzI7Sdz+nbmw1bWwIzIjcZRBGJw6kXoDnXLkUSpYyg=",
"lastModified": 1684541278,
"narHash": "sha256-Uj3zSVFV690qMTtXvTK98JaL+lliUrP5bZ++to2naE8=",
"ref": "refs/heads/main",
"rev": "a48a682a010b6aa0b9bfc51d64c591e83a53c042",
"revCount": 21,
"rev": "df04918245d3a0e630374d9eca162b844c18da5d",
"revCount": 23,
"type": "git",
"url": "https://gitea.pid1.sh/sanctureplicum/nur.git"
},

@ -1,7 +1,7 @@
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-22.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nur.url = "github:nix-community/nur";
sanctureplicum-nur = {
url = "git+https://gitea.pid1.sh/sanctureplicum/nur.git";
@ -32,100 +32,123 @@
};
};
outputs =
{ self
, nixpkgs
, nixpkgs-unstable
, nur
, sanctureplicum-nur
, nekowinston-nur
, emacs-overlay
, nixos-wsl
, sops-nix
, home-manager
, ...
} @inputs:
let
overlays = [
(import emacs-overlay)
(final: prev: let unstable = import nixpkgs-unstable {
system = prev.system;
config.allowUnfree = true;
}; in {
nur = import nur {
nurpkgs = unstable;
pkgs = unstable;
repoOverrides = {
nekowinston = import nekowinston-nur { pkgs = unstable; };
sanctureplicum = import sanctureplicum-nur { pkgs = unstable; system = unstable.system; };
outputs = {
self,
nixpkgs,
nixpkgs-unstable,
nur,
sanctureplicum-nur,
nekowinston-nur,
emacs-overlay,
nixos-wsl,
sops-nix,
home-manager,
...
} @ inputs: let
overlays = [
(import emacs-overlay)
(final: prev: let
unstable = import nixpkgs-unstable {
system = prev.system;
config.allowUnfree = true;
};
in {
nur = import nur {
nurpkgs = unstable;
pkgs = unstable;
repoOverrides = {
nekowinston = import nekowinston-nur {pkgs = unstable;};
sanctureplicum = import sanctureplicum-nur {
pkgs = unstable;
system = unstable.system;
};
};
inherit unstable;
};
inherit unstable;
})
];
in {
nixosConfigurations.falcon = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
({
config,
pkgs,
...
}: {
nixpkgs.overlays = overlays;
})
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "bak";
}
./hosts/falcon
];
in {
nixosConfigurations.falcon = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
({ config, pkgs, ... }: {
nixpkgs.overlays = overlays;
})
};
nixosConfigurations.eagle = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
({
config,
pkgs,
...
}: {
nixpkgs.overlays = overlays;
})
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "bak";
}
./hosts/falcon
];
};
nixosConfigurations.eagle = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
({ config, pkgs, ... }: {
nixpkgs.overlays = overlays;
})
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "bak";
home-manager.sharedModules = [
sops-nix.homeManagerModule
];
}
./hosts/eagle
];
};
nixosConfigurations.buzzard = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
({
config,
pkgs,
...
}: {
nixpkgs.overlays = overlays;
})
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "bak";
home-manager.sharedModules = [
sops-nix.homeManagerModule
];
}
./hosts/eagle
];
};
nixosConfigurations.buzzard = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
({ config, pkgs, ... }: {
nixpkgs.overlays = overlays;
})
nixos-wsl.nixosModules.wsl
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "bak";
}
./hosts/buzzard
];
};
nixosConfigurations.gitea = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
({ config, pkgs, ... }: {
nixpkgs.overlays = overlays;
})
nixos-wsl.nixosModules.wsl
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "bak";
home-manager.sharedModules = [
(import ./powershell.nix)
];
}
./hosts/buzzard
];
};
nixosConfigurations.gitea = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
({
config,
pkgs,
...
}: {
nixpkgs.overlays = overlays;
})
sops-nix.nixosModules.sops
./hosts/gitea
];
};
sops-nix.nixosModules.sops
./hosts/gitea
];
};
};
}

@ -1,12 +1,12 @@
{ config
, lib
, pkgs
, ...
{
config,
lib,
pkgs,
...
}:
with config;
with lib;
with pkgs;
{
with pkgs; {
imports = [
./graphical.nix
./vm-guest.nix
@ -26,7 +26,6 @@ with pkgs;
};
};
# Enable non-free packages
nixpkgs.config.allowUnfree = true;
@ -43,9 +42,9 @@ with pkgs;
sandbox = true;
# Enable flakes
experimental-features = [ "nix-command" "flakes" ];
experimental-features = ["nix-command" "flakes"];
trusted-users = [ config.users.users.carsten.name or "" ];
trusted-users = [config.users.users.carsten.name or ""];
substituters = [
"https://nix-community.cachix.org"

@ -1,8 +1,9 @@
{ config
, pkgs
, ...
{
config,
pkgs,
...
}: {
imports = [ ];
imports = [];
users.users.carsten = {
isNormalUser = true;
@ -15,7 +16,7 @@
"docker" # Containers
];
shell = pkgs.bash;
packages = [ ];
packages = [];
};
home-manager.users.carsten = {

@ -1,64 +1,72 @@
{ pkgs, config, osConfig, lib, ... }: {
{
pkgs,
config,
osConfig,
lib,
...
}: {
imports = [
./firefox.nix
./gpg.nix
./editors.nix
];
programs.bash.enable = true;
programs.bash.enable = builtins.trace config.home.profileDirectory true;
services.lorri.enable = true;
home.packages = with pkgs; [
(ripgrep.override { withPCRE2 = true; })
direnv
dogdns
duf
exa
fd
jq
mcfly
(if osConfig.graphical then
pinentry-gtk2
else
pinentry-curses)
unzip
yq
wezterm
home.packages = with pkgs;
[
(ripgrep.override {withPCRE2 = true;})
direnv
dogdns
duf
exa
fd
jq
mcfly
(
if osConfig.graphical
then pinentry-gtk2
else pinentry-curses
)
unzip
yq
wezterm
# Rust
cargo
gcc
llvmPackages_latest.lld
llvmPackages_latest.llvm
rustc
# Rust
cargo
gcc
llvmPackages_latest.lld
llvmPackages_latest.llvm
rustc
# JS
nodejs
nodePackages.npm
# JS
nodejs
nodePackages.npm
# Music
mpc-cli
# Music
mpc-cli
# language-servers
rust-analyzer
]
++ lib.lists.optionals osConfig.graphical [
(discord.override {withOpenASAR = true;})
catppuccin-gtk
dconf
gparted
numberstation
pavucontrol
recursive
wireplumber
# Local
(callPackage ./areon-pro {})
# language-servers
rust-analyzer
] ++ lib.lists.optionals osConfig.graphical [
(discord.override { withOpenASAR = true; })
catppuccin-gtk
dconf
gparted
numberstation
pavucontrol
recursive
wireplumber
# Local
(callPackage ./areon-pro {})
pkgs.nur.repos.sanctureplicum.rec-mono-nyx
pkgs.nur.repos.sanctureplicum.rec-mono-nyx
gnomeExtensions.color-picker
gnomeExtensions.just-perfection
gnomeExtensions.unite
];
gnomeExtensions.color-picker
gnomeExtensions.just-perfection
gnomeExtensions.unite
];
}

@ -0,0 +1,12 @@
{ ... }: {
carsten = {
fullName = "Carsten Kragelund";
hashedPassword = "$y$j9T$oL/jNqI1yz65OuUnJvpCn1$MC7.xSyvprru7QmqQVsGyBKZf2b4w7R7U.TmfzSBY39";
groups = [
"networkmanager" # Use networks
"wheel" # Sudoer
"vboxusers" # VirtualBox
"docker" # Containers
];
}
}